Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Creating Complex Objects
Creating geometrical objects

Functions

def geompy.MakePrism
 Create a shape by extrusion of the base shape along a vector, defined by two points.
def geompy.MakePrism2Ways
 Create a shape by extrusion of the base shape along a vector, defined by two points, in 2 Ways (forward/backward).
def geompy.MakePrismVecH
 Create a shape by extrusion of the base shape along the vector, i.e.
def geompy.MakePrismVecH2Ways
 Create a shape by extrusion of the base shape along the vector, i.e.
def geompy.MakePrismDXDYDZ
 Create a shape by extrusion of the base shape along the dx, dy, dz direction.
def geompy.MakePrismDXDYDZ2Ways
 Create a shape by extrusion of the base shape along the dx, dy, dz direction i.e.
def geompy.MakeRevolution
 Create a shape by revolution of the base shape around the axis on the given angle, i.e.
def geompy.MakeRevolution2Ways
 Create a shape by revolution of the base shape around the axis on the given angle, i.e.
def geompy.MakeFilling
 Create a filling from the given compound of contours.
def geompy.MakeThruSections
 Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.
def geompy.MakePipe
 Create a shape by extrusion of the base shape along the path shape.
def geompy.MakePipeWithDifferentSections
 Create a shape by extrusion of the profile shape along the path shape.
def geompy.MakePipeWithShellSections
 Create a shape by extrusion of the profile shape along the path shape.
def geompy.MakePipeWithShellSectionsBySteps
 Create a shape by extrusion of the profile shape along the path shape.
def geompy.MakePipeShellsWithoutPath
 Create solids between given sections.
def geompy.MakePipeBiNormalAlongVector
 Create a shape by extrusion of the base shape along the path shape with constant bi-normal direction along the given vector.

Detailed Description

Function Documentation

def geompy.MakePrism (   self,
  theBase,
  thePoint1,
  thePoint2,
  theScaleFactor = -1.0 
)

Create a shape by extrusion of the base shape along a vector, defined by two points.

Parameters
theBaseBase shape to be extruded.
thePoint1First end of extrusion vector.
thePoint2Second end of extrusion vector.
theScaleFactorUse it to make prism with scaled second base. Nagative value means not scaled second base.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakePrism2Ways (   self,
  theBase,
  thePoint1,
  thePoint2 
)

Create a shape by extrusion of the base shape along a vector, defined by two points, in 2 Ways (forward/backward).

Parameters
theBaseBase shape to be extruded.
thePoint1First end of extrusion vector.
thePoint2Second end of extrusion vector.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.RaiseIfFailed().

def geompy.MakePrismVecH (   self,
  theBase,
  theVec,
  theH,
  theScaleFactor = -1.0 
)

Create a shape by extrusion of the base shape along the vector, i.e.

all the space, transfixed by the base shape during its translation along the vector on the given distance.

Parameters
theBaseBase shape to be extruded.
theVecDirection of extrusion.
theHPrism dimension along theVec.
theScaleFactorUse it to make prism with scaled second base. Negative value means not scaled second base.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakePrismVecH2Ways (   self,
  theBase,
  theVec,
  theH 
)

Create a shape by extrusion of the base shape along the vector, i.e.

all the space, transfixed by the base shape during its translation along the vector on the given distance in 2 Ways (forward/backward).

Parameters
theBaseBase shape to be extruded.
theVecDirection of extrusion.
theHPrism dimension along theVec in forward direction.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakePrismDXDYDZ (   self,
  theBase,
  theDX,
  theDY,
  theDZ,
  theScaleFactor = -1.0 
)

Create a shape by extrusion of the base shape along the dx, dy, dz direction.

Parameters
theBaseBase shape to be extruded.
theDX,theDY,theDZDirections of extrusion.
theScaleFactorUse it to make prism with scaled second base. Nagative value means not scaled second base.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakePrismDXDYDZ2Ways (   self,
  theBase,
  theDX,
  theDY,
  theDZ 
)

Create a shape by extrusion of the base shape along the dx, dy, dz direction i.e.

all the space, transfixed by the base shape during its translation along the vector on the given distance in 2 Ways (forward/backward).

Parameters
theBaseBase shape to be extruded.
theDX,theDY,theDZDirections of extrusion.
Returns
New GEOM.GEOM_Object, containing the created prism.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakeRevolution (   self,
  theBase,
  theAxis,
  theAngle 
)

Create a shape by revolution of the base shape around the axis on the given angle, i.e.

all the space, transfixed by the base shape during its rotation around the axis on the given angle.

Parameters
theBaseBase shape to be rotated.
theAxisRotation axis.
theAngleRotation angle in radians.
Returns
New GEOM.GEOM_Object, containing the created revolution.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakeRevolution2Ways (   self,
  theBase,
  theAxis,
  theAngle 
)

Create a shape by revolution of the base shape around the axis on the given angle, i.e.

all the space, transfixed by the base shape during its rotation around the axis on the given angle in both directions (forward/backward)

Parameters
theBaseBase shape to be rotated.
theAxisRotation axis.
theAngleRotation angle in radians.
Returns
New GEOM.GEOM_Object, containing the created revolution.

Example

References geompy.MakeFilling(), geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakeFilling (   self,
  theShape,
  theMinDeg,
  theMaxDeg,
  theTol2D,
  theTol3D,
  theNbIter,
  theMethod = GEOM.FOM_Default,
  isApprox = 0 
)

Create a filling from the given compound of contours.

Parameters
theShapethe compound of contours
theMinDega minimal degree of BSpline surface to create
theMaxDega maximal degree of BSpline surface to create
theTol2Da 2d tolerance to be reached
theTol3Da 3d tolerance to be reached
theNbItera number of iteration of approximation algorithm
theMethodKind of method to perform filling operation(see GEOM::filling_oper_method())
isApproxif True, BSpline curves are generated in the process of surface construction. By default it is False, that means the surface is created using Besier curves. The usage of Approximation makes the algorithm work slower, but allows building the surface for rather complex cases
Returns
New GEOM.GEOM_Object, containing the created filling surface.

Example

References geompy.ParseParameters(), and geompy.RaiseIfFailed().

def geompy.MakeThruSections (   self,
  theSeqSections,
  theModeSolid,
  thePreci,
  theRuled 
)

Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.

Parameters
theSeqSections- set of specified sections.
theModeSolid- mode defining building solid or shell
thePreci- precision 3D used for smoothing
theRuled- mode defining type of the result surfaces (ruled or smoothed).
Returns
New GEOM.GEOM_Object, containing the created shell or solid.

Example

References geompy.RaiseIfFailed().

def geompy.MakePipe (   self,
  theBase,
  thePath 
)

Create a shape by extrusion of the base shape along the path shape.

The path shape can be a wire or an edge.

Parameters
theBaseBase shape to be extruded.
thePathPath shape to extrude the base shape along it.
Returns
New GEOM.GEOM_Object, containing the created pipe.

Example

References geompy.MakePipeWithDifferentSections(), and geompy.RaiseIfFailed().

def geompy.MakePipeWithDifferentSections (   self,
  theSeqBases,
  theLocations,
  thePath,
  theWithContact,
  theWithCorrection 
)

Create a shape by extrusion of the profile shape along the path shape.

The path shape can be a wire or an edge. the several profiles can be specified in the several locations of path.

Parameters
theSeqBases- list of Bases shape to be extruded.
theLocations- list of locations on the path corresponding specified list of the Bases shapes. Number of locations should be equal to number of bases or list of locations can be empty.
thePath- Path shape to extrude the base shape along it.
theWithContact- the mode defining that the section is translated to be in contact with the spine.
theWithCorrection- defining that the section is rotated to be orthogonal to the spine tangent in the correspondent point
Returns
New GEOM.GEOM_Object, containing the created pipe.

Example

References geompy.MakePipeWithShellSections(), and geompy.RaiseIfFailed().

def geompy.MakePipeWithShellSections (   self,
  theSeqBases,
  theSeqSubBases,
  theLocations,
  thePath,
  theWithContact,
  theWithCorrection 
)

Create a shape by extrusion of the profile shape along the path shape.

The path shape can be a wire or a edge. the several profiles can be specified in the several locations of path.

Parameters
theSeqBases- list of Bases shape to be extruded. Base shape must be shell or face. If number of faces in neighbour sections aren't coincided result solid between such sections will be created using external boundaries of this shells.
theSeqSubBases- list of corresponding sub-shapes of section shapes. This list is used for searching correspondences between faces in the sections. Size of this list must be equal to size of list of base shapes.
theLocations- list of locations on the path corresponding specified list of the Bases shapes. Number of locations should be equal to number of bases. First and last locations must be coincided with first and last vertexes of path correspondingly.
thePath- Path shape to extrude the base shape along it.
theWithContact- the mode defining that the section is translated to be in contact with the spine.
theWithCorrection- defining that the section is rotated to be orthogonal to the spine tangent in the correspondent point
Returns
New GEOM.GEOM_Object, containing the created solids.

Example

References geompy.MakePipeWithShellSectionsBySteps(), and geompy.RaiseIfFailed().

def geompy.MakePipeWithShellSectionsBySteps (   self,
  theSeqBases,
  theSeqSubBases,
  theLocations,
  thePath,
  theWithContact,
  theWithCorrection 
)

Create a shape by extrusion of the profile shape along the path shape.

This function is used only for debug pipe functionality - it is a version of function MakePipeWithShellSections() which give a possibility to recieve information about creating pipe between each pair of sections step by step.

References geompy.RaiseIfFailed().

def geompy.MakePipeShellsWithoutPath (   self,
  theSeqBases,
  theLocations 
)

Create solids between given sections.

Parameters
theSeqBases- list of sections (shell or face).
theLocations- list of corresponding vertexes
Returns
New GEOM.GEOM_Object, containing the created solids.

Example

References geompy.RaiseIfFailed().

def geompy.MakePipeBiNormalAlongVector (   self,
  theBase,
  thePath,
  theVec 
)

Create a shape by extrusion of the base shape along the path shape with constant bi-normal direction along the given vector.

The path shape can be a wire or an edge.

Parameters
theBaseBase shape to be extruded.
thePathPath shape to extrude the base shape along it.
theVecVector defines a constant binormal direction to keep the same angle beetween the direction and the sections along the sweep surface.
Returns
New GEOM.GEOM_Object, containing the created pipe.

Example

References geompy.RaiseIfFailed().

Copyright © 2007-2012 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