I’m not really sure what I’m asking for is called, but basically, is there a way to take the polyline example of extruding a circle across a line, but make it a cone instead?
Something along the lines of: How to make curvilinear cones - #5 by Box - SketchUp - SketchUp Community
Hi @dajester2023,
You’re referring to Polyline Volumes, right? At least right now, they appear to only support one “shape” throughout the extent of the polyline.
I don’t think it would be too big of lift to add scaling or other interpolatable properties which could be applied parametrically, i.e. from the start of the polyline at t0 to the end of the polyine at t1. Let us know if you have any interest in contributing functionality.
Otherwise, it’s be possible to implement a one-off solution by programmatically constructing a mesh and creating a custom primitive. Though it would likely require getting familiar with the lower-level Primitive Geometry APIs.
1 Like
Correct.
I wouldn’t mind giving it a try - are there any examples of such? I’m still quite green when it comes developing 3D visualization applications.
Glad to hear the interest in potentially contributing!
This would involve modifying the mesh created by a PolylineVolumeGeometry
. Are you comfortable with the concepts of creating triangle meshes, like vertices and indices? If not, I’d be happy to point you to some resources.
The modification would allow a user to define how the shapePositions
change based on the distance along the polygon. ThreeJS’s ParametricGeometry
could be a good comparable to look at.