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

Functions

def MakeFilletAll
 Perform a fillet on all edges of the given shape. More...
 
def MakeFillet
 Perform a fillet on the specified edges/faces of the given shape. More...
 
def MakeFilletR1R2
 The same that MakeFillet() but with two Fillet Radius R1 and R2. More...
 
def MakeFillet1D
 Perform a fillet on the specified edges of the given shape. More...
 
def MakeFillet2D
 Perform a fillet at the specified vertices of the given face/shell. More...
 
def MakeChamferAll
 Perform a symmetric chamfer on all edges of the given shape. More...
 
def MakeChamferEdge
 Perform a chamfer on edges, common to the specified faces, with distance D1 on the Face1. More...
 
def MakeChamferEdgeAD
 Perform a chamfer on edges. More...
 
def MakeChamferFaces
 Perform a chamfer on all edges of the specified faces, with distance D1 on the first specified face (if several for one edge) More...
 
def 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) More...
 
def MakeChamferEdges
 Perform a chamfer on edges, with distance D1 on the first specified face (if several for one edge) More...
 
def 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) More...
 
def MakeChamfer
 
def MakeExtrudedCut
 Remove material from a solid by extrusion of the base shape on the given distance. More...
 
def MakeExtrudedBoss
 Add material to a solid by extrusion of the base shape on the given distance. More...
 

Detailed Description

Function Documentation

def MakeFilletAll (   self,
  theShape,
  theR,
  theName = None 
)

Perform a fillet on all edges of the given shape.

Parameters
theShapeShape, to perform fillet on.
theRFillet radius.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeFillet (   self,
  theShape,
  theR,
  theShapeType,
  theListShapes,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapeType.

def MakeFilletR1R2 (   self,
  theShape,
  theR1,
  theR2,
  theShapeType,
  theListShapes,
  theName = None 
)
def MakeFillet1D (   self,
  theShape,
  theR,
  theListOfVertexes,
  doIgnoreSecantVertices = True,
  theName = None 
)

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
Parameters
doIgnoreSecantVerticesIf FALSE, fillet radius is always limited by the length of the edges, nearest to the fillet vertex. But sometimes the next edge is C1 continuous with the one, nearest to the fillet point, and such two (or more) edges can be united to allow bigger radius. Set this flag to TRUE to allow collinear edges union, thus ignoring the secant vertex (vertices).
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeFillet2D (   self,
  theShape,
  theR,
  theListOfVertexes,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferAll (   self,
  theShape,
  theD,
  theName = None 
)

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

Parameters
theShapeShape, to perform chamfer on.
theDChamfer size along each face.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example 1
Example 2

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferEdge (   self,
  theShape,
  theD1,
  theD2,
  theFace1,
  theFace2,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferEdgeAD (   self,
  theShape,
  theD,
  theAngle,
  theFace1,
  theFace2,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferFaces (   self,
  theShape,
  theD1,
  theD2,
  theFaces,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Note
Global index of sub-shape can be obtained, using method GetSubShapeID().
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferFacesAD (   self,
  theShape,
  theD,
  theAngle,
  theFaces,
  theName = None 
)

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 geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferEdges (   self,
  theShape,
  theD1,
  theD2,
  theEdges,
  theName = None 
)

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.
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the result shape.

Example

References geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamferEdgesAD (   self,
  theShape,
  theD,
  theAngle,
  theEdges,
  theName = None 
)

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 geomBuilder._autoPublish(), geomBuilder.LocalOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

def MakeChamfer (   self,
  aShape,
  d1,
  d2,
  aShapeType,
  ListShape,
  theName = None 
)
def MakeExtrudedCut (   self,
  theInit,
  theBase,
  theH,
  theAngle,
  theInvert = False,
  theName = None 
)

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.
theInvertIf true material changes the direction
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the initial shape with removed material

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.PrimOp, and geomBuilder.RaiseIfFailed().

def MakeExtrudedBoss (   self,
  theInit,
  theBase,
  theH,
  theAngle,
  theInvert = False,
  theName = None 
)

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.
theInvertIf true material changes the direction
theNameObject name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name.
Returns
New GEOM.GEOM_Object, containing the initial shape with added material

Example

References geomBuilder._autoPublish(), geomBuilder.ManageTransactions(), geomBuilder.ParseParameters(), geomBuilder.PrimOp, and geomBuilder.RaiseIfFailed().