Replies: 1 comment 4 replies
-
It is actually very much on purpose that I didn't add a lot of different geometry generation methods to this library, it's not really the purpose of this crate. The purpose is to be able to serialize/deserialize 3D content, so I would expect people to use it for that in 99% of cases. It's easy to generate some geometry outside of the crate and then construct a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I just achieved to code a prototype of a parametric shape, something simple called "ribbon", that allows to build a mesh from a vector of paths, each path being a vector of successive vec3 along a line.
Q&D prototype : https://github.com/jbousquie/threeribbon
Would you accept that I add this kind of geometry in this file : https://github.com/asny/three-d-asset/blob/main/src/geometry/tri_mesh.rs as the provided build-in geometries aren't that numerous ?
The ribbon could be a versatile tool to build then algorithmatically other shapes like tubes, extrusions, lathes, etc.
Here are example-like to what I intend to do (in a simpler way with just one input parameter, the path_array) :
https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/ribbon/
https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param/ribbon_maths/#example-pg--F6JW5W-18
and it will be morphable too :
https://playground.babylonjs.com/#1MSEBT#3
https://playground.babylonjs.com/#ACKC2#1
Please just let me know if you're interested
regards
--
Jerome
Beta Was this translation helpful? Give feedback.
All reactions