Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Creating Basic Geometric Objects

Modules

 Creating Curves
 

Functions

def MakeVertex
 Create point by three coordinates. More...
 
def MakeVertexWithRef
 Create a point, distant from the referenced point on the given distances along the coordinate axes. More...
 
def MakeVertexOnCurve
 Create a point, corresponding to the given parameter on the given curve. More...
 
def MakeVertexOnCurveByCoord
 Create a point by projection give coordinates on the given curve. More...
 
def MakeVertexOnCurveByLength
 Create a point, corresponding to the given length on the given curve. More...
 
def MakeVertexOnSurface
 Create a point, corresponding to the given parameters on the given surface. More...
 
def MakeVertexOnSurfaceByCoord
 Create a point by projection give coordinates on the given surface. More...
 
def MakeVertexInsideFace
 Create a point, which lays on the given face. More...
 
def MakeVertexOnLinesIntersection
 Create a point on intersection of two lines. More...
 
def MakeTangentOnCurve
 Create a tangent, corresponding to the given parameter on the given curve. More...
 
def MakeTangentPlaneOnFace
 Create a tangent plane, corresponding to the given parameter on the given face. More...
 
def MakeVectorDXDYDZ
 Create a vector with the given components. More...
 
def MakeVector
 Create a vector between two points. More...
 
def MakeLine
 Create a line, passing through the given point and parrallel to the given direction. More...
 
def MakeLineTwoPnt
 Create a line, passing through the given points. More...
 
def MakeLineTwoFaces
 Create a line on two faces intersection. More...
 
def MakePlane
 Create a plane, passing through the given point and normal to the given vector. More...
 
def MakePlaneThreePnt
 Create a plane, passing through the three given points. More...
 
def MakePlaneFace
 Create a plane, similar to the existing one, but with another size of representing face. More...
 
def MakePlane2Vec
 Create a plane, passing through the 2 vectors with center in a start point of the first vector. More...
 
def MakePlaneLCS
 Create a plane, based on a Local coordinate system. More...
 
def MakeMarker
 Create a local coordinate system. More...
 
def MakeMarkerFromShape
 Create a local coordinate system from shape. More...
 
def MakeMarkerPntTwoVec
 Create a local coordinate system from point and two vectors. More...
 
def MakeEdge
 Create a linear edge with specified ends. More...
 
def MakeEdgeOnCurveByLength
 Create a new edge, corresponding to the given length on the given curve. More...
 
def MakeEdgeWire
 Create an edge from specified wire. More...
 
def MakeWire
 Create a wire from the set of edges and wires. More...
 
def MakeFace
 Create a face on the given wire. More...
 
def MakeFaceWires
 Create a face on the given wires set. More...
 
def MakeFaces
 See MakeFaceWires() method for details. More...
 
def MakeFaceFromSurface
 Create a face based on a surface from given face bounded by given wire. More...
 
def MakeFaceWithConstraints
 Create a face from a set of edges with the given constraints. More...
 
def MakeShell
 Create a shell from the set of faces, shells and/or compounds of faces. More...
 
def MakeSolid
 Create a solid, bounded by the given shells. More...
 
def MakeCompound
 Create a compound of the given shapes. More...
 
def MakeSolidFromConnectedFaces
 Create a solid (or solids) from the set of faces and/or shells. More...
 

Detailed Description

Function Documentation

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

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

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

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

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

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

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

def MakeVertexInsideFace (   self,
  theFace,
  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, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

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

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

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

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

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

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

Create a line, passing through the given point and parrallel 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, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Create a wire from the set of edges and wires.

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

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

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

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

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.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

def MakeFaces (   self,
  theWires,
  isPlanarWanted,
  theName = None 
)
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.ManageTransactions(), geomBuilder.RaiseIfFailed(), and geomBuilder.ShapesOp.

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

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.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

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.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

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.ManageTransactions(), geomBuilder.RaiseIfFailed(), geomBuilder.ShapesOp, and geomBuilder.ToList().

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