-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shape triangulation with holes error #48
Comments
This is known issue, which occurs when a hole is outside of the element. |
You need to make sure that a hole is inside |
Ok but multiple holes inside a shape causes a bug too as you can see is the second screenshot. |
Ok, I'll investigate this issue during preparing 1.7 |
Ok thank you, |
Do you know if it's possible to put holes on the edge in the last Threejs version ? |
yes it should be possible in threejs, I did this few month ago. I don't remember my approach, but it was working |
Great, so if the Parallax shape/extrude geometry code is updated according Threejs history, all should work. |
Yep, it should be, |
Ok, do you think if i start translating ShapeUtils from the last Threejs is a good idea ? |
Yeah, will be cool, but you need to do this on the master branch, dev branch is not ready yet for the new version, later we can merge your changes to the new Parallax version. But as I know you need to update some other libs :) especially under the math package. So if you ready, make your changes in the master branch. |
Yes ok , i think i'll update FontUtils too, some code has moved to ShapeUtils. |
Will be cool, we need FontUtils as well |
I can't push to the master branch (git-receive-pack not permitted). |
I think you need to make a pull request to the master branch |
Yes ok i was connected to your remote repo instead of my fork. |
I translated the code from Threejs for ShapeUtils but i have some problems, some triangles are not triangulated, or by a bad way. |
take your time, you can push later, you can write me by email, will be easy to communicate. |
I think i will try something else : |
The main question here that we need to use java code to run Parallax on Android etc, not just js. So we need Java version of that stuff |
Can you explain me how it works for android ? |
In 2.0 we will use Parallax Java library for android to make native applications. |
Ok, Do you know how to properly remove a geometry ? |
geometry is an instance of just do geometry.dispose() |
I tried but the geometry counter don't decrement. |
yes, it is normal |
I have merged your last changes to the Parallax master branch. Please make sure there is right author defined in your new files |
Hi Simon. I thought you are working on this issue. |
Alex, I was but I didn't found the bug. |
Ah I see, ok I'll update this soon, btw, basically the issue if the hole coordinates outside of a shape |
In my example the hole is inside the shape. |
Hi Alex, do you know if this bug is fixed now ? |
Hi Simon, I guess no, I have no time) |
No problem, my ex boss is just askin but i'm no longer working for him |
Hello,
i have a problem with the shape with holes extrusion.
I created a shape with a hole inside. But i have a console error : SEVERE: ShapeUtils: removeHoles() ERROR (but not at any time).
My code :
Then i create a geometry with this shape and the error occurs.
Note that the 3D result sometimes seems ok, sometimes not.
Then, if my hole is over a shape edge, i have another message: WARNING: FontUtils: triangulate() - Warning, unable to triangulate polygon!
In this case, the 3D result is always wrong.
EDIT: Some screen shots
Result seems ok but error in console:
Multiple holes problem:
Problem when hole is on a shape edge:
The text was updated successfully, but these errors were encountered: