|  | 
| MeshFactoryCreateExtrudedMesh(Vector2, Boolean, Vector3, Vector3, Boolean, Boolean, Boolean, String) Method | 
            Generate a mesh extruded from a 2D shape. The base surface is defined by a polygon given as a sequence
            of positions, and is extruded in the direction of the extrudeVector. The texture coordinates are generated
            using cylindrical projection.
            
Namespace: Ab4d.SharpEngine.MeshesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic static StandardMesh CreateExtrudedMesh(
	Vector2[] positions,
	bool isSmooth,
	Vector3 modelOffset,
	Vector3 extrudeVector,
	bool isYAxisUp = false,
	bool closeBottom = true,
	bool closeTop = true,
	string? name = null
)
Parameters
- positions  Vector2
- Array of 2D positions that define the base shape polygon.
- isSmooth  Boolean
- If true, the mesh appears smooth, otherwise the edges are sharp.
- modelOffset  Vector3
- A 3D vector defining the offset of the model. This offset is applied to each position.
- extrudeVector  Vector3
- A 3D vector that defines the extrusion, i.e., the direction and the distance between the bottom and top surface.
- isYAxisUp  Boolean  (Optional)
- When false (by default), then the Y axis in the 2D coordinate system is pointing down - (0,0) is the top-left position; true if Y axis is pointing up.
- closeBottom  Boolean  (Optional)
- Close the bottom surface of the mesh.
- closeTop  Boolean  (Optional)
- Close the top surface of the mesh.
- name  String  (Optional)
- Mesh name (for debug purposes).
Return Value
StandardMeshStandardMesh with filled vertices array and index array.
 Remarks
Remarks
            This method uses Triangulator to create 3D surface from the given
            2D polygon. Therefore, it may throw FormatException when shape positions are not correctly defined,
            for example, if lines intersect each other.
            
 See Also
See Also