Interface for measurement (distance, whatis) and properties calculation (like Centre of Mass, Inertia, etc.). More...
import"GEOM_Gen.idl";
Data Structures | |
| struct | CheckResult |
| Structure for store result of check store type of check as number and failed shapes. More... | |
| struct | PairOfShape |
| Methods and structure for implement CheckConformity tool. More... | |
| struct | ShapeError |
| Description of a shape defect: type and incriminated sub-shapes. More... | |
Public Types | |
| enum | ShapeErrorType { InvalidPointOnCurve , InvalidPointOnCurveOnSurface , InvalidPointOnSurface , No3DCurve , Multiple3DCurve , Invalid3DCurve , NoCurveOnSurface , InvalidCurveOnSurface , InvalidCurveOnClosedSurface , InvalidSameRangeFlag , InvalidSameParameterFlag , InvalidDegeneratedFlag , FreeEdge , InvalidMultiConnexity , InvalidRange , EmptyWire , RedundantEdge , SelfIntersectingWire , NoSurface , InvalidWire , RedundantWire , IntersectingWires , InvalidImbricationOfWires , EmptyShell , RedundantFace , UnorientableShape , NotClosed , NotConnected , SubshapeNotInShape , BadOrientation , BadOrientationOfSubshape , InvalidToleranceValue , CheckFail } |
| Enumeration of Shape defects coming from CheckShape algorithms. More... | |
| typedef sequence< ShapeError > | ShapeErrors |
| Sequence of all shape defects. More... | |
| typedef sequence< PairOfShape > | SequenceOfPairOfShape |
| typedef sequence< CheckResult > | CheckResults |
Public Member Functions | |
| GEOM_IKindOfShape::shape_kind | KindOfShape (in GEOM_Object theShape, out ListOfLong theIntegers, out ListOfDouble theDoubles) |
| Get kind of theShape. More... | |
| void | GetPosition (in GEOM_Object theShape, out double Ox, out double Oy, out double Oz, out double Zx, out double Zy, out double Zz, out double Xx, out double Xy, out double Xz) |
| Get position (LCS) of theShape. More... | |
| void | GetBasicProperties (in GEOM_Object theShape, in double theTolerance, out double theLength, out double theSurfArea, out double theVolume) |
| Get summarized length of all wires, area of surface and volume of the given shape. More... | |
| GEOM_Object | GetCentreOfMass (in GEOM_Object theShape) |
| Get a point, situated at the centre of mass of theShape. More... | |
| GEOM_Object | GetVertexByIndex (in GEOM_Object theShape, in long theIndex, in boolean theUseOri) |
| GEOM_Object | GetNormal (in GEOM_Object theFace, in GEOM_Object theOptionalPoint) |
| Get a vector, representing the normal of theFace. If the face is not planar, theOptionalPoint is obligatory. More... | |
| void | GetInertia (in GEOM_Object theShape, out double I11, out double I12, out double I13, out double I21, out double I22, out double I23, out double I31, out double I32, out double I33, out double Ix, out double Iy, out double Iz) |
| Get inertia matrix and moments of inertia of theShape. More... | |
| void | GetBoundingBox (in GEOM_Object theShape, in boolean precise, out double Xmin, out double Xmax, out double Ymin, out double Ymax, out double Zmin, out double Zmax) |
| Get parameters of bounding box of the given shape. More... | |
| GEOM_Object | MakeBoundingBox (in GEOM_Object theShape, in boolean precise) |
| Get bounding box of the given shape. More... | |
| void | GetTolerance (in GEOM_Object theShape, out double FaceMin, out double FaceMax, out double EdgeMin, out double EdgeMax, out double VertMin, out double VertMax) |
| Get min and max tolerances of sub-shapes of theShape. More... | |
| boolean | CheckShape (in GEOM_Object theShape, out ShapeErrors theErrors) |
| Check a topology of the given shape. More... | |
| boolean | CheckShapeWithGeometry (in GEOM_Object theShape, out ShapeErrors theErrors) |
| Check a topology and a geometry of the given shape. More... | |
| string | PrintShapeErrors (in GEOM_Object theShape, in ShapeErrors theErrors) |
| Convert sequence of shape errors, returned by CheckShape() or CheckShapeWithGeometry(), into string. More... | |
| boolean | CheckSelfIntersections (in GEOM_Object theShape, in long theCheckLevel, out ListOfLong theIntersections) |
| Check a topology of the given shape on self-intersections presence. More... | |
| boolean | CheckSelfIntersectionsFast (in GEOM_Object theShape, in float theDeflection, in double theTolerance, out ListOfLong theIntersections) |
| Detect self-intersections of the given shape with algorithm based on mesh intersections. More... | |
| boolean | CheckBOPArguments (in GEOM_Object theShape) |
| Check boolean and partition operations arguments. More... | |
| boolean | FastIntersect (in GEOM_Object theShape1, in GEOM_Object theShape2, in double theTolerance, in float theDeflection, out ListOfLong theIntersections1, out ListOfLong theIntersections2) |
| Detect intersections of the given shapes with algorithm based on mesh intersections. More... | |
| string | IsGoodForSolid (in GEOM_Object theShape) |
| Check if the given shape can be an argument for MakeSolid operation. More... | |
| string | WhatIs (in GEOM_Object theShape) |
| btain description of the given shape More... | |
| ListOfBool | AreCoordsInside (in GEOM_Object theShape, in ListOfDouble coords, in double tolerance) |
| Check if points defined by coords = [x1, y1, z1, x2, y2, z2, ...] are inside or on the shape theShape. More... | |
| double | GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2, out double X1, out double Y1, out double Z1, out double X2, out double Y2, out double Z2) |
| Get minimal distance between the given shapes. More... | |
| long | ClosestPoints (in GEOM_Object theShape1, in GEOM_Object theShape2, out ListOfDouble theCoords) |
| Get closest points of the given shapes. More... | |
| double | GetAngle (in GEOM_Object theShape1, in GEOM_Object theShape2) |
| Get angle between the given lines or linear edges. More... | |
| double | GetAngleBtwVectors (in GEOM_Object theShape1, in GEOM_Object theShape2) |
| Get angle between the given vectors. More... | |
| ListOfGO | PatchFace (in GEOM_Object 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. If the original face has no holes, it will be returned as an output. More... | |
| void | PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z) |
| Get point coordinates. More... | |
| double | CurveCurvatureByParam (in GEOM_Object theShape, in double theParam) |
| Get radius of curvature of curve in the point determinated by param. More... | |
| double | CurveCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint) |
| Get radius of curvature of curve in the given point. More... | |
| double | MaxSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam, in double theVParam) |
| Get max radius of curvature of surface in the point determinated by params. More... | |
| double | MaxSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint) |
| Get max radius of curvature of surface in the given point. More... | |
| double | MinSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam, in double theVParam) |
| Get min radius of curvature of surface in the point determinated by params. More... | |
| double | MinSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint) |
| Get min radius of curvature of surface in the given point. More... | |
| GEOM_Object | SurfaceCurvatureByPointAndDirection (in GEOM_Object theShape, in GEOM_Object thePoint, in GEOM_Object theDirection) |
| Get vector of curvature of surface in the given point along the given direction. More... | |
| ListOfDouble | XYZtoUV (in GEOM_Object theSurf, in ListOfDouble theXYZlist, in boolean theIsNormalized) |
| Convert X,Y,Z points coordinates to UV parameters on the given surface. More... | |
| ListOfDouble | UVtoXYZ (in GEOM_Object theSurf, in ListOfDouble theUVlist, in boolean theIsNormalized) |
| Convert UV parameters on the given surface to 3D points coordinates. More... | |
| CheckResults | CheckConformityShape (in GEOM_Object theShape) |
| Perform analyse of shape and return all failed checks. More... | |
| SequenceOfPairOfShape | SelfIntersected2D (in CheckResults theResults) |
| Find all self-intersected 2D curves. More... | |
| SequenceOfPairOfShape | InterferingSubshapes (in CheckResults theResults, in long theShapeType1, in long theShapeType2) |
| Find pairs of interfering sub-shapes, by default all pairs of interfering shapes are returned. Avaliable types: More... | |
| ListOfGO | SmallEdges (in CheckResults theResults) |
| Find edges, which are fully covered by tolerances of vertices. More... | |
| SequenceOfPairOfShape | DistantShapes (in CheckResults theResults, in long theShapeType, in long theSubShapeType, in double theTolerance) |
| find remote objects (sub-shape on a shape). Avaliable types: More... | |
| double | UpdateTolerance (in GEOM_Object theShape) |
| Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible. More... | |
| GEOM_Object | ShapeProximityCalculator (in GEOM_Object theShape1, in GEOM_Object theShape2) |
| Get the calculator for the proximity value between the given shapes. More... | |
| void | SetShapeSampling (in GEOM_Object theCalculator, in GEOM_Object theShape, in long theNbSamples) |
| Set number sample points to compute the coarse proximity. More... | |
| double | GetCoarseProximity (in GEOM_Object theCalculator) |
| Compute coarse value of the proximity basing on the polygonal representation of shapes. More... | |
| double | GetPreciseProximity (in GEOM_Object theCalculator) |
| Compute precise value of the proximity basing on the exact shapes. More... | |
| boolean | IsDone () |
| To know, if the operation was successfully performed. More... | |
| void | SetErrorCode (in string theErrorID) |
| Set the operation error code. More... | |
| string | GetErrorCode () |
| Get the operation error code. More... | |
| void | StartOperation () |
| Opens a new transaction. More... | |
| void | FinishOperation () |
| Closes the previously opened transaction. More... | |
| void | AbortOperation () |
| Aborts the previously opened transaction. More... | |
Interface for measurement (distance, whatis) and properties calculation (like Centre of Mass, Inertia, etc.).
| typedef sequence<ShapeError> ShapeErrors |
Sequence of all shape defects.
| typedef sequence<PairOfShape> SequenceOfPairOfShape |
| typedef sequence<CheckResult> CheckResults |
| enum ShapeErrorType |
Enumeration of Shape defects coming from CheckShape algorithms.
| GEOM_IKindOfShape::shape_kind KindOfShape | ( | in GEOM_Object | theShape, |
| out ListOfLong | theIntegers, | ||
| out ListOfDouble | theDoubles | ||
| ) |
Get kind of theShape.
| theShape | Shape to get a kind of. |
| theIntegers | Output. Integer and enumerated shape's parameters (kind of surface, closed/unclosed, number of edges, etc.) |
| theDoubles | Output. Double shape's parameters (coordinates, dimensions, etc.) |
| void GetPosition | ( | in GEOM_Object | theShape, |
| out double | Ox, | ||
| out double | Oy, | ||
| out double | Oz, | ||
| out double | Zx, | ||
| out double | Zy, | ||
| out double | Zz, | ||
| out double | Xx, | ||
| out double | Xy, | ||
| out double | Xz | ||
| ) |
Get position (LCS) of theShape.
| theShape | Shape to calculate position of. |
| Ox,Oy,Oz | Output. Coordinates of shape's location origin. Origin of the LCS is situated at the shape's center of mass. |
| Zx,Zy,Zz | Output. Coordinates of shape's location normal(main) direction. |
| Xx,Xy,Xz | Output. Coordinates of shape's location X direction. Axes of the LCS are obtained from shape's location or, if the shape is a planar face, from position of its plane. |
| void GetBasicProperties | ( | in GEOM_Object | theShape, |
| in double | theTolerance, | ||
| out double | theLength, | ||
| out double | theSurfArea, | ||
| out double | theVolume | ||
| ) |
Get summarized length of all wires, area of surface and volume of the given shape.
| theShape | Shape to define properties of. |
| theTolerance | maximal relative error of area and volume computation. |
| theLength | Output. Summarized length of all wires of the given shape. |
| theSurfArea | Output. Area of surface of the given shape. |
| theVolume | Output. Volume of the given shape. |
| GEOM_Object GetCentreOfMass | ( | in GEOM_Object | theShape | ) |
Get a point, situated at the centre of mass of theShape.
| theShape | Shape to define centre of mass of. |
| GEOM_Object GetVertexByIndex | ( | in GEOM_Object | theShape, |
| in long | theIndex, | ||
| in boolean | theUseOri | ||
| ) |
| GEOM_Object GetNormal | ( | in GEOM_Object | theFace, |
| in GEOM_Object | theOptionalPoint | ||
| ) |
Get a vector, representing the normal of theFace. If the face is not planar, theOptionalPoint is obligatory.
| theFace | Shape (face) to define the normal of. |
| theOptionalPoint | Shape (point) to define the normal at. Can be NULL in case of planar face. |
| void GetInertia | ( | in GEOM_Object | theShape, |
| out double | I11, | ||
| out double | I12, | ||
| out double | I13, | ||
| out double | I21, | ||
| out double | I22, | ||
| out double | I23, | ||
| out double | I31, | ||
| out double | I32, | ||
| out double | I33, | ||
| out double | Ix, | ||
| out double | Iy, | ||
| out double | Iz | ||
| ) |
Get inertia matrix and moments of inertia of theShape.
| theShape | Shape to calculate inertia of. |
| I11,I12,I13,I21,I22,I23,I31,I32,I33 | Output. Components of the inertia matrix of the given shape. |
| Ix,Iy,Iz | Output. Moments of inertia of the given shape. |
| void GetBoundingBox | ( | in GEOM_Object | theShape, |
| in boolean | precise, | ||
| out double | Xmin, | ||
| out double | Xmax, | ||
| out double | Ymin, | ||
| out double | Ymax, | ||
| out double | Zmin, | ||
| out double | Zmax | ||
| ) |
Get parameters of bounding box of the given shape.
| theShape | Shape to obtain bounding box of. |
| precise | TRUE for precise computation; FALSE for fast one. |
| Xmin,Xmax | Output. Limits of shape along OX axis. |
| Ymin,Ymax | Output. Limits of shape along OY axis. |
| Zmin,Zmax | Output. Limits of shape along OZ axis. |
| GEOM_Object MakeBoundingBox | ( | in GEOM_Object | theShape, |
| in boolean | precise | ||
| ) |
Get bounding box of the given shape.
| theShape | Shape to obtain bounding box of. |
| precise | TRUE for precise computation; FALSE for fast one. |
| void GetTolerance | ( | in GEOM_Object | theShape, |
| out double | FaceMin, | ||
| out double | FaceMax, | ||
| out double | EdgeMin, | ||
| out double | EdgeMax, | ||
| out double | VertMin, | ||
| out double | VertMax | ||
| ) |
Get min and max tolerances of sub-shapes of theShape.
| theShape | Shape, to get tolerances of. |
| FaceMin,FaceMax | Output. Min and max tolerances of the faces. |
| EdgeMin,EdgeMax | Output. Min and max tolerances of the edges. |
| VertMin,VertMax | Output. Min and max tolerances of the vertices. |
| boolean CheckShape | ( | in GEOM_Object | theShape, |
| out ShapeErrors | theErrors | ||
| ) |
Check a topology of the given shape.
| theShape | Shape to check validity of. |
| theErrors | Structure, containing discovered errors and incriminated sub-shapes. |
| boolean CheckShapeWithGeometry | ( | in GEOM_Object | theShape, |
| out ShapeErrors | theErrors | ||
| ) |
Check a topology and a geometry of the given shape.
| theShape | Shape to check validity of. |
| theErrors | Structure, containing discovered errors and incriminated sub-shapes. |
| string PrintShapeErrors | ( | in GEOM_Object | theShape, |
| in ShapeErrors | theErrors | ||
| ) |
Convert sequence of shape errors, returned by CheckShape() or CheckShapeWithGeometry(), into string.
| theShape | the invalid shape. |
| theErrors | The sequence of theShape errors. |
| boolean CheckSelfIntersections | ( | in GEOM_Object | theShape, |
| in long | theCheckLevel, | ||
| out ListOfLong | theIntersections | ||
| ) |
Check a topology of the given shape on self-intersections presence.
\brief Extract and identify any problem in the source shapes used in a Boolean Operation. \param theShapes Shapes being used in the Boolean Operation \param theUseTimer Whether to chronometrize computation time \param theTopoOnly Whether to check topology only \param theRunParallel Whether to run the computations in parallel \param theDoExact Whether to perform exact checking \param theResultShape Output parameter. The result of BOP General Fuse. Indices of its sub-shapes are reported in theErrors structure. \param theErrors Output parameter. Structure, containing discovered errors and incriminated sub-shapes. \return TRUE, if the input shapes "seem to be valid" for BOP. ‍/
boolean ExtractBOPFailure (in ListOfGO theShapes, in boolean theUseTimer, in boolean theTopoOnly, in boolean theRunParallel, in boolean theDoExact, out GEOM_Object theResultShape, out ShapeErrors theErrors);
/*!
| theShape | Shape to check validity of. |
| theCheckLevel | the level of self-interference check. |
| theIntersections | Output. List of intersected sub-shapes IDs, it contains pairs of IDs. |
| boolean CheckSelfIntersectionsFast | ( | in GEOM_Object | theShape, |
| in float | theDeflection, | ||
| in double | theTolerance, | ||
| out ListOfLong | theIntersections | ||
| ) |
Detect self-intersections of the given shape with algorithm based on mesh intersections.
| theShape | Shape to check validity of. |
| theDeflection | Linear deflection coefficient that specifies quality of tessellation. |
| theTolerance | Specifies a distance between sub-shapes used for detecting gaps:
|
| theIntersections | Output. List of intersected sub-shapes IDs, it contains pairs of IDs. |
| boolean CheckBOPArguments | ( | in GEOM_Object | theShape | ) |
Check boolean and partition operations arguments.
| theShape | the argument of an operation to be checked. |
| boolean FastIntersect | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2, | ||
| in double | theTolerance, | ||
| in float | theDeflection, | ||
| out ListOfLong | theIntersections1, | ||
| out ListOfLong | theIntersections2 | ||
| ) |
Detect intersections of the given shapes with algorithm based on mesh intersections.
| theShape1 | First source object |
| theShape2 | Second source object |
| theTolerance | Specifies a distance between shapes used for detecting gaps:
|
| theDeflection | Linear deflection coefficient that specifies quality of tessellation:
|
| theIntersections1 | Output: contains list of sub-shapes IDs from 1st shape that localize intersection |
| theIntersections2 | Output: contains list of sub-shapes IDs from 2nd shape that localize intersection |
| string IsGoodForSolid | ( | in GEOM_Object | theShape | ) |
Check if the given shape can be an argument for MakeSolid operation.
| theShape | Shape to be described. |
| string WhatIs | ( | in GEOM_Object | theShape | ) |
btain description of the given shape
O
| theShape | Shape to be described. |
| ListOfBool AreCoordsInside | ( | in GEOM_Object | theShape, |
| in ListOfDouble | coords, | ||
| in double | tolerance | ||
| ) |
Check if points defined by coords = [x1, y1, z1, x2, y2, z2, ...] are inside or on the shape theShape.
| theShape | Shape to check. |
| coords | list of coordinates. |
| tolerance | tolerance. |
| double GetMinDistance | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2, | ||
| out double | X1, | ||
| out double | Y1, | ||
| out double | Z1, | ||
| out double | X2, | ||
| out double | Y2, | ||
| out double | Z2 | ||
| ) |
Get minimal distance between the given shapes.
| theShape1,theShape2 | Shapes to find minimal distance between. |
| X1,Y1,Z1 | Output. Coordinates of point on theShape1, nearest to theShape2. |
| X2,Y2,Z2 | Output. Coordinates of point on theShape2, nearest to theShape1. |
| long ClosestPoints | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2, | ||
| out ListOfDouble | theCoords | ||
| ) |
Get closest points of the given shapes.
| theShape1,theShape2 | Shapes to find closest points of. |
| theCoords | Output. List of (X, Y, Z) coordinates for all couples of points. |
| double GetAngle | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2 | ||
| ) |
Get angle between the given lines or linear edges.
| theShape1,theShape2 | Shapes to find angle between. Lines or linear edges. |
| double GetAngleBtwVectors | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2 | ||
| ) |
Get angle between the given vectors.
| theShape1,theShape2 | Vectors to find angle between. |
| ListOfGO PatchFace | ( | in GEOM_Object | 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. If the original face has no holes, it will be returned as an output.
| theShape | face, to perform operation. |
| void PointCoordinates | ( | in GEOM_Object | theShape, |
| out double | X, | ||
| out double | Y, | ||
| out double | Z | ||
| ) |
Get point coordinates.
| double CurveCurvatureByParam | ( | in GEOM_Object | theShape, |
| in double | theParam | ||
| ) |
Get radius of curvature of curve in the point determinated by param.
| theShape | - curve. |
| theParam | - parameter on curve |
| double CurveCurvatureByPoint | ( | in GEOM_Object | theShape, |
| in GEOM_Object | thePoint | ||
| ) |
Get radius of curvature of curve in the given point.
| theShape | - curve. |
| thePoint | - point |
| double MaxSurfaceCurvatureByParam | ( | in GEOM_Object | theShape, |
| in double | theUParam, | ||
| in double | theVParam | ||
| ) |
Get max radius of curvature of surface in the point determinated by params.
| theShape | - surface. |
| theUParam | - U-parameter on surface |
| theVParam | - V-parameter on surface |
| double MaxSurfaceCurvatureByPoint | ( | in GEOM_Object | theShape, |
| in GEOM_Object | thePoint | ||
| ) |
Get max radius of curvature of surface in the given point.
| theShape | - surface. |
| thePoint | - point |
| double MinSurfaceCurvatureByParam | ( | in GEOM_Object | theShape, |
| in double | theUParam, | ||
| in double | theVParam | ||
| ) |
Get min radius of curvature of surface in the point determinated by params.
| theShape | - surface. |
| theUParam | - U-parameter on surface |
| theVParam | - V-parameter on surface |
| double MinSurfaceCurvatureByPoint | ( | in GEOM_Object | theShape, |
| in GEOM_Object | thePoint | ||
| ) |
Get min radius of curvature of surface in the given point.
| theShape | - surface. |
| thePoint | - point |
| GEOM_Object SurfaceCurvatureByPointAndDirection | ( | in GEOM_Object | theShape, |
| in GEOM_Object | thePoint, | ||
| in GEOM_Object | theDirection | ||
| ) |
Get vector of curvature of surface in the given point along the given direction.
| theShape | - face. |
| thePoint | - point. |
| theDirection | - direction. |
| ListOfDouble XYZtoUV | ( | in GEOM_Object | theSurf, |
| in ListOfDouble | theXYZlist, | ||
| in boolean | theIsNormalized | ||
| ) |
Convert X,Y,Z points coordinates to UV parameters on the given surface.
| theSurf | the given face. It can be also a shell or a compound with one face. |
| theXYZlist | float list of size 3*N where N is the number of points for which we want their U,V coordinates. If the user enters a list of size not divisible by 3 an exception will be thrown. |
| theIsNormalized | if True, the returned parameters will be in range [0, 1]. |
| ListOfDouble UVtoXYZ | ( | in GEOM_Object | theSurf, |
| in ListOfDouble | theUVlist, | ||
| in boolean | theIsNormalized | ||
| ) |
Convert UV parameters on the given surface to 3D points coordinates.
| theSurf | the given face. It can be also a shell or a compound with one face. |
| theUVlist | float list of size 2*N where N is the number of points for which we want their X,Y,Z coordinates. If the user enters a list of non-even size an exception will be thrown. |
| theIsNormalized | if True, the input parameters are expected to be in range [0, 1]. |
| CheckResults CheckConformityShape | ( | in GEOM_Object | theShape | ) |
Perform analyse of shape and return all failed checks.
| theShape | Shape for check. |
| SequenceOfPairOfShape SelfIntersected2D | ( | in CheckResults | theResults | ) |
Find all self-intersected 2D curves.
| theResults | result of check - list of failed checks and sub-shapes. |
| SequenceOfPairOfShape InterferingSubshapes | ( | in CheckResults | theResults, |
| in long | theShapeType1, | ||
| in long | theShapeType2 | ||
| ) |
Find pairs of interfering sub-shapes, by default all pairs of interfering shapes are returned. Avaliable types:
| theResults | result of check - list of failed checks and sub-shapes. |
| theShapeType1 | Type of shape. |
| theShapeType2 | Type of shape. |
| ListOfGO SmallEdges | ( | in CheckResults | theResults | ) |
Find edges, which are fully covered by tolerances of vertices.
| theResults | result of check - list of failed checks and sub-shapes. |
| SequenceOfPairOfShape DistantShapes | ( | in CheckResults | theResults, |
| in long | theShapeType, | ||
| in long | theSubShapeType, | ||
| in double | theTolerance | ||
| ) |
find remote objects (sub-shape on a shape). Avaliable types:
| theResults | result of check - list of failed checks and sub-shapes. |
| theShapeType | Type of shape. |
| theSubShapeType | Type of sub-shape. |
| theTolerance | tolerance, by default used tolerance of sub-shape. |
| double UpdateTolerance | ( | in GEOM_Object | theShape | ) |
Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible.
| theShape | Shape for update. |
| GEOM_Object ShapeProximityCalculator | ( | in GEOM_Object | theShape1, |
| in GEOM_Object | theShape2 | ||
| ) |
Get the calculator for the proximity value between the given shapes.
| theShape1,theShape2 | Shapes to find proximity. |
| void SetShapeSampling | ( | in GEOM_Object | theCalculator, |
| in GEOM_Object | theShape, | ||
| in long | theNbSamples | ||
| ) |
Set number sample points to compute the coarse proximity.
| theCalculator | Proximity calculator. |
| theShape | Shape to be samples. |
| theNbSamples | Number of samples points. |
| double GetCoarseProximity | ( | in GEOM_Object | theCalculator | ) |
Compute coarse value of the proximity basing on the polygonal representation of shapes.
| theCalculator | Proximity calculator. |
| double GetPreciseProximity | ( | in GEOM_Object | theCalculator | ) |
Compute precise value of the proximity basing on the exact shapes.
| theCalculator | Proximity calculator. |
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
| theErrorID | is a string describing the error occurred |
|
inherited |
Get the operation error code.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened transaction.
|
inherited |
Aborts the previously opened transaction.