-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
threejs 3D Rendering of (planar) Polygons #70
Comments
@rocky I already tried to draw non coplanar polygons and I could only do it with 500 lines of code, I guess that maybe we should keep the behavior of WL.
This [I guess] is possible to be done in WL, but also polygons with holes is very hard in three.js. @rocky maybe we should focus in draw coplanar polygons first? |
Would using the js earcut library help? |
@rocky I used this library, for this works completely for non triangular polygons it's just necessary to convert But for polygons with holes not specied it doesn't works. But this fix the coplanar polygons problem. Also, as we could add an if to toggle the library use, performance bottleneck won't be a problem. I just said what I did because of I was wondering if we should add more one dependency. But after the |
@TiagoCavalcanteTrindade Ok - thanks for the information. I am for adding the dependency, especially since it seems to be pure JavaScript. And we just removed the dependency on scriptaculous. We can wait for coplanar to work and get help on the Mathics-core side of things for holes. If you think it helps for performance or want to try it, my opinion is go ahead. If on the other hand you don't want to go this route, that's fine too. You are probably in the best position to decide this. |
@rocky it's still there, I just deleted some files, the main file was split into multiple ones because of a bug in Opera. Also @rocky I'll go ahead, I just want to reformat the code and remove the dependency on prototype before. But the performance will fall for the coplanar polygons (at least for the ones with the z axis always 0). |
should be a hexagon and slanted.
should be a 5-pointed start with a hole for interior pentagon.
The text was updated successfully, but these errors were encountered: