Class Extrude
Provides extrusion functionality for geometries.
Inheritance
System.Object
Extrude
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Jometri
Assembly: Fusee.Jometri.dll
Syntax
public static class Extrude
Methods
Extrude2DPolygon(Geometry, Single, Boolean)
Extrudes a complete planar geometry.
Declaration
public static Geometry Extrude2DPolygon(this Geometry geometry, float offset, bool extrudeAlongNormal)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The geometry to be extruded. |
System.Single | offset | zOffset will be used to create the new vertices. |
System.Boolean | extrudeAlongNormal | Pass 'true' if you want do extrude the polygon along its normal and 'false' if you want to extrude along the worlds z axis. |
Returns
Type | Description |
---|---|
Geometry |
ExtrudeFace(Geometry, Int32, Single)
Extrudes a given Face by a given offset along its normal vector.
Declaration
public static Geometry ExtrudeFace(this Geometry geometry, int faceHandle, float offset)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The geometry. |
System.Int32 | faceHandle | The handle of the face to extrude. |
System.Single | offset | How far the face should get extruded. |
Returns
Type | Description |
---|---|
Geometry |
ExtrudeFace(Geometry, Int32, Single, float3)
Extrudes a given Face along a specified Vector.
Declaration
public static Geometry ExtrudeFace(this Geometry geometry, int faceHandle, float offset, float3 extrusionVector)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | |
System.Int32 | faceHandle | |
System.Single | offset | |
float3 | extrusionVector |
Returns
Type | Description |
---|---|
Geometry |