Creates B-Rep solid primitives. More...
Static Public Member Functions | |
static ModelData_Solid | CreateBox (double theDx, double theDy, double theDz) |
Creates a box. | |
static ModelData_Solid | CreateBox (const ModelData_Point &theMinPoint, double theDx, double theDy, double theDz) |
Creates a box. | |
static ModelData_Solid | CreateBox (const ModelData_Point &theMinPoint, const ModelData_Point &theMaxPoint) |
Creates a box. | |
static ModelData_Solid | CreateBox (const ModelData_Axis2Placement &theAxis, double theDx, double theDy, double theDz) |
Creates a box. | |
static ModelData_Solid | CreateSphere (double theRadius, double theU=2 *M_PI, double theVmin=-M_PI_2, double theVmax=M_PI_2) |
Creates a sphere. | |
static ModelData_Solid | CreateSphere (const ModelData_Point &theCenter, double theRadius, double theU=2 *M_PI, double theVmin=-M_PI_2, double theVmax=M_PI_2) |
Creates a sphere. | |
static ModelData_Solid | CreateSphere (const ModelData_Axis2Placement &theAxis, double theRadius, double theU=2 *M_PI, double theVmin=-M_PI_2, double theVmax=M_PI_2) |
Creates a sphere. | |
static ModelData_Solid | CreateCylinder (double theRadius, double theHeight, double theAngle=2 *M_PI) |
Creates a cylinder. | |
static ModelData_Solid | CreateCylinder (const ModelData_Axis2Placement &theAxis, double theRadius, double theHeight, double theAngle=2 *M_PI) |
Creates a cylinder. | |
static ModelData_Solid | CreateCone (double theRadius1, double theRadius2, double theHeight, double theAngle=2 *M_PI) |
Creates a cone. | |
static ModelData_Solid | CreateCone (const ModelData_Axis2Placement &theAxis, double theRadius1, double theRadius2, double theHeight, double theAngle=2 *M_PI) |
Creates a cone. | |
static ModelData_Solid | CreateTorus (double theRadius1, double theRadius2, double theU=2 *M_PI, double theVmin=0., double theVmax=2 *M_PI) |
Creates a torus. | |
static ModelData_Solid | CreateTorus (const ModelData_Axis2Placement &theAxis, double theRadius1, double theRadius2, double theU=2 *M_PI, double theVmin=0., double theVmax=2 *M_PI) |
Creates a torus. | |
Creates B-Rep solid primitives.
The ModelAlgo_TopoPrimitives class provides static methods to construct 3D topological solid primitives. Created primitives can be either complete or truncated. For instance, a sphere can be created either as a full sphere or bounded by its angles along U and V directions.
The following table demonstrates supported primitives:
CreateBox() | ![]()
Box |
CreateSphere() | ![]()
Sphere ![]() |
CreateCylinder() | ![]()
Sphere ![]() |
CreateCone() | ![]()
Sphere ![]() |
CreateTorus() | ![]()
Sphere ![]() |
|
static |
Creates a box.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a box with a corner at origin of theAxis, sides parallel to it and sizes theDx, theDy, theDz.
|
static |
Creates a box.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a box with corners theMinPoint, theMaxPoint.
|
static |
Creates a box.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a box with a corner at theMinPoint and sizes theDx, theDy, theDz.
The box sides are parallel to the axis of the global coordinate system.
|
static |
Creates a box.
Creates a box with a corner at (0,0,0) and sizes theDx, theDy, theDz.
The box sides are parallel to the axis of the global coordinate system.
|
static |
Creates a cone.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a cone located in the origin of a local coordinate system theAxis. Parametrization is along the axes of theAxis and use of parameters is the same as in the first CreateCone() overload.
|
static |
Creates a cone.
Creates a cone located in the origin of a global coordinate system, with theRadius1 and theRadius2, theHeight and parametrized along axes of the global coordinate system.
If theAngle is specified then it defines trimming the cone along the angle of rotation. theAngle must be in the range (0, 2 * PI].
A full cone is created if theAngle use its default value.
|
static |
Creates a cylinder.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a cylinder located in the origin of a local coordinate system theAxis. Parametrization is along the axes of theAxis and use of parameters is the same as in the first CreateCylinder() overload.
|
static |
Creates a cylinder.
Creates a cylinder located in the origin of a global coordinate system, with theRadius, theHeight and parametrized along axes of the global coordinate system.
If theAngle is specified then it defines trimming the cylinder along the angle of rotation. theAngle must be in the range (0, 2 * PI].
A full cylinder is created if theAngle use its default value.
|
static |
Creates a sphere.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a sphere located in the origin of the theAxis. Parametrization is along the axes of theAxis and use of parameters is the same as in the first CreateSphere() overload.
|
static |
Creates a sphere.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a sphere located in theCenter. Parametrization and use of parameters is the same as in the first CreateSphere() overload.
|
static |
Creates a sphere.
Creates a sphere located in the origin of a global coordinate system, with theRadius and parametrized along axes of the global coordinate system.
If the parameters theU, theVmin and theVmax are defined they define trimming the sphere as follows:
A full sphere is created if the angular parameters use their default values.
|
static |
Creates a torus.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Creates a torus located in the origin of a local coordinate system theAxis. Parametrization is along the axes of theAxis and use of parameters is the same as in the first CreateTorus() overload.
|
static |
Creates a torus.
Creates a torus located in the origin of a global coordinate system, with major radius theRadius1, minor radius theRadius2, parametrized along axes of the global coordinate system.
If the parameters theU, theVmin and theVmax are defined they define trimming the torus as follows:
A full sphere is created if the angular parameters use their default values.