Class GeomEditing
Provides methods to edit the components of a geometry.
Inheritance
System.Object
GeomEditing
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 GeomEditing
Methods
InsertDiagonal(Geometry, Int32, Int32)
Inserts a pair of HalfEdges between two (non adjacent) vertices of a Face.
Declaration
public static void InsertDiagonal(this Geometry geometry, int p, int q)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The Geometry to insert a diagonal. |
System.Int32 | p | First Vertex handle. |
System.Int32 | q | Second Vertex handle. |
Exceptions
Type | Condition |
---|---|
System.Exception |
InsertVertex(Geometry, Int32, Int32, float3)
Inserts a new Vertex between two given existing Vertices.
Declaration
public static int InsertVertex(this Geometry geometry, int p, int q, float3 pos)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The Geometry to insert a Vertex. |
System.Int32 | p | Handle of Vertex one. |
System.Int32 | q | Handle of Vertex two. |
float3 | pos | Position of the new Vertex |
Returns
Type | Description |
---|---|
System.Int32 | New Vertex Handle. |
InsetFace(Geometry, Int32, Single)
Insets a Face with a given offset. The new, center Face has the same Handle as the original Face.
Declaration
public static Geometry InsetFace(this Geometry geometry, int faceHandle, float insetOffset)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The geometry on which to perform a face inset. |
System.Int32 | faceHandle | The Handle of the face, the new one will be inserted to. |
System.Single | insetOffset | The offset of the inset in percent. Use values between 0 and 1. A value of 0.5f means 50% of the original face remains. |
Returns
Type | Description |
---|---|
Geometry | Returns the geometry with edited faces. |