-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add support for polygons and extrusions #73
Comments
Hi Peter, that's very much the next step once
My ultimate goal for Polygons and polygon extrusions would then be a special case of regions and bodies - for example you might have a function like Hope that makes sense - definitely happy to talk through these ideas as this is the area I'm really excited about using Elm for! |
By the way, the entire reason I added |
I notice that in ianmackenzie/elm-geometry you have
Polygon2d.triangulate
. Was wondering how hard it would be to add two more primitives to Scene3d:quad
, just a planar triangulated meshcylinder
orblock
with planar triangulated meshes on top and bottom, and a strip mesh around the extruded sides.I would like to be able to add extrusions other than blocks and cylinders (I really enjoyed rebuilding my hand crafted WebGL scene using this library, BTW).
Suggestion: rather than the way
quad
is defined by four unconstrained 3d points, it would probably be better to define these two new mesh primitives usingPolygon2d
points projected onto a sketch plane, to enforce planarity. The polygonExtrusion would also add alength
property.The text was updated successfully, but these errors were encountered: