TessellatedShapeBuilder.CreateMeshByExtrusion
Description:
Builds a mesh by extruding curve loop(s) along extrusion distance.
Builds a mesh by extruding curve loop(s) along extrusion distance.
Remarks:
This function supports creation of a mesh given a collection of continuous curve loops, which are processed independently from each other. Loops with gaps or with curves with wrong flips will be split before processing.
This function supports creation of a mesh given a collection of continuous curve loops, which are processed independently from each other. Loops with gaps or with curves with wrong flips will be split before processing.
public static MeshFromGeometryOperationResult CreateMeshByExtrusion(
IList<CurveLoop> profileLoops,
XYZ extrusionDirection,
double extrusionDistance,
ElementId materialId
)
-
IList<CurveLoop>profileLoopsThe profile loops to be extruded. The loops will not be modified.
-
extrusionDirectionDirection of extrusion. The length of this vector is ignored.
-
DoubleextrusionDistanceThe positive distance by which the loops are extruded in the direction of the input extrusionDir.
-
materialIdMaterial which should be used by a constructed mesh.
Return Value
MeshFromGeometryOperationResult
Returns a mesh, which was constructed, and some additional
information.
-
The input value cannot be used as thickness for an extrusion, or blend, or wall layer, or similar geometric construct.
-
A non-optional argument was null
-
extrusionDirection has zero length.