Click or drag to resize
AB4D logo

Mesh3DFactoryCreateExtrudedMeshGeometry(IListPoint, IListInt32, IListPoint3D, Vector3D, Boolean, Boolean, Boolean, 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.Meshes
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static MeshGeometry3D CreateExtrudedMeshGeometry(
	IList<Point> shapePositions,
	IList<int> shapeTriangleIndices,
	IList<Point3D> extrudePathPositions,
	Vector3D shapeYVector3D,
	bool isClosed = true,
	bool isSmooth = false,
	bool flipNormals = false,
	bool preserveShapeSizeAtJunctions = false,
	bool preserveShapeYVector = false
)

Parameters

shapePositions  IListPoint
IList of 2D position that defines the shape that will be extruded
shapeTriangleIndices  IListInt32
IList of int values that represent triangle indices that define the shape triangles
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
flipNormals  Boolean  (Optional)
If true than normals are flipped - used when positions are defined in counter clockwise order
preserveShapeSizeAtJunctions  Boolean  (Optional)
When true (false by default) then the width and height of the mesh is preserved at path segment junctions
preserveShapeYVector  Boolean  (Optional)
If true (false by default) then the up vector of the shape is preserved. This means that the shape will not be angled to be perpendicular to the slope of the path segment.

Return Value

MeshGeometry3D
MeshGeometry3D that is created from 2D polygon defined by positions and that is extruded so that the model follows the specified path.
See Also