Hide menu
Loading...
Searching...
No Matches

Defines topological vertex. More...

Inheritance diagram for cadex.ModelData.Vertex:
cadex.ModelData.Shape cadex.BaseObject

Public Member Functions

 Vertex (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Vertex (cadex.Geom.Point thePoint)
 
cadex.Geom.Point Point ()
 Returns a 3D point this vertex resides at.
 
void SetTolerance (double theTolerance)
 Sets vertex tolerance.
 
double Tolerance ()
 Returns vertex tolerance.
 
- Public Member Functions inherited from cadex.ModelData.Shape
 Shape (global::System.IntPtr cPtr, bool cMemoryOwn)
 
override int GetHashCode ()
 
cadex.ModelData.ShapeType Type ()
 Returns a shape type. For a null object returns Undefined.
 
cadex.ModelData.ShapeOrientation Orientation ()
 Returns orientation flag.
 
cadex.ModelData.Shape Reversed ()
 Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
 
cadex.ModelData.Shape Oriented (cadex.ModelData.ShapeOrientation theOrientation)
 Returns a shape that shares the same geometry and subshape graph and has specified orientation.
 
bool IsEqual (cadex.ModelData.Shape theOther)
 Returns true if the shape shares the same geometry and subshape graph, and has equal orientation.
 
bool IsSame (cadex.ModelData.Shape theOther)
 Returns true if the shape shares the same geometry and subshape graph.
 
void SetName (cadex.UTF16String theName)
 Sets the name.
 
cadex.UTF16String Name ()
 Returns the name.
 
void AddAssociatedPMI (cadex.PMI.Element theElement)
 Adds the PMI element.
 
void AddAssociatedPMI (cadex.Collections.PMIElementList theElements)
 Adds the PMI elements.
 
cadex.Collections.PMIElementList AssociatedPMI ()
 Returns the PMI elements.
 
override bool Equals (System.Object o)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static cadex.ModelData.Vertex Cast (cadex.ModelData.Shape theShape)
 
static new bool CompareType (cadex.BaseObject theObject)
 Check the type of object. Returns true if the specified object is this class type.
 
- Static Public Member Functions inherited from cadex.ModelData.Shape
static bool CompareType (cadex.BaseObject theObject)
 Check the type of object. Returns true if the specified object is this class type.
 
static cadex.ModelData.Shape Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Defines topological vertex.

The following image depicts an example of a vertex:

Vertex

A vertex resides on a geometrical 3D point returned by Point().

Tolerance

The vertex tolerance (returned by Tolerance()) defines a radius of a radius of a sphere around the vertex point, in which ends of all connecting edges must reside. The tolerance must be equal to greater to tolerance of connecting edges.

Any vertex is created with a default tolerance of 1e-7mm. The tolerance must be equal to greater to tolerance of all connecting edges.

See also
Topological Shapes
Examples
exploring/brep_geometry/Program.cs, exploring/brep_geometry/main.cxx, exploring/brep_topology/Program.cs, and exploring/brep_topology/main.cxx.

Member Function Documentation

◆ Dispose()

override void cadex.ModelData.Vertex.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.ModelData.Shape.

◆ SetTolerance()

void cadex.ModelData.Vertex.SetTolerance ( double theTolerance)
inline

Sets vertex tolerance.

If theTolerance is less than 1e-7 then it is ignored.

See also
Tolerance().

◆ Tolerance()

double cadex.ModelData.Vertex.Tolerance ( )
inline