Version: 9.15.0
Home

Modules

 Creating Curves
 

Functions

def MakeVertex (self, theX, theY, theZ, theName=None)
 Create point by three coordinates. More...
 
def MakeVertexWithRef (self, theReference, theX, theY, theZ, theName=None)
 Create a point, distant from the referenced point on the given distances along the coordinate axes. More...
 
def MakeVertexOnCurve (self, theRefCurve, theParameter, takeOrientationIntoAccount=False, theName=None)
 Create a point, corresponding to the given parameter on the given curve. More...
 
def MakeVertexOnCurveByCoord (self, theRefCurve, theX, theY, theZ, theName=None)
 Create a point by projection give coordinates on the given curve. More...
 
def MakeVertexOnCurveByLength (self, theRefCurve, theLength, theStartPoint=None, theName=None)
 Create a point, corresponding to the given length on the given curve. More...
 
def MakeVertexOnSurface (self, theRefSurf, theUParameter, theVParameter, theName=None)
 Create a point, corresponding to the given parameters on the given surface. More...
 
def MakeVertexOnSurfaceByCoord (self, theRefSurf, theX, theY, theZ, theName=None)
 Create a point by projection give coordinates on the given surface. More...
 
def MakeVertexInsideFace (self, theFace, theNumberOfPnts=1, theName=None)
 Create a point, which lays on the given face. More...
 
def MakeVertexOnLinesIntersection (self, theRefLine1, theRefLine2, theName=None)
 Create a point on intersection of two lines. More...
 
def MakeTangentOnCurve (self, theRefCurve, theParameter, theName=None)
 Create a tangent, corresponding to the given parameter on the given curve. More...
 
def MakeTangentPlaneOnFace (self, theFace, theParameterU, theParameterV, theTrimSize, theName=None)
 Create a tangent plane, corresponding to the given parameter on the given face. More...
 
def MakeVectorDXDYDZ (self, theDX, theDY, theDZ, theName=None)
 Create a vector with the given components. More...
 
def MakeVector (self, thePnt1, thePnt2, theName=None)
 Create a vector between two points. More...
 
def MakeLine (self, thePnt, theDir, theName=None)
 Create a line, passing through the given point and parallel to the given direction. More...
 
def MakeLineTwoPnt (self, thePnt1, thePnt2, theName=None)
 Create a line, passing through the given points. More...
 
def MakeLineTwoFaces (self, theFace1, theFace2, theName=None)
 Create a line on two faces intersection. More...
 
def MakePlane (self, thePnt, theVec, theTrimSize, theName=None)
 Create a plane, passing through the given point and normal to the given vector. More...
 
def MakePlaneThreePnt (self, thePnt1, thePnt2, thePnt3, theTrimSize, theName=None)
 Create a plane, passing through the three given points. More...
 
def MakePlaneFace (self, theFace, theTrimSize, theName=None)
 Create a plane, similar to the existing one, but with another size of representing face. More...
 
def MakePlane2Vec (self, theVec1, theVec2, theTrimSize, theName=None)
 Create a plane, passing through the 2 vectors with center in a start point of the first vector. More...
 
def MakePlaneLCS (self, theLCS, theTrimSize, theOrientation, theName=None)
 Create a plane, based on a Local coordinate system. More...
 
def MakeMarker (self, OX, OY, OZ, XDX, XDY, XDZ, YDX, YDY, YDZ, theName=None)
 Create a local coordinate system. More...
 
def MakeMarkerFromShape (self, theShape, theName=None)
 Create a local coordinate system from shape. More...
 
def MakeMarkerPntTwoVec (self, theOrigin, theXVec, theYVec, theName=None)
 Create a local coordinate system from point and two vectors. More...
 
def MakeEdge (self, thePnt1, thePnt2, theName=None)
 Create a linear edge with specified ends. More...
 
def MakeEdgeOnCurveByLength (self, theRefCurve, theLength, theStartPoint=None, theName=None)
 Create a new edge, corresponding to the given length on the given curve. More...
 
def MakeEdgeWire (self, theWire, theLinearTolerance=1e-07, theAngularTolerance=1e-12, theName=None)
 Create an edge from specified wire. More...
 
def MakeWire (self, theEdgesAndWires, theTolerance=1e-07, theName=None)
 Create a wire from the set of edges and wires. More...
 
def MakeWireConstCurveType (self, theEdgesAndWires, theTolerance=1e-07, theName=None)
 Create a wire from the set of edges and wires. More...
 
def MakeWireWithMode (self, theEdgesAndWires, theTolerance=1e-07, theMode=GEOM.WBM_Approximation, theName=None)
 Create a wire from the set of edges and wires. More...
 
def MakeFace (self, theWire, isPlanarWanted, theName=None, raiseException=False)
 Create a face on the given wire. More...
 
def MakeFaceWires (self, theWires, isPlanarWanted, theName=None, raiseException=False)
 Create a face on the given wires set. More...
 
def MakeFaces (self, theWires, isPlanarWanted, theName=None)
 See MakeFaceWires() method for details. More...
 
def MakeFaceFromSurface (self, theFace, theWire, theName=None)
 Create a face based on a surface from given face bounded by given wire. More...
 
def MakeWrappedFace (self, theEdges, theVertices, theTolerance, theName=None)
 Create a non-planar face from a list of closed edges and a list of vertices. More...
 
def MakeFaceWithConstraints (self, theConstraints, theName=None)
 Create a face from a set of edges with the given constraints. More...
 
def MakeShell (self, theFacesAndShells, theName=None)
 Create a shell from the set of faces, shells and/or compounds of faces. More...
 
def MakeSolid (self, theShells, theName=None)
 Create a solid, bounded by the given shells. More...
 
def MakeCompound (self, theShapes, theName=None)
 Create a compound of the given shapes. More...
 
def MakeSolidFromConnectedFaces (self, theFacesOrShells, isIntersect=False, theName=None)
 Create a solid (or solids) from the set of faces and/or shells. More...
 

Detailed Description

Function Documentation

◆ MakeVertex()

def MakeVertex (   self,
  theX,
  theY,
  theZ,
  theName = None 
)

Create point by three coordinates.

Parameters
theXThe X coordinate of the point.
theYThe Y coordinate of the point.
theZThe Z coordinate of the point.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexWithRef()

def MakeVertexWithRef (   self,
  theReference,
  theX,
  theY,
  theZ,
  theName = None 
)

Create a point, distant from the referenced point on the given distances along the coordinate axes.

Parameters
theReferenceThe referenced point.
theXDisplacement from the referenced point along OX axis.
theYDisplacement from the referenced point along OY axis.
theZDisplacement from the referenced point along OZ axis.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnCurve()

def MakeVertexOnCurve (   self,
  theRefCurve,
  theParameter,
  takeOrientationIntoAccount = False,
  theName = None 
)

Create a point, corresponding to the given parameter on the given curve.

Parameters
theRefCurveThe referenced curve.
theParameterValue of parameter on the referenced curve.
takeOrientationIntoAccountflag that tells if it is necessary to take the curve's orientation into account for the operation. I.e. if this flag is set, the results for the same parameters (except the value 0.5) is different for forward and reversed curves. If it is not set the result is the same.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnCurveByCoord()

def MakeVertexOnCurveByCoord (   self,
  theRefCurve,
  theX,
  theY,
  theZ,
  theName = None 
)

Create a point by projection give coordinates on the given curve.

Parameters
theRefCurveThe referenced curve.
theXX-coordinate in 3D space
theYY-coordinate in 3D space
theZZ-coordinate in 3D space
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnCurveByLength()

def MakeVertexOnCurveByLength (   self,
  theRefCurve,
  theLength,
  theStartPoint = None,
  theName = None 
)

Create a point, corresponding to the given length on the given curve.

Parameters
theRefCurveThe referenced curve.
theLengthLength on the referenced curve. It can be negative.
theStartPointPoint allowing to choose the direction for the calculation of the length. If None, start from the first point of theRefCurve.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnSurface()

def MakeVertexOnSurface (   self,
  theRefSurf,
  theUParameter,
  theVParameter,
  theName = None 
)

Create a point, corresponding to the given parameters on the given surface.

Parameters
theRefSurfThe referenced surface.
theUParameterValue of U-parameter on the referenced surface.
theVParameterValue of V-parameter on the referenced surface.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnSurfaceByCoord()

def MakeVertexOnSurfaceByCoord (   self,
  theRefSurf,
  theX,
  theY,
  theZ,
  theName = None 
)

Create a point by projection give coordinates on the given surface.

Parameters
theRefSurfThe referenced surface.
theXX-coordinate in 3D space
theYY-coordinate in 3D space
theZZ-coordinate in 3D space
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVertexInsideFace()

def MakeVertexInsideFace (   self,
  theFace,
  theNumberOfPnts = 1,
  theName = None 
)

Create a point, which lays on the given face.

The point will lay in arbitrary place of the face. The only condition on it is a non-zero distance to the face boundary. Such point can be used to uniquely identify the face inside any shape in case, when the shape does not contain overlapped faces.

Parameters
theFaceThe referenced 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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeVertexOnLinesIntersection()

def MakeVertexOnLinesIntersection (   self,
  theRefLine1,
  theRefLine2,
  theName = None 
)

Create a point on intersection of two lines.

Parameters
theRefLine1,theRefLine2The referenced lines.
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 created point.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeTangentOnCurve()

def MakeTangentOnCurve (   self,
  theRefCurve,
  theParameter,
  theName = None 
)

Create a tangent, corresponding to the given parameter on the given curve.

Parameters
theRefCurveThe referenced curve.
theParameterValue of parameter on the referenced curve.
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 created tangent.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeTangentPlaneOnFace()

def MakeTangentPlaneOnFace (   self,
  theFace,
  theParameterU,
  theParameterV,
  theTrimSize,
  theName = None 
)

Create a tangent plane, corresponding to the given parameter on the given face.

Parameters
theFaceThe face for which tangent plane should be built.
theParameterVvertical value of the center point (0.0 - 1.0).
theParameterUhorisontal value of the center point (0.0 - 1.0).
theTrimSizethe size of plane.
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 created tangent.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeVectorDXDYDZ()

def MakeVectorDXDYDZ (   self,
  theDX,
  theDY,
  theDZ,
  theName = None 
)

Create a vector with the given components.

Parameters
theDXX component of the vector.
theDYY component of the vector.
theDZZ component of the vector.
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 created vector.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeVector()

def MakeVector (   self,
  thePnt1,
  thePnt2,
  theName = None 
)

Create a vector between two points.

Parameters
thePnt1Start point for the vector.
thePnt2End point for the vector.
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 created vector.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeLine()

def MakeLine (   self,
  thePnt,
  theDir,
  theName = None 
)

Create a line, passing through the given point and parallel to the given direction.

Parameters
thePntPoint. The resulting line will pass through it.
theDirDirection. The resulting line will be parallel to it.
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 created line.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeLineTwoPnt()

def MakeLineTwoPnt (   self,
  thePnt1,
  thePnt2,
  theName = None 
)

Create a line, passing through the given points.

Parameters
thePnt1First of two points, defining the line.
thePnt2Second of two points, defining the line.
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 created line.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeLineTwoFaces()

def MakeLineTwoFaces (   self,
  theFace1,
  theFace2,
  theName = None 
)

Create a line on two faces intersection.

Parameters
theFace1First of two faces, defining the line.
theFace2Second of two faces, defining the line.
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 created line.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakePlane()

def MakePlane (   self,
  thePnt,
  theVec,
  theTrimSize,
  theName = None 
)

Create a plane, passing through the given point and normal to the given vector.

Parameters
thePntPoint, the plane has to pass through.
theVecVector, defining the plane normal direction.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
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 created plane.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakePlaneThreePnt()

def MakePlaneThreePnt (   self,
  thePnt1,
  thePnt2,
  thePnt3,
  theTrimSize,
  theName = None 
)

Create a plane, passing through the three given points.

Parameters
thePnt1First of three points, defining the plane.
thePnt2Second of three points, defining the plane.
thePnt3Third of three points, defining the plane.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
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 created plane.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakePlaneFace()

def MakePlaneFace (   self,
  theFace,
  theTrimSize,
  theName = None 
)

Create a plane, similar to the existing one, but with another size of representing face.

Parameters
theFaceReferenced plane or LCS(Marker).
theTrimSizeNew half size of a side of quadrangle face, representing the plane.
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 created plane.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakePlane2Vec()

def MakePlane2Vec (   self,
  theVec1,
  theVec2,
  theTrimSize,
  theName = None 
)

Create a plane, passing through the 2 vectors with center in a start point of the first vector.

Parameters
theVec1Vector, defining center point and plane direction.
theVec2Vector, defining the plane normal direction.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
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 created plane.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakePlaneLCS()

def MakePlaneLCS (   self,
  theLCS,
  theTrimSize,
  theOrientation,
  theName = None 
)

Create a plane, based on a Local coordinate system.

Parameters
theLCScoordinate system, defining plane.
theTrimSizeHalf size of a side of quadrangle face, representing the plane.
theOrientationOXY, OYZ or OZX orientation - (1, 2 or 3)
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 created plane.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeMarker()

def MakeMarker (   self,
  OX,
  OY,
  OZ,
  XDX,
  XDY,
  XDZ,
  YDX,
  YDY,
  YDZ,
  theName = None 
)

Create a local coordinate system.

Parameters
OX,OY,OZThree coordinates of coordinate system origin.
XDX,XDY,XDZThree components of OX direction
YDX,YDY,YDZThree components of OY 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 created coordinate system.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().

◆ MakeMarkerFromShape()

def MakeMarkerFromShape (   self,
  theShape,
  theName = None 
)

Create a local coordinate system from shape.

Parameters
theShapeThe initial shape to detect the coordinate system.
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 created coordinate system.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeMarkerPntTwoVec()

def MakeMarkerPntTwoVec (   self,
  theOrigin,
  theXVec,
  theYVec,
  theName = None 
)

Create a local coordinate system from point and two vectors.

Parameters
theOriginPoint of coordinate system origin.
theXVecVector of X direction
theYVecVector of Y 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 created coordinate system.

Example

References geomBuilder._autoPublish(), geomBuilder.BasicOp, and geomBuilder.RaiseIfFailed().

◆ MakeEdge()

def MakeEdge (   self,
  thePnt1,
  thePnt2,
  theName = None 
)

Create a linear edge with specified ends.

Parameters
thePnt1Point for the first end of edge.
thePnt2Point for the second end of edge.
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 created edge.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeEdgeOnCurveByLength()

def MakeEdgeOnCurveByLength (   self,
  theRefCurve,
  theLength,
  theStartPoint = None,
  theName = None 
)

Create a new edge, corresponding to the given length on the given curve.

Parameters
theRefCurveThe referenced curve (edge).
theLengthLength on the referenced curve. It can be negative.
theStartPointAny point can be selected for it, the new edge will begin at the end of theRefCurve, close to the selected point. If None, start from the first point of theRefCurve.
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 created edge.

Example

References geomBuilder._autoPublish(), geomBuilder.ParseParameters(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeEdgeWire()

def MakeEdgeWire (   self,
  theWire,
  theLinearTolerance = 1e-07,
  theAngularTolerance = 1e-12,
  theName = None 
)

Create an edge from specified wire.

Parameters
theWiresource Wire
theLinearTolerancelinear tolerance value (default = 1e-07)
theAngularToleranceangular tolerance value (default = 1e-12)
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 created edge.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeWire()

def MakeWire (   self,
  theEdgesAndWires,
  theTolerance = 1e-07,
  theName = None 
)

Create a wire from the set of edges and wires.

To close a gap, enlarges wire tolerance.

Parameters
theEdgesAndWiresList of edges and/or wires.
theToleranceMaximum distance between vertices, that will be merged. Values less than 1e-07 are equivalent to 1e-07 (Precision::Confusion())
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 created wire.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeWireConstCurveType()

def MakeWireConstCurveType (   self,
  theEdgesAndWires,
  theTolerance = 1e-07,
  theName = None 
)

Create a wire from the set of edges and wires.

To close a gap, replaces curves, neighbour to the gap, with new curves of the same type and close parameters, connecting in the middle of the gap.

Parameters
theEdgesAndWiresList of edges and/or wires.
theToleranceMaximum distance between vertices, that will be merged. Values less than 1e-07 are equivalent to 1e-07 (Precision::Confusion())
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 created wire.

Example

References geomBuilder._autoPublish(), geomBuilder.MakeWire(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeWireWithMode()

def MakeWireWithMode (   self,
  theEdgesAndWires,
  theTolerance = 1e-07,
  theMode = GEOM.WBM_Approximation,
  theName = None 
)

Create a wire from the set of edges and wires.

Possible gaps are closed according to theMode.

Parameters
theEdgesAndWiresList of edges and/or wires.
theToleranceMaximum distance between vertices, that will be merged. Values less than 1e-07 are equivalent to 1e-07 (Precision::Confusion())
theModeGEOM.wire_build_mode Mode of gaps closing. Possible values are GEOM.WBM_FixTolerance, GEOM.WBM_KeepCurveType and GEOM.WBM_Approximation.
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 created wire.

Example

References geomBuilder._autoPublish(), geomBuilder.MakeWire(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeFace()

def MakeFace (   self,
  theWire,
  isPlanarWanted,
  theName = None,
  raiseException = False 
)

Create a face on the given wire.

Parameters
theWireclosed Wire or Edge to build the face on.
isPlanarWantedIf TRUE, the algorithm tries to build a planar face. If the tolerance of the obtained planar face is less than 1e-06, this face will be returned, otherwise the algorithm tries to build any suitable face on the given wire and prints a warning message.
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 created face (compound of faces).

Example

References geomBuilder._autoPublish(), geomBuilder.PrintOrRaise(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeFaceWires()

def MakeFaceWires (   self,
  theWires,
  isPlanarWanted,
  theName = None,
  raiseException = False 
)

Create a face on the given wires set.

Parameters
theWiresList of closed wires or edges to build the face on.
isPlanarWantedIf TRUE, the algorithm tries to build a planar face. If the tolerance of the obtained planar face is less than 1e-06, this face will be returned, otherwise the algorithm tries to build any suitable face on the given wire and prints a warning message.
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 created face (compound of faces).

Example

References geomBuilder._autoPublish(), geomBuilder.PrintOrRaise(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

◆ MakeFaces()

def MakeFaces (   self,
  theWires,
  isPlanarWanted,
  theName = None 
)

◆ MakeFaceFromSurface()

def MakeFaceFromSurface (   self,
  theFace,
  theWire,
  theName = None 
)

Create a face based on a surface from given face bounded by given wire.

Parameters
theFacethe face whose surface is used to create a new face.
theWirethe wire that will bound a new 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 created face.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeWrappedFace()

def MakeWrappedFace (   self,
  theEdges,
  theVertices,
  theTolerance,
  theName = None 
)

Create a non-planar face from a list of closed edges and a list of vertices.

Parameters
theEdgeslist of Edges(must be closed but not nesessarily belong to the same plane).
theVerticeslist of vertices through which the result face must pass.
theTolerancetolerance
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 created face.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeFaceWithConstraints()

def MakeFaceWithConstraints (   self,
  theConstraints,
  theName = None 
)

Create a face from a set of edges with the given constraints.

Parameters
theConstraintsList of edges and constraint faces (as a sequence of a Edge + Face couples):
  • edges should form a closed wire;
  • for each edge, constraint face is optional: if a constraint face is missing for some edge, this means that there no constraint associated with this edge.
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 created face.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

◆ MakeShell()

def MakeShell (   self,
  theFacesAndShells,
  theName = None 
)

Create a shell from the set of faces, shells and/or compounds of faces.

Parameters
theFacesAndShellsList of faces, shells and/or compounds of faces.
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 created shell (compound of shells).

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

◆ MakeSolid()

def MakeSolid (   self,
  theShells,
  theName = None 
)

Create a solid, bounded by the given shells.

Parameters
theShellsSequence of bounding shells.
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 created solid.

Example

References geomBuilder._autoPublish(), geomBuilder._IsGoodForSolid(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

◆ MakeCompound()

def MakeCompound (   self,
  theShapes,
  theName = None 
)

Create a compound of the given shapes.

Parameters
theShapesList of shapes to put in compound.
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 created compound.

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

◆ MakeSolidFromConnectedFaces()

def MakeSolidFromConnectedFaces (   self,
  theFacesOrShells,
  isIntersect = False,
  theName = None 
)

Create a solid (or solids) from the set of faces and/or shells.

Parameters
theFacesOrShellsList of faces and/or shells.
isIntersectIf TRUE, forces performing intersections between arguments; otherwise (default) intersection is not performed.
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 created solid (or compound of solids).

Example

References geomBuilder._autoPublish(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.