Hi, I’m trying to create a simple C# script to go through datatree inputs (closed curves and vectors) to create very simple mesh extrusions. The thing I am struggling with is how to easily create the bounding box input that is required for the Mesh.CreateFromCurveExtrusion Method:
public static Mesh CreateFromCurveExtrusion(
Curve curve,
Vector3d direction,
MeshingParameters parameters,
BoundingBox boundingBox
)
Can someone point me to a simple explanation/code snippet for creating the bounding box that would satisfy this method? I was really hoping that I wouldn’t have to manually create two opposing corner points for the bounding box, but maybe that is the only way. Is there an easier/more straightforward way? I would also like to know if there is generally a better way to create a simple mesh extrusion (in my case I am passing square polylines into the script)? Thanks