CAD Exchanger SDK
Modeling Algorithms

Solid Modeling

Solid Primitives

ModelAlgo_TopoPrimitives allows to construct key solid primitives and can be used as follows:

ModelData_Solid aSphere = ModelAlgo_TopoPrimitives::CreateSphere (2);
ModelData_BRepRepresentation aBRep (aSphere);
ModelData_Part aPart (aBRep, "my_sphere");

The types of supported primitives are presented below:

ModelAlgo_TopoPrimitives::CreateBox()
create_box.png
Box
ModelAlgo_TopoPrimitives::CreateSphere()
create_sphere.png
Sphere
create_sphere_trimmed.png
ModelAlgo_TopoPrimitives::CreateCylinder()
create_cylinder.png
Sphere
create_cylinder_trimmed.png
ModelAlgo_TopoPrimitives::CreateCone()
create_cone.png
Sphere
create_cone_trimmed.png
ModelAlgo_TopoPrimitives::CreateTorus()
create_torus.png
Sphere
create_torus_trimmed.png

Examples

Refer to Assembly Creation.