SALOME documentation central

Creating 3D Primitives
[Creating geometrical objects]

Functions

def geompy.MakeBox
 Create a box by coordinates of two opposite vertices.
def geompy.MakeBoxDXDYDZ
 Create a box with specified dimensions along the coordinate axes and with edges, parallel to the coordinate axes.
def geompy.MakeBoxTwoPnt
 Create a box with two specified opposite vertices, and with edges, parallel to the coordinate axes.
def geompy.MakeFaceHW
 Create a face with specified dimensions along OX-OY coordinate axes, with edges, parallel to this coordinate axes.
def geompy.MakeFaceObjHW
 Create a face from another plane and two sizes, vertical size and horisontal size.
def geompy.MakeDiskPntVecR
 Create a disk with given center, normal vector and radius.
def geompy.MakeDiskThreePnt
 Create a disk, passing through three given points.
def geompy.MakeDiskR
 Create a disk with specified dimensions along OX-OY coordinate axes.
def geompy.MakeCylinder
 Create a cylinder with given base point, axis, radius and height.
def geompy.MakeCylinderRH
 Create a cylinder with given radius and height at the origin of coordinate system.
def geompy.MakeSpherePntR
 Create a sphere with given center and radius.
def geompy.MakeSphere
 Create a sphere with given center and radius.
def geompy.MakeSphereR
 Create a sphere with given radius at the origin of coordinate system.
def geompy.MakeCone
 Create a cone with given base point, axis, height and radiuses.
def geompy.MakeConeR1R2H
 Create a cone with given height and radiuses at the origin of coordinate system.
def geompy.MakeTorus
 Create a torus with given center, normal vector and radiuses.
def geompy.MakeTorusRR
 Create a torus with given radiuses at the origin of coordinate system.

Function Documentation

def geompy.MakeBox (   self,
  x1,
  y1,
  z1,
  x2,
  y2,
  z2 
)

Create a box by coordinates of two opposite vertices.

Example

def geompy.MakeBoxDXDYDZ (   self,
  theDX,
  theDY,
  theDZ 
)

Create a box with specified dimensions along the coordinate axes and with edges, parallel to the coordinate axes.

Center of the box will be at point (DX/2, DY/2, DZ/2).

Parameters:
theDX Length of Box edges, parallel to OX axis.
theDY Length of Box edges, parallel to OY axis.
theDZ Length of Box edges, parallel to OZ axis.
Returns:
New GEOM_Object, containing the created box.

Example

def geompy.MakeBoxTwoPnt (   self,
  thePnt1,
  thePnt2 
)

Create a box with two specified opposite vertices, and with edges, parallel to the coordinate axes.

Parameters:
thePnt1 First of two opposite vertices.
thePnt2 Second of two opposite vertices.
Returns:
New GEOM_Object, containing the created box.

Example

def geompy.MakeFaceHW (   self,
  theH,
  theW,
  theOrientation 
)

Create a face with specified dimensions along OX-OY coordinate axes, with edges, parallel to this coordinate axes.

Parameters:
theH height of Face.
theW width of Face.
theOrientation orientation belong axis OXY OYZ OZX
Returns:
New GEOM_Object, containing the created face.

Example

def geompy.MakeFaceObjHW (   self,
  theObj,
  theH,
  theW 
)

Create a face from another plane and two sizes, vertical size and horisontal size.

Parameters:
theObj Normale vector to the creating face or the face object.
theH Height (vertical size).
theW Width (horisontal size).
Returns:
New GEOM_Object, containing the created face.

Example

def geompy.MakeDiskPntVecR (   self,
  thePnt,
  theVec,
  theR 
)

Create a disk with given center, normal vector and radius.

Parameters:
thePnt Disk center.
theVec Vector, normal to the plane of the disk.
theR Disk radius.
Returns:
New GEOM_Object, containing the created disk.

Example

def geompy.MakeDiskThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3 
)

Create a disk, passing through three given points.

Parameters:
thePnt1,thePnt2,thePnt3 Points, defining the disk.
Returns:
New GEOM_Object, containing the created disk.

Example

def geompy.MakeDiskR (   self,
  theR,
  theOrientation 
)

Create a disk with specified dimensions along OX-OY coordinate axes.

Parameters:
theR Radius of Face.
theOrientation set the orientation belong axis OXY or OYZ or OZX
Returns:
New GEOM_Object, containing the created disk.

Example

def geompy.MakeCylinder (   self,
  thePnt,
  theAxis,
  theR,
  theH 
)

Create a cylinder with given base point, axis, radius and height.

Parameters:
thePnt Central point of cylinder base.
theAxis Cylinder axis.
theR Cylinder radius.
theH Cylinder height.
Returns:
New GEOM_Object, containing the created cylinder.

Example

def geompy.MakeCylinderRH (   self,
  theR,
  theH 
)

Create a cylinder with given radius and height at the origin of coordinate system.

Axis of the cylinder will be collinear to the OZ axis of the coordinate system.

Parameters:
theR Cylinder radius.
theH Cylinder height.
Returns:
New GEOM_Object, containing the created cylinder.

Example

def geompy.MakeSpherePntR (   self,
  thePnt,
  theR 
)

Create a sphere with given center and radius.

Parameters:
thePnt Sphere center.
theR Sphere radius.
Returns:
New GEOM_Object, containing the created sphere.

Example

def geompy.MakeSphere (   self,
  x,
  y,
  z,
  theR 
)

Create a sphere with given center and radius.

Parameters:
x,y,z Coordinates of sphere center.
theR Sphere radius.
Returns:
New GEOM_Object, containing the created sphere.

Example

def geompy.MakeSphereR (   self,
  theR 
)

Create a sphere with given radius at the origin of coordinate system.

Parameters:
theR Sphere radius.
Returns:
New GEOM_Object, containing the created sphere.

Example

def geompy.MakeCone (   self,
  thePnt,
  theAxis,
  theR1,
  theR2,
  theH 
)

Create a cone with given base point, axis, height and radiuses.

Parameters:
thePnt Central point of the first cone base.
theAxis Cone axis.
theR1 Radius of the first cone base.
theR2 Radius of the second cone base.
Note:
If both radiuses are non-zero, the cone will be truncated.
If the radiuses are equal, a cylinder will be created instead.
Parameters:
theH Cone height.
Returns:
New GEOM_Object, containing the created cone.

Example

def geompy.MakeConeR1R2H (   self,
  theR1,
  theR2,
  theH 
)

Create a cone with given height and radiuses at the origin of coordinate system.

Axis of the cone will be collinear to the OZ axis of the coordinate system.

Parameters:
theR1 Radius of the first cone base.
theR2 Radius of the second cone base.
Note:
If both radiuses are non-zero, the cone will be truncated.
If the radiuses are equal, a cylinder will be created instead.
Parameters:
theH Cone height.
Returns:
New GEOM_Object, containing the created cone.

Example

def geompy.MakeTorus (   self,
  thePnt,
  theVec,
  theRMajor,
  theRMinor 
)

Create a torus with given center, normal vector and radiuses.

Parameters:
thePnt Torus central point.
theVec Torus axis of symmetry.
theRMajor Torus major radius.
theRMinor Torus minor radius.
Returns:
New GEOM_Object, containing the created torus.

Example

def geompy.MakeTorusRR (   self,
  theRMajor,
  theRMinor 
)

Create a torus with given radiuses at the origin of coordinate system.

Parameters:
theRMajor Torus major radius.
theRMinor Torus minor radius.
Returns:
New GEOM_Object, containing the created torus.

Example

 All Data Structures Namespaces Files Functions Variables

Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS