Representations are associated with a ModelData::Part and define its shape.
The following representations are supported:
- Boundary Representation (B-Rep) – exact geometrical representation.
- Mesh or faceted, or tessellated – approximated representation with the help of a mesh.
Each part may contain one or more bodies of different types (B-Rep or Mesh).
Boundary Representation
B-Rep includes a topological model that describes hierarchy and connectivity information between elements in a 3D model (from vertices to a solid), as well as the underlying geometry entities (points, curves and surfaces):
Topology and Geometry
Topological entities inherit the base class ModelData::Shape , curves inherit the class Geom::Curve and surfaces inherit from the base class Geom::Surface .
Manufacturing Toolkit supports the next types of bodies: ModelData::SolidBody , ModelData::SheetBody and ModelData::WireframeBody . These bodies form the B-Rep representation of a part.
B-Rep bodies
Supported geometries include:
- Analytical representations (lines, circles, ellipses, planar, spherical, cylindrical and other elementary surfaces);
- Extrusion and rotation surfaces;
- Offset curves and surfaces;
- Bezier and NURBS curves and surfaces.
Each topological entity can be explored for its children. Vertices, edges and faces provide access to associated geometries.
while (anIt.HasNext()) {
double aFirst, aLast;
}
Base class for 3D curves.
Definition Geom/Curve.hxx:37
Defines an edge.
Definition ModelData/Edge.hxx:31
Geom::Curve Curve(double &theFirstParameter, double &theLastParameter) const
Returns edge 3D curve and its limits.
Definition Edge.cxx:405
static const Edge & Cast(const Shape &theShape)
Casts a base class object to Edge.
Definition Edge.cxx:735
Base class of topological shapes.
Definition ModelData/Shape.hxx:37
Iterates over subshapes in a shape.
Definition ShapeIterator.hxx:30
Defines a connected set of edges.
Definition ModelData/Wire.hxx:30
Contains classes, namespaces, enums, types, and global functions related to Manufacturing Toolkit.
Definition LicenseManager_LicenseError.hxx:29
Curves and surfaces give access to their defining parameters (e.g. axis for a circle, or control points for a NURBS curve):
Geon::Circle aCircle = ...;
Defines a right-handed or left-handed axis in 3D.
Definition Axis3d.hxx:32
Defines a 3D point.
Definition Point.hxx:34
Mesh
Mesh describes a 3D shape as a set of flat polygonal facets. Such meshes are commonly used for visualization and approximate geometry analysis.
In MTK, polygonal geometry is represented by ModelData::MeshBody , which holds one or more ModelData::MeshShape elements.