Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_Vertex Class Reference

Defines topological vertex. More...

#include <cadex/ModelData_Vertex.hxx>

Inheritance diagram for cadex::ModelData_Vertex:
cadex::ModelData_Shape

Public Member Functions

 ModelData_Vertex (const ModelData_Point &thePoint)
 
 ModelData_Vertex (const TopoDS_Vertex &)
 Constructor.
 
 operator const TopoDS_Vertex & () const
 
 operator TopoDS_Vertex & ()
 
ModelData_Point Point () const
 Returns a 3D point this vertex resides at.
 
void SetTolerance (double theTolerance)
 Sets vertex tolerance.
 
double Tolerance () const
 Returns vertex tolerance.
 
- Public Member Functions inherited from cadex::ModelData_Shape
 ModelData_Shape ()
 Constructor.
 
 ModelData_Shape (const ModelData_Shape &theOther)
 Constructor.
 
 ModelData_Shape (ModelData_Shape &&theOther)
 Move constructor.
 
 ~ModelData_Shape ()
 Destructor.
 
ModelData_Shapeoperator= (const ModelData_Shape &theOther)
 Assignment operator.
 
ModelData_Shapeoperator= (ModelData_Shape &&theOther)
 Move assignment operator.
 
 operator const TopoDS_Shape & () const
 Casts this object to TopoDS_Shape.
 
ModelData_ShapeType Type () const
 Returns a shape type.
 
ModelData_ShapeOrientation Orientation () const
 Returns orientation flag.
 
ModelData_Shape Reversed () const
 Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
 
ModelData_Shape Oriented (ModelData_ShapeOrientation theOrientation) const
 Returns a shape that shares the same geometry and subshape graph and has specified orientation.
 
void Nullify ()
 Nullifies the object.
 
bool IsNull () const
 Returns true if the object has not been initialized yet.
 
 operator bool () const
 Returns true if the object is not null.
 
bool IsEqual (const ModelData_Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph, and has equal orientation.
 
bool IsSame (const ModelData_Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph.
 
internal::ModelData_ShapeImpl * Impl () const
 Returns internal implementation object.
 

Static Public Member Functions

static const ModelData_VertexCast (const ModelData_Shape &theShape)
 
static ModelData_VertexCast (ModelData_Shape &theShape)
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::ModelData_Shape
 ModelData_Shape (const TopoDS_Shape &theOther, bool)
 Constructor.
 
 ModelData_Shape (internal::ModelData_ShapeImpl *theImpl)
 Constructor.
 
- Protected Attributes inherited from cadex::ModelData_Shape
internal::Base_Handle myImpl
 Internal implementation object.
 

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.

Examples
exploring/brepgeometry/Program.cs, exploring/brepgeometry/main.cxx, exploring/breprepresentation/Program.cs, exploring/breprepresentation/main.cxx, modeling/assembly/Program.cs, modeling/brep/Program.cs, and modeling/brep/main.cxx.

Member Function Documentation

◆ SetTolerance()

void cadex::ModelData_Vertex::SetTolerance ( double  theTolerance)

Sets vertex tolerance.

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

See also
Tolerance().

◆ Tolerance()