Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Local Operations (Fillet, Chamfer and other Features)
Transforming geometrical objects

Functions

def geompy.MakeFilletAll
 Perform a fillet on all edges of the given shape.
def geompy.MakeFillet
 Perform a fillet on the specified edges/faces of the given shape.
def geompy.MakeFilletR1R2
 The same that MakeFillet() but with two Fillet Radius R1 and R2.
def geompy.MakeFillet1D
 Perform a fillet on the specified edges of the given shape.
def geompy.MakeFillet2D
 Perform a fillet at the specified vertices of the given face/shell.
def geompy.MakeChamferAll
 Perform a symmetric chamfer on all edges of the given shape.
def geompy.MakeChamferEdge
 Perform a chamfer on edges, common to the specified faces, with distance D1 on the Face1.
def geompy.MakeChamferEdgeAD
 Perform a chamfer on edges.
def geompy.MakeChamferFaces
 Perform a chamfer on all edges of the specified faces, with distance D1 on the first specified face (if several for one edge)
def geompy.MakeChamferFacesAD
 The Same that MakeChamferFaces() but with params theD is chamfer lenght and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)
def geompy.MakeChamferEdges
 Perform a chamfer on edges, with distance D1 on the first specified face (if several for one edge)
def geompy.MakeChamferEdgesAD
 The Same that MakeChamferEdges() but with params theD is chamfer lenght and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)
def geompy.MakeChamfer
 /sa MakeChamferEdge() and MakeChamferFaces()
def geompy.MakeExtrudedCut
 Remove material from a solid by extrusion of the base shape on the given distance.
def geompy.MakeExtrudedBoss
 Add material to a solid by extrusion of the base shape on the given distance.

Detailed Description

Function Documentation

def geompy.MakeFilletAll (   self,
  theShape,
  theR 
)

Perform a fillet on all edges of the given shape.

Parameters
theShapeShape, to perform fillet on.
theRFillet radius.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

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

def geompy.MakeFillet (   self,
  theShape,
  theR,
  theShapeType,
  theListShapes 
)

Perform a fillet on the specified edges/faces of the given shape.

Parameters
theShapeShape, to perform fillet on.
theRFillet radius.
theShapeTypeType of shapes in theListShapes (see ShapeType())
theListShapesGlobal indices of edges/faces to perform fillet on.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeFilletR1R2 (   self,
  theShape,
  theR1,
  theR2,
  theShapeType,
  theListShapes 
)

The same that MakeFillet() but with two Fillet Radius R1 and R2.

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

def geompy.MakeFillet1D (   self,
  theShape,
  theR,
  theListOfVertexes 
)

Perform a fillet on the specified edges of the given shape.

Parameters
theShapeWire Shape to perform fillet on.
theRFillet radius.
theListOfVertexesGlobal indices of vertexes to perform fillet on.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID()
The list of vertices could be empty, in this case fillet will done done at all vertices in wire
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeFillet2D (   self,
  theShape,
  theR,
  theListOfVertexes 
)

Perform a fillet at the specified vertices of the given face/shell.

Parameters
theShapeFace or Shell shape to perform fillet on.
theRFillet radius.
theListOfVertexesGlobal indices of vertexes to perform fillet on.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeChamferAll (   self,
  theShape,
  theD 
)

Perform a symmetric chamfer on all edges of the given shape.

Parameters
theShapeShape, to perform chamfer on.
theDChamfer size along each face.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

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

def geompy.MakeChamferEdge (   self,
  theShape,
  theD1,
  theD2,
  theFace1,
  theFace2 
)

Perform a chamfer on edges, common to the specified faces, with distance D1 on the Face1.

Parameters
theShapeShape, to perform chamfer on.
theD1Chamfer size along theFace1.
theD2Chamfer size along theFace2.
theFace1,theFace2Global indices of two faces of theShape.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeChamferEdgeAD (   self,
  theShape,
  theD,
  theAngle,
  theFace1,
  theFace2 
)

Perform a chamfer on edges.

Parameters
theShapeShape, to perform chamfer on.
theDChamfer length
theAngleAngle of chamfer (angle in radians or a name of variable which defines angle in degrees)
theFace1,theFace2Global indices of two faces of theShape.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

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

def geompy.MakeChamferFaces (   self,
  theShape,
  theD1,
  theD2,
  theFaces 
)

Perform a chamfer on all edges of the specified faces, with distance D1 on the first specified face (if several for one edge)

Parameters
theShapeShape, to perform chamfer on.
theD1Chamfer size along face from theFaces. If both faces, connected to the edge, are in theFaces, theD1 will be get along face, which is nearer to theFaces beginning.
theD2Chamfer size along another of two faces, connected to the edge.
theFacesSequence of global indices of faces of theShape.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeChamferFacesAD (   self,
  theShape,
  theD,
  theAngle,
  theFaces 
)

The Same that MakeChamferFaces() but with params theD is chamfer lenght and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)

Example

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

def geompy.MakeChamferEdges (   self,
  theShape,
  theD1,
  theD2,
  theEdges 
)

Perform a chamfer on edges, with distance D1 on the first specified face (if several for one edge)

Parameters
theShapeShape, to perform chamfer on.
theD1,theD2Chamfer size
theEdgesSequence of edges of theShape.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

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

def geompy.MakeChamferEdgesAD (   self,
  theShape,
  theD,
  theAngle,
  theEdges 
)

The Same that MakeChamferEdges() but with params theD is chamfer lenght and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)

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

def geompy.MakeChamfer (   self,
  aShape,
  d1,
  d2,
  aShapeType,
  ListShape 
)
def geompy.MakeExtrudedCut (   self,
  theInit,
  theBase,
  theH,
  theAngle 
)

Remove material from a solid by extrusion of the base shape on the given distance.

Parameters
theInitShape to remove material from. It must be a solid or a compound made of a single solid.
theBaseClosed edge or wire defining the base shape to be extruded.
theHPrism dimension along the normal to theBase
theAngleDraft angle in degrees.
Returns
New GEOM.GEOM_Object, containing the initial shape with removed material

Example

References geompy.RaiseIfFailed().

def geompy.MakeExtrudedBoss (   self,
  theInit,
  theBase,
  theH,
  theAngle 
)

Add material to a solid by extrusion of the base shape on the given distance.

Parameters
theInitShape to add material to. It must be a solid or a compound made of a single solid.
theBaseClosed edge or wire defining the base shape to be extruded.
theHPrism dimension along the normal to theBase
theAngleDraft angle in degrees.
Returns
New GEOM.GEOM_Object, containing the initial shape with added material

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