|
Mesh3DFactoryCreateExtrudedMeshGeometry(IListPoint, IListPoint3D, Vector3D, Boolean, Boolean) Method |
Returns a MeshGeometry3D that is created from 2D shape defined by positions and that is extruded so that the model follows the specified path.
Namespace: Ab3d.MeshesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax public static MeshGeometry3D CreateExtrudedMeshGeometry(
IList<Point> shapePositions,
IList<Point3D> extrudePathPositions,
Vector3D shapeYVector3D,
bool isClosed = true,
bool isSmooth = false
)
Parameters
- shapePositions IListPoint
- IList of 2D position that defines the shape that will be extruded
- extrudePathPositions IListPoint3D
- list of Point3D values that defined the path of the extrusion
- shapeYVector3D Vector3D
- Vector3D that defines the 3D direction of the y axis in the positions list (into which direction in the 3D world the y coordinate in the 2D shape positions looks).
- isClosed Boolean (Optional)
- If true (by default) then the first and the last shape are filled with triangles so that it is not possible to see inside the object.
- isSmooth Boolean (Optional)
- If true than the mesh appears smooth, if false (by default) the edges are sharp
Return Value
MeshGeometry3DMeshGeometry3D that is created from 2D polygon defined by positions and that is extruded so that the model follows the specified path.
See Also