Functions | |
def | geompy.GetFreeFacesIDs |
Retrieve all free faces from the given shape. | |
def | geompy.GetSharedShapes |
Get all sub-shapes of theShape1 of the given type, shared with theShape2. | |
def | geompy.GetSharedShapesMulti |
Get all sub-shapes, shared by all shapes in the list theShapes. | |
def | geompy.GetShapesOnPlane |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnPlaneIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnPlaneWithLocation |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnPlaneWithLocationIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnCylinder |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnCylinderIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnCylinderWithLocation |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnCylinderWithLocationIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnSphere |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnSphereIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnQuadrangle |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnQuadrangleIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnBox |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnBoxIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theBox by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnShape |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnShapeAsCompound |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. | |
def | geompy.GetShapesOnShapeIDs |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified theCheckShape by the certain way, defined through theState parameter. | |
def | geompy.GetInPlace |
Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. | |
def | geompy.GetInPlaceByHistory |
Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it. | |
def | geompy.GetSame |
Get sub-shape of theShapeWhere, which is equal to theShapeWhat. | |
def | geompy.GetSameIDs |
Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat. |
def geompy.GetFreeFacesIDs | ( | self, | |
theShape | |||
) |
Retrieve all free faces from the given shape.
Free face is a face, which is not shared between two shells of the shape.
theShape | Shape to find free faces in. |
References geompy.RaiseIfFailed().
def geompy.GetSharedShapes | ( | self, | |
theShape1, | |||
theShape2, | |||
theShapeType | |||
) |
Get all sub-shapes of theShape1 of the given type, shared with theShape2.
theShape1 | Shape to find sub-shapes in. |
theShape2 | Shape to find shared sub-shapes with. |
theShapeType | Type of sub-shapes to be retrieved. |
References geompy.RaiseIfFailed().
def geompy.GetSharedShapesMulti | ( | self, | |
theShapes, | |||
theShapeType | |||
) |
Get all sub-shapes, shared by all shapes in the list theShapes.
theShapes | Shapes to find common sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnPlane | ( | 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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAx1 | Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAx1 | Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnPlaneWithLocation | ( | 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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAx1 | Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on. |
thePnt | Point specifying location of the plane to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAx1 | Vector (or line, or linear edge), specifying normal direction of the plane to find shapes on. |
thePnt | Point specifying location of the plane to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnCylinder | ( | 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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAxis | Vector (or line, or linear edge), specifying axis of the cylinder to find shapes on. |
theRadius | Radius of the cylinder to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAxis | Vector (or line, or linear edge), specifying axis of the cylinder to find shapes on. |
theRadius | Radius of the cylinder to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnCylinderWithLocation | ( | 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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAxis | Vector (or line, or linear edge), specifying axis of the cylinder to find shapes on. |
thePnt | Point specifying location of the bottom of the cylinder. |
theRadius | Radius of the cylinder to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theAxis | Vector (or line, or linear edge), specifying axis of the cylinder to find shapes on. |
thePnt | Point specifying location of the bottom of the cylinder. |
theRadius | Radius of the cylinder to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnSphere | ( | 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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theCenter | Point, specifying center of the sphere to find shapes on. |
theRadius | Radius of the sphere to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theCenter | Point, specifying center of the sphere to find shapes on. |
theRadius | Radius of the sphere to find shapes on. |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.GetShapesOnQuadrangle(), and geompy.RaiseIfFailed().
def geompy.GetShapesOnQuadrangle | ( | self, | |
theShape, | |||
theShapeType, | |||
theTopLeftPoint, | |||
theTopRigthPoint, | |||
theBottomLeftPoint, | |||
theBottomRigthPoint, | |||
theState | |||
) |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theTopLeftPoint | Point, specifying top left corner of a quadrangle |
theTopRigthPoint | Point, specifying top right corner of a quadrangle |
theBottomLeftPoint | Point, specifying bottom left corner of a quadrangle |
theBottomRigthPoint | Point, specifying bottom right corner of a quadrangle |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.GetShapesOnQuadrangleIDs(), and geompy.RaiseIfFailed().
def geompy.GetShapesOnQuadrangleIDs | ( | self, | |
theShape, | |||
theShapeType, | |||
theTopLeftPoint, | |||
theTopRigthPoint, | |||
theBottomLeftPoint, | |||
theBottomRigthPoint, | |||
theState | |||
) |
Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theTopLeftPoint | Point, specifying top left corner of a quadrangle |
theTopRigthPoint | Point, specifying top right corner of a quadrangle |
theBottomLeftPoint | Point, specifying bottom left corner of a quadrangle |
theBottomRigthPoint | Point, specifying bottom right corner of a quadrangle |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnBox | ( | 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.
theBox | Shape for relative comparing. |
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theBox | Shape for relative comparing. |
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnShape | ( | 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.
theCheckShape | Shape for relative comparing. It must be a solid. |
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetShapesOnShapeAsCompound | ( | 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.
theCheckShape | Shape for relative comparing. It must be a solid. |
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.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.
theCheckShape | Shape for relative comparing. It must be a solid. |
theShape | Shape to find sub-shapes of. |
theShapeType | Type of sub-shapes to be retrieved (see ShapeType()) |
theState | The state of the sub-shapes to find (see GEOM::shape_state) |
References geompy.RaiseIfFailed().
def geompy.GetInPlace | ( | self, | |
theShapeWhere, | |||
theShapeWhat, | |||
isNewImplementation = False |
|||
) |
Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.
theShapeWhere | Shape to find sub-shapes of. |
theShapeWhat | Shape, specifying what to find. |
isNewImplementation | implementation of GetInPlace functionality (default = False, old alghorithm based on shape properties) |
References geompy.RaiseIfFailed().
def geompy.GetInPlaceByHistory | ( | self, | |
theShapeWhere, | |||
theShapeWhat | |||
) |
Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.
Implementation of this method is based on a saved history of an operation, produced theShapeWhere. The theShapeWhat must be among this operation's arguments (an argument shape or a sub-shape of an argument shape). The operation could be the Partition or one of boolean operations, performed on simple shapes (not on compounds).
theShapeWhere | Shape to find sub-shapes of. |
theShapeWhat | Shape, specifying what to find (must be in the building history of the ShapeWhere). |
References geompy.RaiseIfFailed().
def geompy.GetSame | ( | self, | |
theShapeWhere, | |||
theShapeWhat | |||
) |
Get sub-shape of theShapeWhere, which is equal to theShapeWhat.
theShapeWhere | Shape to find sub-shape of. |
theShapeWhat | Shape, specifying what to find. |
References geompy.RaiseIfFailed().
def geompy.GetSameIDs | ( | self, | |
theShapeWhere, | |||
theShapeWhat | |||
) |
Get sub-shape indices of theShapeWhere, which is equal to theShapeWhat.
theShapeWhere | Shape to find sub-shape of. |
theShapeWhat | Shape, specifying what to find. |
References geompy.RaiseIfFailed().