Version: 9.16.0
Home
Loading...
Searching...
No Matches

Functions

 MakeFilletAll (self, theShape, theR, theName=None)
 Perform a fillet on all edges of the given shape.
 
 MakeFillet (self, theShape, theR, theShapeType, theListShapes, theName=None)
 Perform a fillet on the specified edges/faces of the given shape.
 
 MakeFilletR1R2 (self, theShape, theR1, theR2, theShapeType, theListShapes, theName=None)
 The same that MakeFillet() but with two Fillet Radius R1 and R2.
 
 MakeFillet1D (self, theShape, theR, theListOfVertexes, doIgnoreSecantVertices=True, theName=None)
 Perform a fillet on the specified edges of the given shape.
 
 MakeFillet2D (self, theShape, theR, theListOfVertexes, theName=None)
 Perform a fillet at the specified vertices of the given face/shell.
 
 MakeChamferAll (self, theShape, theD, theName=None)
 Perform a symmetric chamfer on all edges of the given shape.
 
 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.
 
 MakeChamferEdgeAD (self, theShape, theD, theAngle, theFace1, theFace2, theName=None)
 Perform a chamfer on edges.
 
 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)
 
 MakeChamferFacesAD (self, theShape, theD, theAngle, theFaces, theName=None)
 The Same that MakeChamferFaces() but with params theD is chamfer length and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)
 
 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)
 
 MakeChamferEdgesAD (self, theShape, theD, theAngle, theEdges, theName=None)
 The Same that MakeChamferEdges() but with params theD is chamfer length and theAngle is Angle of chamfer (angle in radians or a name of variable which defines angle in degrees)
 
 MakeChamfer (self, aShape, d1, d2, aShapeType, ListShape, theName=None)
 
 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.
 
 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.
 

Detailed Description

Function Documentation

◆ MakeFilletAll()

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

◆ MakeFillet()

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

◆ MakeFilletR1R2()

MakeFilletR1R2 (   self,
  theShape,
  theR1,
  theR2,
  theShapeType,
  theListShapes,
  theName = None 
)

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

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

◆ MakeFillet1D()

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

◆ MakeFillet2D()

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

◆ MakeChamferAll()

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

◆ MakeChamferEdge()

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

◆ MakeChamferEdgeAD()

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

◆ MakeChamferFaces()

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

◆ MakeChamferFacesAD()

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

The Same that MakeChamferFaces() but with params theD is chamfer length 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.MakeChamferFacesAD(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeChamferEdges()

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

◆ MakeChamferEdgesAD()

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

The Same that MakeChamferEdges() but with params theD is chamfer length 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.MakeChamferEdgesAD(), geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeChamfer()

MakeChamfer (   self,
  aShape,
  d1,
  d2,
  aShapeType,
  ListShape,
  theName = None 
)

◆ MakeExtrudedCut()

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

◆ MakeExtrudedBoss()

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