Version: 9.15.0
Home
geomBuilder Class Reference

Public Member Functions

def __new__ (cls, *args)
 
def __init__ (self, *args)
 
def init_geom (self)
 
def GetPluginOperations (self, libraryName)
 
def addToStudyAuto (self, maxNbSubShapes=-1)
 Enable / disable results auto-publishing. More...
 
def DumpPython (self, theIsPublished=True, theIsMultiFile=True)
 Dump component to the Python script This method overrides IDL function to allow default values for the parameters. More...
 
def SubShapeName (self, aSubObj, aMainObj)
 Get name for sub-shape aSubObj of shape aMainObj. More...
 
def addToStudy (self, aShape, aName, doRestoreSubShapes=False, theArgs=[], theFindMethod=GEOM.FSM_GetInPlace, theInheritFirstArg=False)
 Publish in study aShape with name aName. More...
 
def addToStudyInFather (self, aFather, aShape, aName)
 Publish in study aShape with name aName as sub-object of previously published aFather. More...
 
def hideInStudy (self, obj)
 Unpublish object in study. More...
 
def RestoreSubShapes (self, theObject, theArgs=[], theFindMethod=GEOM.FSM_GetInPlace, theInheritFirstArg=False, theAddPrefix=True)
 Publish sub-shapes, standing for arguments and sub-shapes of arguments To be used from python scripts out of addToStudy() (non-default usage) More...
 
def RestoreGivenSubShapes (self, theObject, theArgs=[], theFindMethod=GEOM.FSM_GetInPlace, theInheritFirstArg=False, theAddPrefix=True)
 Publish sub-shapes, standing for arguments and sub-shapes of arguments To be used from python scripts out of addToStudy() (non-default usage) More...
 
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 MakeArc (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create an arc of circle, passing through three given points. More...
 
def MakeArcCenter (self, thePnt1, thePnt2, thePnt3, theSense=False, theName=None)
 Create an arc of circle from a center and 2 points. More...
 
def MakeArcOfEllipse (self, theCenter, thePnt1, thePnt2, theName=None)
 Create an arc of ellipse, of center and two points. More...
 
def MakeCircle (self, thePnt, theVec, theR, theName=None)
 Create a circle with given center, normal vector and radius. More...
 
def MakeCircleR (self, theR, theName=None)
 Create a circle with given radius. More...
 
def MakeCircleThreePnt (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create a circle, passing through three given points. More...
 
def MakeCircleCenter2Pnt (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create a circle, with given point1 as center, passing through the point2 as radius and laying in the plane, defined by all three given points. More...
 
def MakeEllipse (self, thePnt, theVec, theRMajor, theRMinor, theVecMaj=None, theName=None)
 Create an ellipse with given center, normal vector and radiuses. More...
 
def MakeEllipseRR (self, theRMajor, theRMinor, theName=None)
 Create an ellipse with given radiuses. More...
 
def MakePolyline (self, thePoints, theIsClosed=False, theName=None)
 Create a polyline on the set of points. More...
 
def MakeBezier (self, thePoints, theIsClosed=False, theName=None)
 Create bezier curve on the set of points. More...
 
def MakeInterpol (self, thePoints, theIsClosed=False, theDoReordering=False, theName=None)
 Create B-Spline curve on the set of points. More...
 
def MakeInterpolWithTangents (self, thePoints, theFirstVec, theLastVec, theName=None)
 Create B-Spline curve on the set of points. More...
 
def MakeCurveParametric (self, thexExpr, theyExpr, thezExpr, theParamMin, theParamMax, theParamStep, theCurveType, theNewMethod=False, theName=None)
 Creates a curve using the parametric definition of the basic points. More...
 
def MakeIsoline (self, theFace, IsUIsoline, theParameter, theName=None)
 Create an isoline curve on a face. More...
 
def MakeSketcher (self, theCommand, theWorkingPlane=[0, 0, 0, 0, 0, 1, 1, 0, 0], theName=None)
 Create a sketcher (wire or face), following the textual description, passed through theCommand argument. More...
 
def MakeSketcherOnPlane (self, theCommand, theWorkingPlane, theName=None)
 Create a sketcher (wire or face), following the textual description, passed through theCommand argument. More...
 
def Sketcher2D (self)
 Obtain a 2D sketcher interface. More...
 
def Make3DSketcher (self, theCoordinates, theName=None)
 Create a sketcher wire, following the numerical description, passed through theCoordinates argument. More...
 
def Sketcher3D (self)
 Obtain a 3D sketcher interface. More...
 
def Polyline2D (self)
 Obtain a 2D polyline creation interface. More...
 
def MakeBox (self, x1, y1, z1, x2, y2, z2, theName=None)
 Create a box by coordinates of two opposite vertices. More...
 
def MakeBoxDXDYDZ (self, theDX, theDY, theDZ, theName=None)
 Create a box with specified dimensions along the coordinate axes and with edges, parallel to the coordinate axes. More...
 
def MakeBoxTwoPnt (self, thePnt1, thePnt2, theName=None)
 Create a box with two specified opposite vertices, and with edges, parallel to the coordinate axes. More...
 
def MakeFaceHW (self, theH, theW, theOrientation, theName=None)
 Create a face with specified dimensions with edges parallel to coordinate axes. More...
 
def MakeFaceObjHW (self, theObj, theH, theW, theName=None)
 Create a face from another plane and two sizes, vertical size and horisontal size. More...
 
def MakeDiskPntVecR (self, thePnt, theVec, theR, theName=None)
 Create a disk with given center, normal vector and radius. More...
 
def MakeDiskThreePnt (self, thePnt1, thePnt2, thePnt3, theName=None)
 Create a disk, passing through three given points. More...
 
def MakeDiskR (self, theR, theOrientation, theName=None)
 Create a disk with specified dimensions along OX-OY coordinate axes. More...
 
def MakeCylinder (self, thePnt, theAxis, theR, theH, theName=None)
 Create a cylinder with given base point, axis, radius and height. More...
 
def MakeCylinderA (self, thePnt, theAxis, theR, theH, theA, theName=None)
 Create a portion of cylinder with given base point, axis, radius, height and angle. More...
 
def MakeCylinderRH (self, theR, theH, theName=None)
 Create a cylinder with given radius and height at the origin of coordinate system. More...
 
def MakeCylinderRHA (self, theR, theH, theA, theName=None)
 Create a portion of cylinder with given radius, height and angle at the origin of coordinate system. More...
 
def MakeSpherePntR (self, thePnt, theR, theName=None)
 Create a sphere with given center and radius. More...
 
def MakeSphere (self, x, y, z, theR, theName=None)
 Create a sphere with given center and radius. More...
 
def MakeSphereR (self, theR, theName=None)
 Create a sphere with given radius at the origin of coordinate system. More...
 
def MakeCone (self, thePnt, theAxis, theR1, theR2, theH, theName=None)
 Create a cone with given base point, axis, height and radiuses. More...
 
def MakeConeR1R2H (self, theR1, theR2, theH, theName=None)
 Create a cone with given height and radiuses at the origin of coordinate system. More...
 
def MakeTorus (self, thePnt, theVec, theRMajor, theRMinor, theName=None)
 Create a torus with given center, normal vector and radiuses. More...
 
def MakeTorusRR (self, theRMajor, theRMinor, theName=None)
 Create a torus with given radiuses at the origin of coordinate system. More...
 
def MakePrism (self, theBase, thePoint1, thePoint2, theScaleFactor=-1.0, theName=None)
 Create a shape by extrusion of the base shape along a vector, defined by two points. More...
 
def MakePrism2Ways (self, theBase, thePoint1, thePoint2, theName=None)
 Create a shape by extrusion of the base shape along a vector, defined by two points, in 2 Ways (forward/backward). More...
 
def MakePrismVecH (self, theBase, theVec, theH, theScaleFactor=-1.0, theName=None)
 Create a shape by extrusion of the base shape along the vector, i.e. More...
 
def MakePrismVecH2Ways (self, theBase, theVec, theH, theName=None)
 Create a shape by extrusion of the base shape along the vector, i.e. More...
 
def MakePrismDXDYDZ (self, theBase, theDX, theDY, theDZ, theScaleFactor=-1.0, theName=None)
 Create a shape by extrusion of the base shape along the dx, dy, dz direction. More...
 
def MakePrismDXDYDZ2Ways (self, theBase, theDX, theDY, theDZ, theName=None)
 Create a shape by extrusion of the base shape along the dx, dy, dz direction i.e. More...
 
def MakeRevolution (self, theBase, theAxis, theAngle, theName=None)
 Create a shape by revolution of the base shape around the axis on the given angle, i.e. More...
 
def MakeRevolution2Ways (self, theBase, theAxis, theAngle, theName=None)
 Create a shape by revolution of the base shape around the axis on the given angle, i.e. More...
 
def MakeFilling (self, theContours, theMinDeg=2, theMaxDeg=5, theTol2D=0.0001, theTol3D=0.0001, theNbIter=0, theMethod=GEOM.FOM_Default, isApprox=0, theName=None)
 Create a face from a given set of contours. More...
 
def MakeFillingNew (self, theContours, theMinDeg=2, theMaxDeg=5, theTol3D=0.0001, theName=None)
 Create a face from a given set of contours. More...
 
def MakeThruSections (self, theSeqSections, theModeSolid, thePreci, theRuled, theName=None)
 Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices. More...
 
def MakePipe (self, theBase, thePath, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the base shape along the path shape. More...
 
def MakePipeWithDifferentSections (self, theSeqBases, theLocations, thePath, theWithContact, theWithCorrection, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the profile shape along the path shape. More...
 
def MakePipeWithDifferentSectionsBySteps (self, theSeqBases, theLocations, thePath, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the profile shape along the path shape. More...
 
def MakePipeWithShellSections (self, theSeqBases, theSeqSubBases, theLocations, thePath, theWithContact, theWithCorrection, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the profile shape along the path shape. More...
 
def MakePipeWithShellSectionsBySteps (self, theSeqBases, theSeqSubBases, theLocations, thePath, theWithContact, theWithCorrection, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the profile shape along the path shape. More...
 
def MakePipeShellsWithoutPath (self, theSeqBases, theLocations, IsGenerateGroups=False, theName=None)
 Create solids between given sections. More...
 
def MakePipeBiNormalAlongVector (self, theBase, thePath, theVec, IsGenerateGroups=False, theName=None)
 Create a shape by extrusion of the base shape along the path shape with constant bi-normal direction along the given vector. More...
 
def MakeThickSolid (self, theShape, theThickness, theFacesIDs=[], theInside=False, theName=None)
 Makes a thick solid from a shape. More...
 
def Thicken (self, theShape, theThickness, theFacesIDs=[], theInside=False)
 Modifies a shape to make it a thick solid. More...
 
def RestorePath (self, theShape, theBase1, theBase2, theName=None)
 Build a middle path of a pipe-like shape. More...
 
def RestorePathEdges (self, theShape, listEdges1, listEdges2, theName=None)
 Build a middle path of a pipe-like shape. 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...
 
def NumberOfFaces (self, theShape)
 Gives quantity of faces in the given shape. More...
 
def NumberOfEdges (self, theShape)
 Gives quantity of edges in the given shape. More...
 
def NumberOfSubShapes (self, theShape, theShapeType)
 Gives quantity of sub-shapes of type theShapeType in the given shape. More...
 
def NumberOfSolids (self, theShape)
 Gives quantity of solids in the given shape. More...
 
def ChangeOrientation (self, theShape, theName=None)
 Reverses an orientation the given shape. More...
 
def OrientationChange (self, theShape, theName=None)
 See ChangeOrientation() method for details. More...
 
def GetFreeFacesIDs (self, theShape)
 Retrieve all free faces from the given shape. More...
 
def GetSharedShapes (self, theShape1, theShape2, theShapeType, theName=None)
 Get all sub-shapes of theShape1 of the given type, shared with theShape2. More...
 
def GetSharedShapesMulti (self, theShapes, theShapeType, theMultiShare=True, theName=None)
 Get sub-shapes, shared by input shapes. More...
 
def GetShapesOnPlane (self, theShape, theShapeType, theAx1, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneIDs (self, theShape, theShapeType, theAx1, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneWithLocation (self, theShape, theShapeType, theAx1, thePnt, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnPlaneWithLocationIDs (self, theShape, theShapeType, theAx1, thePnt, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinder (self, theShape, theShapeType, theAxis, theRadius, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderIDs (self, theShape, theShapeType, theAxis, theRadius, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderWithLocation (self, theShape, theShapeType, theAxis, thePnt, theRadius, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnCylinderWithLocationIDs (self, theShape, theShapeType, theAxis, thePnt, theRadius, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. More...
 
def GetShapesOnSphere (self, theShape, theShapeType, theCenter, theRadius, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. More...
 
def GetShapesOnSphereIDs (self, theShape, theShapeType, theCenter, theRadius, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. More...
 
def GetShapesOnQuadrangle (self, theShape, theShapeType, theTopLeftPoint, theTopRightPoint, theBottomLeftPoint, theBottomRightPoint, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. More...
 
def GetShapesOnQuadrangleIDs (self, theShape, theShapeType, theTopLeftPoint, theTopRightPoint, theBottomLeftPoint, theBottomRightPoint, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. More...
 
def GetShapesOnBox (self, theBox, theShape, theShapeType, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. More...
 
def GetShapesOnBoxIDs (self, theBox, theShape, theShapeType, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. More...
 
def GetShapesOnShape (self, theCheckShape, theShape, theShapeType, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetShapesOnShapeAsCompound (self, theCheckShape, theShape, theShapeType, theState, theName=None)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetShapesOnShapeIDs (self, theCheckShape, theShape, theShapeType, theState)
 Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. More...
 
def GetInPlace (self, theShapeWhere, theShapeWhat, isNewImplementation=False, theName=None)
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. More...
 
def GetInPlaceByHistory (self, theShapeWhere, theShapeWhat, theName=None)
 Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. More...
 
def GetInPlaceMap (self, theShapeWhere, theShapeWhat)
 A sort of GetInPlace functionality, returning IDs of sub-shapes. More...
 
def GetSame (self, theShapeWhere, theShapeWhat, theName=None)
 Get sub-shape of theShapeWhere, which is equal to theShapeWhat. More...
 
def GetSameIDs (self, theShapeWhere, theShapeWhat)
 Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat. More...
 
def ExtendEdge (self, theEdge, theMin, theMax, theName=None)
 Resize the input edge with the new Min and Max parameters. More...
 
def ExtendFace (self, theFace, theUMin, theUMax, theVMin, theVMax, theName=None)
 Resize the input face with the new UMin, UMax, VMin and VMax parameters. More...
 
def MakeSurfaceFromFace (self, theFace, theName=None)
 This function takes some face as input parameter and creates new GEOM_Object, i.e. More...
 
def GetSubShape (self, aShape, ListOfID, theName=None)
 Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape More...
 
def GetSubShapeID (self, aShape, aSubShape)
 Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape More...
 
def GetSubShapesIDs (self, aShape, aSubShapes)
 Obtain unique IDs of sub-shapes aSubShapes inside aShape This function is provided for performance purpose. More...
 
def GetExistingSubObjects (self, theShape, theGroupsOnly=False)
 Get all sub-shapes and groups of theShape, that were created already by any other methods. More...
 
def GetGroups (self, theShape)
 Get all groups of theShape, that were created already by any other methods. More...
 
def SubShapeAll (self, aShape, aType, theName=None)
 Explode a shape on sub-shapes of a given type. More...
 
def SubShapeAllIDs (self, aShape, aType)
 Explode a shape on sub-shapes of a given type. More...
 
def SubShape (self, aShape, aType, ListOfInd, theName=None)
 Obtain a compound of sub-shapes of aShape, selected by their indices in list of all sub-shapes of type aType. More...
 
def SubShapeAllSortedCentres (self, aShape, aType, theName=None)
 Explode a shape on sub-shapes of a given type. More...
 
def SubShapeAllSortedCentresIDs (self, aShape, aType)
 Explode a shape on sub-shapes of a given type. More...
 
def SubShapeSortedCentres (self, aShape, aType, ListOfInd, theName=None)
 Obtain a compound of sub-shapes of aShape, selected by they indices in sorted list of all sub-shapes of type aType. More...
 
def ExtractShapes (self, aShape, aType, isSorted=False, theName=None)
 Extract shapes (excluding the main shape) of given type. More...
 
def SubShapes (self, aShape, anIDs, theName=None)
 Get a set of sub-shapes defined by their unique IDs inside aShape More...
 
def GetSubShapeEdgeSorted (self, theShape, theStartPoint, theName=None)
 Explode a shape into edges sorted in a row from a starting point. More...
 
def GetSubShapesWithTolerance (self, theShape, theShapeType, theCondition, theTolerance, theName=None)
 Return the list of subshapes that satisfies a certain tolerance criterion. More...
 
def IsSubShapeBelongsTo (self, aSubObject, anObject, aSubObjectIndex=0, anObjectIndex=0)
 Check if the object is a sub-object of another GEOM object. More...
 
def MakeExtraction (self, theShape, theListOfID, theName=None)
 Perform extraction of sub-shapes from the main shape. More...
 
def SubShapeAllSorted (self, aShape, aType, theName=None)
 Deprecated method It works like SubShapeAllSortedCentres(), but wrongly defines centres of faces, shells and solids. More...
 
def SubShapeAllSortedIDs (self, aShape, aType)
 Deprecated method It works like SubShapeAllSortedCentresIDs(), but wrongly defines centres of faces, shells and solids. More...
 
def SubShapeSorted (self, aShape, aType, ListOfInd, theName=None)
 Deprecated method It works like SubShapeSortedCentres(), but has a bug (wrongly defines centres of faces, shells and solids). More...
 
def ProcessShape (self, theShape, theOperators, theParameters, theValues, theName=None)
 Apply a sequence of Shape Healing operators to the given object. More...
 
def SuppressFaces (self, theObject, theFaces, theName=None)
 Remove faces from the given object (shape). More...
 
def MakeSewing (self, ListShape, theTolerance, AllowNonManifold=False, theName=None)
 Sewing of faces into a single shell. More...
 
def Sew (self, ListShape, theTolerance, AllowNonManifold=False, theName=None)
 Sewing of faces into a single shell. More...
 
def RemoveInternalFaces (self, theSolids, theName=None)
 Rebuild the topology of theSolids by removing the faces that are shared by several solids. More...
 
def SuppressInternalWires (self, theObject, theWires, theName=None)
 Remove internal wires and edges from the given object (face). More...
 
def SuppressHoles (self, theObject, theWires, theName=None)
 Remove internal closed contours (holes) from the given object. More...
 
def CloseContour (self, theObject, theWires, isCommonVertex, theName=None)
 Close an open wire. More...
 
def DivideEdge (self, theObject, theEdgeIndex, theValue, isByParameter, theName=None)
 Addition of a point to a given edge object. More...
 
def DivideEdgeByPoint (self, theObject, theEdgeIndex, thePoints, theName=None)
 Addition of points to a given edge of theObject by projecting other points to the given edge. More...
 
def FuseCollinearEdgesWithinWire (self, theWire, theVertices=[], theName=None)
 Suppress the vertices in the wire in case if adjacent edges are C1 continuous. More...
 
def ChangeOrientationShell (self, theObject)
 Change orientation of the given object. More...
 
def ChangeOrientationShellCopy (self, theObject, theName=None)
 Change orientation of the given object. More...
 
def LimitTolerance (self, theObject, theTolerance=1e-07, theName=None)
 Try to limit tolerance of the given object by value theTolerance. More...
 
def FuncToPythonDump (self, theObject, result, imports, funcName, args)
 Provides Python dump functionality for algorithms entirely implemented in Python. More...
 
def GetFreeBoundary (self, theObject, theName=None)
 Get a list of wires (wrapped in GEOM.GEOM_Object-s), that constitute a free boundary of the given shape. More...
 
def MakeGlueFaces (self, theShapes, theTolerance, doKeepNonSolids=True, theName=None)
 Replace coincident faces in theShapes by one face. More...
 
def GetGlueFaces (self, theShapes, theTolerance, theName=None)
 Find coincident faces in theShapes for possible gluing. More...
 
def MakeGlueFacesByList (self, theShapes, theTolerance, theFaces, doKeepNonSolids=True, doGlueAllEdges=True, theName=None)
 Replace coincident faces in theShapes by one face in compliance with given list of faces. More...
 
def MakeGlueEdges (self, theShapes, theTolerance, theName=None)
 Replace coincident edges in theShapes by one edge. More...
 
def GetGlueEdges (self, theShapes, theTolerance, theName=None)
 Find coincident edges in theShapes for possible gluing. More...
 
def MakeGlueEdgesByList (self, theShapes, theTolerance, theEdges, theName=None)
 Replace coincident edges in theShapes by one edge in compliance with given list of edges. More...
 
def MakeBoolean (self, theShape1, theShape2, theOperation, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform one of boolean operations on two given shapes. More...
 
def MakeCommon (self, theShape1, theShape2, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform Common boolean operation on two given shapes. More...
 
def MakeCut (self, theShape1, theShape2, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform Cut boolean operation on two given shapes. More...
 
def MakeFuse (self, theShape1, theShape2, checkSelfInte=False, rmExtraEdges=False, theName=None, theFuzzyParam=-1)
 Perform Fuse boolean operation on two given shapes. More...
 
def MakeSection (self, theShape1, theShape2, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform Section boolean operation on two given shapes. More...
 
def MakeFuseList (self, theShapesList, checkSelfInte=False, rmExtraEdges=False, theName=None, theFuzzyParam=-1)
 Perform Fuse boolean operation on the list of shapes. More...
 
def MakeCommonList (self, theShapesList, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform Common boolean operation on the list of shapes. More...
 
def MakeCutList (self, theMainShape, theShapesList, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform Cut boolean operation on one object and the list of tools. More...
 
def MakePartition (self, ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[], Limit=ShapeType["AUTO"], RemoveWebs=0, ListMaterials=[], KeepNonlimitShapes=0, theName=None, theFuzzyParam=-1)
 Perform partition operation. More...
 
def MakePartitionNonSelfIntersectedShape (self, ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[], Limit=ShapeType["AUTO"], RemoveWebs=0, ListMaterials=[], KeepNonlimitShapes=0, checkSelfInte=False, theName=None, theFuzzyParam=-1)
 Perform partition operation. More...
 
def Partition (self, ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[], Limit=ShapeType["AUTO"], RemoveWebs=0, ListMaterials=[], KeepNonlimitShapes=0, theName=None, theFuzzyParam=-1)
 See method MakePartition() for more information. More...
 
def MakeHalfPartition (self, theShape, thePlane, theName=None, theFuzzyParam=-1)
 Perform partition of the Shape with the Plane. More...
 
def TranslateTwoPoints (self, theObject, thePoint1, thePoint2, theCopy=False)
 Translate the given object along the vector, specified by its end points. More...
 
def MakeTranslationTwoPoints (self, theObject, thePoint1, thePoint2, theName=None)
 Translate the given object along the vector, specified by its end points, creating its copy before the translation. More...
 
def TranslateDXDYDZ (self, theObject, theDX, theDY, theDZ, theCopy=False)
 Translate the given object along the vector, specified by its components. More...
 
def MakeTranslation (self, theObject, theDX, theDY, theDZ, theName=None)
 Translate the given object along the vector, specified by its components, creating its copy before the translation. More...
 
def TranslateVector (self, theObject, theVector, theCopy=False)
 Translate the given object along the given vector. More...
 
def MakeTranslationVector (self, theObject, theVector, theName=None)
 Translate the given object along the given vector, creating its copy before the translation. More...
 
def TranslateVectorDistance (self, theObject, theVector, theDistance, theCopy=False)
 Translate the given object along the given vector on given distance. More...
 
def MakeTranslationVectorDistance (self, theObject, theVector, theDistance, theName=None)
 Translate the given object along the given vector on given distance, creating its copy before the translation. More...
 
def Rotate (self, theObject, theAxis, theAngle, theCopy=False)
 Rotate the given object around the given axis on the given angle. More...
 
def MakeRotation (self, theObject, theAxis, theAngle, theName=None)
 Rotate the given object around the given axis on the given angle, creating its copy before the rotation. More...
 
def RotateThreePoints (self, theObject, theCentPoint, thePoint1, thePoint2, theCopy=False)
 Rotate given object around vector perpendicular to plane containing three points. More...
 
def MakeRotationThreePoints (self, theObject, theCentPoint, thePoint1, thePoint2, theName=None)
 Rotate given object around vector perpendicular to plane containing three points, creating its copy before the rotatation. More...
 
def Scale (self, theObject, thePoint, theFactor, theCopy=False)
 Scale the given object by the specified factor. More...
 
def MakeScaleTransform (self, theObject, thePoint, theFactor, theName=None)
 Scale the given object by the factor, creating its copy before the scaling. More...
 
def ScaleAlongAxes (self, theObject, thePoint, theFactorX, theFactorY, theFactorZ, theCopy=False)
 Scale the given object by different factors along coordinate axes. More...
 
def MakeScaleAlongAxes (self, theObject, thePoint, theFactorX, theFactorY, theFactorZ, theName=None)
 Scale the given object by different factors along coordinate axes, creating its copy before the scaling. More...
 
def MirrorByPlane (self, theObject, thePlane, theCopy=False)
 Mirror an object relatively the given plane. More...
 
def MakeMirrorByPlane (self, theObject, thePlane, theName=None)
 Create an object, symmetrical to the given one relatively the given plane. More...
 
def MirrorByAxis (self, theObject, theAxis, theCopy=False)
 Mirror an object relatively the given axis. More...
 
def MakeMirrorByAxis (self, theObject, theAxis, theName=None)
 Create an object, symmetrical to the given one relatively the given axis. More...
 
def MirrorByPoint (self, theObject, thePoint, theCopy=False)
 Mirror an object relatively the given point. More...
 
def MakeMirrorByPoint (self, theObject, thePoint, theName=None)
 Create an object, symmetrical to the given one relatively the given point. More...
 
def Position (self, theObject, theStartLCS, theEndLCS, theCopy=False)
 Modify the location of the given object. More...
 
def MakePosition (self, theObject, theStartLCS, theEndLCS, theName=None)
 Modify the Location of the given object by LCS, creating its copy before the setting. More...
 
def PositionAlongPath (self, theObject, thePath, theDistance, theCopy, theReverse)
 Modify the Location of the given object by Path. More...
 
def MakePositionAlongPath (self, theObject, thePath, theDistance, theReverse, theName=None)
 Modify the Location of the given object by Path, creating its copy before the operation. More...
 
def Offset (self, theObject, theOffset, theCopy=False)
 Offset given shape. More...
 
def MakeOffset (self, theObject, theOffset, theName=None)
 Create new object as offset of the given one. More...
 
def MakeOffsetIntersectionJoin (self, theObject, theOffset, theName=None)
 Create new object as offset of the given one. More...
 
def MakeOffsetPartial (self, theObject, theOffset, theFacesIDs, theName=None)
 Create new object as partial offset of the given one. More...
 
def MakeProjection (self, theSource, theTarget, theName=None)
 Create new object as projection of the given one on another. More...
 
def MakeProjectionOnWire (self, thePoint, theWire, theName=None)
 Create a projection of the given point on a wire or an edge. More...
 
def MakeMultiTranslation1D (self, theObject, theVector, theStep, theNbTimes, theName=None)
 Translate the given object along the given vector a given number times. More...
 
def MakeMultiTranslation2D (self, theObject, theVector1, theStep1, theNbTimes1, theVector2, theStep2, theNbTimes2, theName=None)
 Conseqently apply two specified translations to theObject specified number of times. More...
 
def MultiRotate1DNbTimes (self, theObject, theAxis, theNbTimes, theName=None)
 Rotate the given object around the given axis a given number times. More...
 
def MultiRotate1DByStep (self, theObject, theAxis, theAngleStep, theNbTimes, theName=None)
 Rotate the given object around the given axis a given number times on the given angle. More...
 
def MultiRotate2DNbTimes (self, theObject, theAxis, theNbTimes1, theRadialStep, theNbTimes2, theName=None)
 Rotate the given object around the given axis a given number times and multi-translate each rotation result. More...
 
def MultiRotate2DByStep (self, theObject, theAxis, theAngleStep, theNbTimes1, theRadialStep, theNbTimes2, theName=None)
 Rotate the given object around the given axis on the given angle a given number times and multi-translate each rotation result. More...
 
def MakeMultiRotation1DNbTimes (self, aShape, aDir, aPoint, aNbTimes, theName=None)
 The same, as MultiRotate1DNbTimes(), but axis is given by direction and point. More...
 
def MakeMultiRotation1DByStep (self, aShape, aDir, aPoint, anAngle, aNbTimes, theName=None)
 The same, as MultiRotate1DByStep(), but axis is given by direction and point. More...
 
def MakeMultiRotation2DNbTimes (self, aShape, aDir, aPoint, nbtimes1, aStep, nbtimes2, theName=None)
 The same, as MultiRotate2DNbTimes(), but axis is given by direction and point. More...
 
def MakeMultiRotation2DByStep (self, aShape, aDir, aPoint, anAngle, nbtimes1, aStep, nbtimes2, theName=None)
 The same, as MultiRotate2DByStep(), but axis is given by direction and point. More...
 
def MakeProjectionOnCylinder (self, theObject, theRadius, theStartAngle=0.0, theAngleLength=-1.0, theAngleRotation=0.0, theName=None)
 Compute a wire or a face that represents a projection of the source shape onto cylinder. More...
 
def MultiRotate1D (self, theObject, theAxis, theNbTimes, theName=None)
 Deprecated method. More...
 
def MultiRotate2D (self, theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2, theName=None)
 The same, as MultiRotate2DByStep(), but theAngle is in degrees. More...
 
def MakeMultiRotation1D (self, aShape, aDir, aPoint, aNbTimes, theName=None)
 The same, as MultiRotate1D(), but axis is given by direction and point This method is DEPRECATED. More...
 
def MakeMultiRotation2D (self, aShape, aDir, aPoint, anAngle, nbtimes1, aStep, nbtimes2, theName=None)
 The same, as MultiRotate2D(), but axis is given by direction and point This method is DEPRECATED. More...
 
def MakeFilletAll (self, theShape, theR, theName=None)
 Perform a fillet on all edges of the given shape. More...
 
def MakeFillet (self, theShape, theR, theShapeType, theListShapes, theName=None)
 Perform a fillet on the specified edges/faces of the given shape. More...
 
def MakeFilletR1R2 (self, theShape, theR1, theR2, theShapeType, theListShapes, theName=None)
 The same that MakeFillet() but with two Fillet Radius R1 and R2. More...
 
def MakeFillet1D (self, theShape, theR, theListOfVertexes, doIgnoreSecantVertices=True, theName=None)
 Perform a fillet on the specified edges of the given shape. More...
 
def MakeFillet2D (self, theShape, theR, theListOfVertexes, theName=None)
 Perform a fillet at the specified vertices of the given face/shell. More...
 
def MakeChamferAll (self, theShape, theD, theName=None)
 Perform a symmetric chamfer on all edges of the given shape. More...
 
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. More...
 
def MakeChamferEdgeAD (self, theShape, theD, theAngle, theFace1, theFace2, theName=None)
 Perform a chamfer on edges. More...
 
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) More...
 
def 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) More...
 
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) More...
 
def 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) More...
 
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. More...
 
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. More...
 
def Archimede (self, theShape, theWeight, theWaterDensity, theMeshDeflection, theName=None)
 Perform an Archimde operation on the given shape with given parameters. More...
 
def PointCoordinates (self, Point)
 Get point coordinates. More...
 
def VectorCoordinates (self, Vector)
 Get vector coordinates. More...
 
def CrossProduct (self, Vector1, Vector2)
 Compute cross product. More...
 
def DotProduct (self, Vector1, Vector2)
 Compute cross product. More...
 
def BasicProperties (self, theShape, theTolerance=1.e-6)
 Get summarized length of all wires, area of surface and volume of the given shape. More...
 
def BoundingBox (self, theShape, precise=False)
 Get parameters of bounding box of the given shape. More...
 
def MakeBoundingBox (self, theShape, precise=False, theName=None)
 Get bounding box of the given shape. More...
 
def Inertia (self, theShape)
 Get inertia matrix and moments of inertia of theShape. More...
 
def AreCoordsInside (self, theShape, coords, tolerance=1.e-7)
 Get if coords are included in the shape (ST_IN or ST_ON) More...
 
def MinDistance (self, theShape1, theShape2)
 Get minimal distance between the given shapes. More...
 
def MinDistanceComponents (self, theShape1, theShape2)
 Get minimal distance between the given shapes. More...
 
def ClosestPoints (self, theShape1, theShape2)
 Get closest points of the given shapes. More...
 
def GetAngle (self, theShape1, theShape2)
 Get angle between the given shapes in degrees. More...
 
def GetAngleRadians (self, theShape1, theShape2)
 Get angle between the given shapes in radians. More...
 
def GetAngleVectors (self, theShape1, theShape2, theFlag=True)
 Get angle between the given vectors in degrees. More...
 
def GetAngleRadiansVectors (self, theShape1, theShape2, theFlag=True)
 The same as GetAngleVectors, but the result is in radians. More...
 
def CurvatureOnFace (self, theSurf, thePoint, theDirection, theName=None)
 Measure curvature radius of surface in the given point along the given direction. More...
 
def XYZtoUV (self, theSurf, theXYZlist, theIsNormalized=True)
 Convert X,Y,Z points coordinates to UV parameters on the given surface. More...
 
def UVtoXYZ (self, theSurf, theUVlist, theIsNormalized=True)
 Convert UV parameters on the given surface to 3D points coordinates. More...
 
def Tolerance (self, theShape)
 Get min and max tolerances of sub-shapes of theShape. More...
 
def WhatIs (self, theShape)
 Obtain description of the given shape (number of sub-shapes of each type) More...
 
def NbShapes (self, theShape, theType)
 Obtain quantity of shapes of the given type in theShape. More...
 
def ShapeInfo (self, theShape)
 Obtain quantity of shapes of each type in theShape. More...
 
def GetCreationInformation (self, theShape)
 
def MakeCDG (self, theShape, theName=None)
 Get a point, situated at the centre of mass of theShape. More...
 
def GetVertexByIndex (self, theShape, theIndex, theUseOri=True, theName=None)
 Get a vertex sub-shape by index. More...
 
def GetFirstVertex (self, theShape, theName=None)
 Get the first vertex of wire/edge depended orientation. More...
 
def GetLastVertex (self, theShape, theName=None)
 Get the last vertex of wire/edge depended orientation. More...
 
def GetNormal (self, theFace, theOptionalPoint=None, theName=None)
 Get a normale to the given face. More...
 
def PrintShapeErrors (self, theShape, theShapeErrors, theReturnStatus=0)
 Print shape errors obtained from CheckShape. More...
 
def CheckShape (self, theShape, theIsCheckGeom=0, theReturnStatus=0)
 Check a topology of the given shape. More...
 
def CheckSelfIntersections (self, theShape, theCheckLevel=GEOM.SI_ALL)
 Detect self-intersections in the given shape. More...
 
def CheckSelfIntersectionsFast (self, theShape, theDeflection=0.001, theTolerance=0.0)
 Detect self-intersections of the given shape with algorithm based on mesh intersections. More...
 
def CheckBOPArguments (self, theShape)
 Check boolean and partition operations arguments. More...
 
def ExtractBOPFailure (self, theShapes, theTimer=False, theTopo=False, theParallel=False, theExact=False, theVerbose=False, theName=None)
 Performs general fuse BOP on the given list of shapes and extracts CheckShape information from its invalid result. More...
 
def FastIntersect (self, theShape1, theShape2, theTolerance=0.0, theDeflection=0.001)
 Detect intersections of the given shapes with algorithm based on mesh intersections. More...
 
def GetPosition (self, theShape)
 Get position (LCS) of theShape. More...
 
def KindOfShape (self, theShape)
 Get kind of theShape. More...
 
def PatchFace (self, theShape)
 The function takes a single face with holes and returns a list of faces, first of them is the original face without holes, and the other faces are placed on the same surface as the original face but bounded by each hole wire. More...
 
def CanonicalRecognition (self)
 Obtain a canonical recognition interface. More...
 
def ImportFile (self, theFileName, theFormatName, theName=None)
 Import a shape from the BREP, IGES, STEP or other file (depends on given format) with given name. More...
 
def Import (self, theFileName, theFormatName, theName=None)
 Deprecated analog of ImportFile() More...
 
def RestoreShape (self, theStream, theName=None)
 Read a shape from the binary stream, containing its bounding representation (BRep). More...
 
def Export (self, theObject, theFileName, theFormatName)
 Export the given shape into a file with given name. More...
 
def MakeQuad (self, E1, E2, E3, E4, theName=None)
 Create a quadrangle face from four edges. More...
 
def MakeQuad2Edges (self, E1, E2, theName=None)
 Create a quadrangle face on two edges. More...
 
def MakeQuad4Vertices (self, V1, V2, V3, V4, theName=None)
 Create a quadrangle face with specified corners. More...
 
def MakeHexa (self, F1, F2, F3, F4, F5, F6, theName=None)
 Create a hexahedral solid, bounded by the six given faces. More...
 
def MakeHexa2Faces (self, F1, F2, theName=None)
 Create a hexahedral solid between two given faces. More...
 
def GetPoint (self, theShape, theX, theY, theZ, theEpsilon, theName=None)
 Get a vertex, found in the given shape by its coordinates. More...
 
def GetVertexNearPoint (self, theShape, thePoint, theName=None)
 Find a vertex of the given shape, which has minimal distance to the given point. More...
 
def GetEdge (self, theShape, thePoint1, thePoint2, theName=None)
 Get an edge, found in the given shape by two given vertices. More...
 
def GetEdgeNearPoint (self, theShape, thePoint, theName=None)
 Find an edge of the given shape, which has minimal distance to the given point. More...
 
def GetFaceByPoints (self, theShape, thePoint1, thePoint2, thePoint3, thePoint4, theName=None)
 Returns a face, found in the given shape by four given corner vertices. More...
 
def GetFaceByEdges (self, theShape, theEdge1, theEdge2, theName=None)
 Get a face of block, found in the given shape by two given edges. More...
 
def GetOppositeFace (self, theBlock, theFace, theName=None)
 Find a face, opposite to the given one in the given block. More...
 
def GetFaceNearPoint (self, theShape, thePoint, theName=None)
 Find a face of the given shape, which has minimal distance to the given point. More...
 
def GetFaceByNormale (self, theBlock, theVector, theName=None)
 Find a face of block, whose outside normale has minimal angle with the given vector. More...
 
def GetShapesNearPoint (self, theShape, thePoint, theShapeType, theTolerance=1e-07, theName=None)
 Find all sub-shapes of type theShapeType of the given shape, which have minimal distance to the given point. More...
 
def CheckCompoundOfBlocks (self, theCompound, theIsUseC1=False, theAngTolerance=1.e-12)
 Check, if the compound of blocks is given. More...
 
def GetNonBlocks (self, theShape, theIsUseC1=False, theAngTolerance=1.e-12, theName=None)
 Retrieve all non blocks solids and faces from theShape. More...
 
def RemoveExtraEdges (self, theShape, doUnionFaces=False, theName=None)
 Remove all seam and degenerated edges from theShape. More...
 
def UnionFaces (self, theShape, theName=None)
 Performs union faces of theShape Unite faces sharing one surface. More...
 
def CheckAndImprove (self, theShape, theName=None)
 Check, if the given shape is a blocks compound. More...
 
def MakeBlockExplode (self, theCompound, theMinNbFaces, theMaxNbFaces, theName=None)
 Get all the blocks, contained in the given compound. More...
 
def GetBlockNearPoint (self, theCompound, thePoint, theName=None)
 Find block, containing the given point inside its volume or on boundary. More...
 
def GetBlockByParts (self, theCompound, theParts, theName=None)
 Find block, containing all the elements, passed as the parts, or maximum quantity of them. More...
 
def GetBlocksByParts (self, theCompound, theParts, theName=None)
 Return all blocks, containing all the elements, passed as the parts. More...
 
def MakeMultiTransformation1D (self, Block, DirFace1, DirFace2, NbTimes, theName=None)
 Multi-transformate block and glue the result. More...
 
def MakeMultiTransformation2D (self, Block, DirFace1U, DirFace2U, NbTimesU, DirFace1V, DirFace2V, NbTimesV, theName=None)
 Multi-transformate block and glue the result. More...
 
def Propagate (self, theShape, theName=None)
 Build all possible propagation groups. More...
 
def CreateGroup (self, theMainShape, theShapeType, theName=None)
 Creates a new group which will store sub-shapes of theMainShape. More...
 
def AddObject (self, theGroup, theSubShapeID)
 Adds a sub-object with ID theSubShapeId to the group. More...
 
def RemoveObject (self, theGroup, theSubShapeID)
 Removes a sub-object with ID theSubShapeId from the group. More...
 
def UnionList (self, theGroup, theSubShapes)
 Adds to the group all the given shapes. More...
 
def UnionIDs (self, theGroup, theSubShapes)
 Adds to the group all the given shapes. More...
 
def DifferenceList (self, theGroup, theSubShapes)
 Removes from the group all the given shapes. More...
 
def DifferenceIDs (self, theGroup, theSubShapes)
 Removes from the group all the given shapes. More...
 
def UnionGroups (self, theGroup1, theGroup2, theName=None)
 Union of two groups. More...
 
def IntersectGroups (self, theGroup1, theGroup2, theName=None)
 Intersection of two groups. More...
 
def CutGroups (self, theGroup1, theGroup2, theName=None)
 Cut of two groups. More...
 
def UnionListOfGroups (self, theGList, theName=None)
 Union of list of groups. More...
 
def IntersectListOfGroups (self, theGList, theName=None)
 Cut of lists of groups. More...
 
def CutListOfGroups (self, theGList1, theGList2, theName=None)
 Cut of lists of groups. More...
 
def GetObjectIDs (self, theGroup)
 Returns a list of sub-objects ID stored in the group. More...
 
def GetType (self, theGroup)
 Returns a type of sub-objects stored in the group. More...
 
def ShapeIdToType (self, theId)
 Convert a type of geom object from id to string value. More...
 
def GetMainShape (self, theGroup)
 Returns a main shape associated with the group. More...
 
def GetEdgesByLength (self, theShape, min_length, max_length, include_min=1, include_max=1, theName=None)
 Create group of edges of theShape, whose length is in range [min_length, max_length]. More...
 
def SelectEdges (self, min_length, max_length, include_min=1, include_max=1)
 Create group of edges of selected shape, whose length is in range [min_length, max_length]. More...
 
def MakeCopy (self, theOriginal, theName=None)
 Create a copy of the given object. More...
 
def addPath (self, Path)
 Add Path to load python scripts from. More...
 
def LoadTexture (self, Path)
 Load marker texture from the file. More...
 
def getObjectID (self, obj)
 Get internal name of the object based on its study entry. More...
 
def AddTexture (self, Width, Height, Texture, RowData=False)
 Add marker texture. More...
 
def TransferData (self, theObjectFrom, theObjectTo, theFindMethod=GEOM.FSM_GetInPlace)
 Transfer not topological data from one GEOM object to another. More...
 
def NewFolder (self, Name, Father=None)
 Creates a new folder object. More...
 
def PutToFolder (self, Object, Folder)
 Move object to the specified folder. More...
 
def PutListToFolder (self, ListOfSO, Folder)
 Move list of objects to the specified folder. More...
 
def CreateField (self, shape, name, type, dimension, componentNames)
 Creates a field. More...
 
def RemoveField (self, field)
 Removes a field from the GEOM component. More...
 
def CountFields (self, shape)
 Returns number of fields on a shape. More...
 
def GetFields (self, shape)
 Returns all fields on a shape. More...
 
def GetField (self, shape, name)
 Returns a field on a shape by its name. More...
 
def Tesselate (self, shape, linear_deflection=0, is_relative=True, angular_deflection=0)
 Build a mesh on the given shape. More...
 
def CheckConformity (self, shape)
 Obtain a shape checker. More...
 
def ShapeProximity (self)
 Obtain a shape proximity calculator. More...
 
def GetAdvancedOperations (self)
 
def MakeDividedCylinder (self, theR, theH, thePattern, theName=None)
 Builds a cylinder prepared for hexa meshes. More...
 
def MakeDividedDisk (self, theR, theOrientation, thePattern, theName=None)
 This function allows creating a disk already divided into blocks. More...
 
def MakeDividedDiskPntVecR (self, theCenter, theVector, theRadius, thePattern, theName=None)
 This function allows creating a disk already divided into blocks. More...
 
def MakePipeTShape (self, theR1, theW1, theL1, theR2, theW2, theL2, theHexMesh=True, theP1=None, theP2=None, theP3=None, theRL=0, theWL=0, theLtransL=0, theLthinL=0, theRR=0, theWR=0, theLtransR=0, theLthinR=0, theRI=0, theWI=0, theLtransI=0, theLthinI=0, theName=None)
 Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). More...
 
def MakePipeTShapeChamfer (self, theR1, theW1, theL1, theR2, theW2, theL2, theH, theW, theHexMesh=True, theP1=None, theP2=None, theP3=None, theRL=0, theWL=0, theLtransL=0, theLthinL=0, theRR=0, theWR=0, theLtransR=0, theLthinR=0, theRI=0, theWI=0, theLtransI=0, theLthinI=0, theName=None)
 Create a T-shape object with chamfer and with specified caracteristics for the main and the incident pipes (radius, width, half-length). More...
 
def MakePipeTShapeFillet (self, theR1, theW1, theL1, theR2, theW2, theL2, theRF, theHexMesh=True, theP1=None, theP2=None, theP3=None, theRL=0, theWL=0, theLtransL=0, theLthinL=0, theRR=0, theWR=0, theLtransR=0, theLthinR=0, theRI=0, theWI=0, theLtransI=0, theLthinI=0, theName=None)
 Create a T-shape object with fillet and with specified caracteristics for the main and the incident pipes (radius, width, half-length). More...
 
def MakeSmoothingSurface (self, thelPoints, theNbMax=2, theDegMax=8, theDMax=0.0, theName=None)
 Create a surface from a cloud of points. More...
 
def ExportSTL (self, theObject, theFileName, theIsASCII=True, theDeflection=0.001, theIsRelative=True)
 Export the given shape into a file with given name in STL format. More...
 
def GetSTLPluginOperations (self)
 
def ImportSTL (self, theFileName, theName=None)
 Import a shape from the STL file. More...
 
def ExportBREP (self, theObject, theFileName)
 Export the given shape into a file with given name in BREP format. More...
 
def GetBREPPluginOperations (self)
 
def ImportBREP (self, theFileName, theName=None)
 Import a shape from the BREP file. More...
 
def ExportSTEP (self, theObject, theFileName, theUnit=GEOM.LU_METER)
 Export the given shape into a file with given name in STEP format. More...
 
def GetSTEPPluginOperations (self)
 
def GetSTEPUnit (self, theFileName)
 Return length unit from given STEP file. More...
 
def ImportSTEP (self, theFileName, theIsIgnoreUnits=False, IsCreateAssemblies=False, theName=None)
 Import a shape from the STEP file with given name. More...
 
def ExportIGES (self, theObject, theFileName, theVersion="5.1")
 Export the given shape into a file with given name in IGES format. More...
 
def GetIGESPluginOperations (self)
 
def GetIGESUnit (self, theFileName)
 Return length unit from given IGES file. More...
 
def ImportIGES (self, theFileName, theIsIgnoreUnits=False, theName=None)
 Import a shape from the IGES file with given name. More...
 
def ExportXAO (self, shape, groups, fields, author, fileName, shapeFileName="")
 Export a shape to XAO format. More...
 
def ExportXAOMem (self, shape, groups, fields, author)
 Export a shape to XAO format in byte array. More...
 
def GetXAOPluginOperations (self)
 
def ImportXAO (self, fileName, theName=None)
 Import a shape from XAO format. More...
 
def ImportXAOMem (self, byteArray, theName=None)
 Import a shape from XAO format byte array. More...
 
def ExportVTK (self, theObject, theFileName, theDeflection=0.001)
 Export the given shape into a file with given name in VTK format. More...
 
def GetVTKPluginOperations (self)
 
Curve Curvature Measurement

Methods for receiving radius of curvature of curves in the given point

def CurveCurvatureByParam (self, theCurve, theParam)
 Measure curvature of a curve at a point, set by parameter. More...
 
def CurveCurvatureByPoint (self, theCurve, thePoint)
 Measure curvature of a curve at a point. More...
 
Surface Curvature Measurement

Methods for receiving max and min radius of curvature of surfaces in the given point

def MaxSurfaceCurvatureByParam (self, theSurf, theUParam, theVParam)
 Measure max radius of curvature of surface. More...
 
def MaxSurfaceCurvatureByPoint (self, theSurf, thePoint)
 Measure max radius of curvature of surface in the given point. More...
 
def MinSurfaceCurvatureByParam (self, theSurf, theUParam, theVParam)
 Measure min radius of curvature of surface. More...
 
def MinSurfaceCurvatureByPoint (self, theSurf, thePoint)
 Measure min radius of curvature of surface in the given point. More...
 

Data Fields

 myMaxNbSubShapesAllowed
 
 myBuilder
 
 BasicOp
 
 CurvesOp
 
 PrimOp
 
 ShapesOp
 
 HealOp
 
 InsertOp
 
 BoolOp
 
 TrsfOp
 
 LocalOp
 
 MeasuOp
 
 BlocksOp
 
 GroupOp
 
 FieldOp
 
 TestOp
 
 myStudy
 
 def_names
 

Static Public Attributes

dictionary ShapeType = {"AUTO":-1, "COMPOUND":0, "COMPSOLID":1, "SOLID":2, "SHELL":3, "FACE":4, "WIRE":5, "EDGE":6, "VERTEX":7, "SHAPE":8, "FLAT":9}
 Enumeration ShapeType as a dictionary. More...
 
 kind = GEOM.GEOM_IKindOfShape
 Kinds of shape in terms of GEOM.GEOM_IKindOfShape.shape_kind enumeration and a list of parameters, describing the shape. More...
 

Private Member Functions

def _autoPublish (self, theObj, theName, theDefaultName="noname")
 Process object publication in the study, as follows: More...
 
def _IsGoodForSolid (self, theShell)
 Returns the string that describes if the shell is good for solid. More...
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
args 
)

Member Function Documentation

◆ __new__()

def __new__ (   cls,
args 
)

◆ _autoPublish()

def _autoPublish (   self,
  theObj,
  theName,
  theDefaultName = "noname" 
)
private

Process object publication in the study, as follows:

  • if theName is specified (not None), the object is published in the study with this name, not taking into account "auto-publishing" option;
  • if theName is NOT specified, the object is published in the study (using default name, which can be customized using theDefaultName parameter) only if auto-publishing is switched on.
Parameters
theObjobject, a subject for publishing
theNameobject name for study
theDefaultNamedefault name for the auto-publishing
See also
addToStudyAuto()

References geomBuilder.addToStudy(), geomBuilder.addToStudyInFather(), and geomBuilder.myMaxNbSubShapesAllowed.

◆ GetAdvancedOperations()

def GetAdvancedOperations (   self)

◆ GetSTLPluginOperations()

def GetSTLPluginOperations (   self)

◆ GetBREPPluginOperations()

def GetBREPPluginOperations (   self)

◆ GetSTEPPluginOperations()

def GetSTEPPluginOperations (   self)

◆ GetIGESPluginOperations()

def GetIGESPluginOperations (   self)

◆ GetXAOPluginOperations()

def GetXAOPluginOperations (   self)

◆ GetVTKPluginOperations()

def GetVTKPluginOperations (   self)

Field Documentation

◆ myMaxNbSubShapesAllowed

myMaxNbSubShapesAllowed

◆ myBuilder

myBuilder

◆ BasicOp

BasicOp

◆ CurvesOp

CurvesOp

◆ PrimOp

PrimOp

◆ ShapesOp

ShapesOp

◆ HealOp

HealOp

◆ InsertOp

InsertOp

◆ BoolOp

BoolOp

◆ TrsfOp

TrsfOp

◆ LocalOp

LocalOp

◆ MeasuOp

MeasuOp

◆ BlocksOp

BlocksOp

◆ GroupOp

GroupOp

◆ FieldOp

FieldOp

◆ TestOp

TestOp

◆ myStudy

myStudy

◆ def_names

def_names