Version: 6.3.1
Defines | Functions

src/GEOMImpl/GEOMImpl_IShapesOperations.cxx File Reference

#include <Standard_Stream.hxx>
#include "GEOMImpl_IShapesOperations.hxx"
#include "GEOMImpl_Types.hxx"
#include "GEOMImpl_VectorDriver.hxx"
#include "GEOMImpl_ShapeDriver.hxx"
#include "GEOMImpl_CopyDriver.hxx"
#include "GEOMImpl_GlueDriver.hxx"
#include "GEOMImpl_IVector.hxx"
#include "GEOMImpl_IShapes.hxx"
#include "GEOMImpl_IGlue.hxx"
#include "GEOMImpl_Block6Explorer.hxx"
#include "GEOM_Function.hxx"
#include "GEOM_ISubShape.hxx"
#include "GEOM_PythonDump.hxx"
#include "GEOMAlgo_FinderShapeOn1.hxx"
#include "GEOMAlgo_FinderShapeOnQuad.hxx"
#include "GEOMAlgo_FinderShapeOn2.hxx"
#include "GEOMAlgo_ClsfBox.hxx"
#include "GEOMAlgo_ClsfSolid.hxx"
#include "GEOMAlgo_GlueDetector.hxx"
#include "GEOMAlgo_ListIteratorOfListOfCoupleOfShapes.hxx"
#include "GEOMAlgo_CoupleOfShapes.hxx"
#include "GEOMAlgo_ListOfCoupleOfShapes.hxx"
#include "utilities.h"
#include "OpUtil.hxx"
#include "Utils_ExceptHandlers.hxx"
#include <TFunction_DriverTable.hxx>
#include <TFunction_Driver.hxx>
#include <TFunction_Logbook.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDataStd_ListIteratorOfListOfExtendedString.hxx>
#include <TDF_Tool.hxx>
#include <BRepExtrema_ExtCF.hxx>
#include <BRepExtrema_DistShapeShape.hxx>
#include <BRep_Tool.hxx>
#include <BRep_Builder.hxx>
#include <BRepTools.hxx>
#include <BRepGProp.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepBndLib.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepMesh_IncrementalMesh.hxx>
#include <TopAbs.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopLoc_Location.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Compound.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopTools_Array1OfShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <TopTools_MapOfOrientedShape.hxx>
#include <Geom_Surface.hxx>
#include <Geom_Plane.hxx>
#include <Geom_SphericalSurface.hxx>
#include <Geom_CylindricalSurface.hxx>
#include <GeomAdaptor_Surface.hxx>
#include <GeomLib_Tool.hxx>
#include <Geom2d_Curve.hxx>
#include <Bnd_Box.hxx>
#include <GProp_GProps.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <gp_Cylinder.hxx>
#include <gp_Lin.hxx>
#include <gp_Pnt.hxx>
#include <vector>
#include <algorithm>
#include <functional>
#include <Standard_NullObject.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx>
#include <GEOMImpl_MeasureDriver.hxx>
#include <GEOMImpl_IMeasure.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
#include <BRepClass_FaceClassifier.hxx>
#include <BRepClass3d_SolidClassifier.hxx>
#include <Precision.hxx>
#include <TopoDS_TShape.hxx>

Defines

#define STD_SORT_ALGO   1
#define MAX_TOLERANCE   1.e-7

Functions

 Handle (GEOM_Object) GEOMImpl_IShapesOperations
 Handle (TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations
 Find subshapes complying with given status about surface.
 Handle (TColStd_HSequenceOfInteger) GEOMImpl_IShapesOperations
 Find IDs of subshapes complying with given status about surface.
static GEOM::TPythonDumpoperator<< (GEOM::TPythonDump &theDump, const GEOMAlgo_State theState)
 Handle (Geom_Surface) GEOMImpl_IShapesOperations
 Creates Geom_Plane.
static bool GetInPlaceOfShape (const Handle(GEOM_Function)&theWhereFunction, const TopTools_IndexedMapOfShape &theWhereIndices, const TopoDS_Shape &theWhat, TColStd_ListOfInteger &theModifiedList)
std::pair< double, double > ShapeToDouble (const TopoDS_Shape &S, bool isOldSorting)
static bool isSameEdge (const TopoDS_Edge &theEdge1, const TopoDS_Edge &theEdge2)
static bool isSameFace (const TopoDS_Face &theFace1, const TopoDS_Face &theFace2)
bool isSameSolid (const TopoDS_Solid &theSolid1, const TopoDS_Solid &theSolid2)

Define Documentation

#define STD_SORT_ALGO   1
#define MAX_TOLERANCE   1.e-7

Function Documentation

Handle ( GEOM_Object  )

MakeEdge

MakeEdgeOnCurveByLength

MakeEdgeWire

MakeWire

MakeFace

MakeFaceWires

MakeShell

MakeSolidShells

MakeCompound

MakeShape

MakeGlueFaces

GetGlueFaces

MakeGlueFacesByList

MakeGlueEdges

MakeGlueEdgesByList

GetSubShape

ReverseShape

case GetInPlace: default:

References GEOM_EDGE, GEOMImpl_VectorDriver.GetID(), Handle(), KO, OK, GEOMImpl_IVector.SetPoint1(), GEOMImpl_IVector.SetPoint2(), and VECTOR_TWO_PNT.

Handle ( TColStd_HSequenceOfTransient  )

Find subshapes complying with given status about quadrangle.

Find shape objects and their entries by their ids.

GetGlueShapes

GetExistingSubObjects

MakeExplode

MakeSubShapes

Parameters:
theBox- the box to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfTransient)- found subshapes
Parameters:
theCheckShape- the shape to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfTransient)- found subshapes
Parameters:
theShapeIDs- incoming shape ids
theShapeEntries- outgoing entries like "entry1, entry2, ..."
Return values:
Handle(TColStd_HSequenceOfTransient)- found shape objects
Parameters:
theSurface- the surface to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
theShapeEntries- outgoing entries like "entry1, entry2, ..."
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

GetShapesOnPlane

GetShapesOnPlaneWithLocation

GetShapesOnCylinder

GetShapesOnCylinderWithLocation

GetShapesOnSphere

Parameters:
theShape- the shape to explore
theShapeType- type of subshape of theShape
theTopLeftPoint- top left quadrangle corner
theTopRigthPoint- top right quadrangle corner
theBottomLeftPoint- bottom left quadrangle corner
theBottomRigthPoint- bottom right quadrangle corner
theState- required state
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

References GEOMAlgo_Algo.ErrorStatus(), Handle(), GEOMAlgo_GluerAlgo.Images(), KO, MapShapes(), GEOMAlgo_GlueDetector.Perform(), GEOMAlgo_GluerAlgo.SetArgument(), GEOMAlgo_GluerAlgo.SetTolerance(), and GEOMImpl_IShapesOperations.SortShapes().

Handle ( TColStd_HSequenceOfInteger  )

Find IDs of subshapes complying with given status about quadrangle.

Find subshapes complying with given status about surface.

SubShapeAllIDs

GetFreeFacesIDs

Parameters:
theBox- the box to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes
Parameters:
theCheckShape- the shape to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes
Parameters:
theSurface- the surface to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

GetShapesOnPlaneIDs

GetShapesOnPlaneWithLocationIDs

GetShapesOnCylinderIDs

GetShapesOnCylinderWithLocationIDs

GetShapesOnSphereIDs

Parameters:
theShape- the shape to explore
theShapeType- type of subshape of theShape
theTopLeftPoint- top left quadrangle corner
theTopRigthPoint- top right quadrangle corner
theBottomLeftPoint- bottom left quadrangle corner
theBottomRigthPoint- bottom right quadrangle corner
theState- required state
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

References Handle(), and MapShapes().

static GEOM::TPythonDump& operator<< ( GEOM::TPythonDump theDump,
const GEOMAlgo_State  theState 
) [static]
Handle ( Geom_Surface  )

Creates Geom_CylindricalSurface.

Parameters:
theAx1- shape object defining plane parameters
Return values:
Handle(Geom_Surface)- resulting surface
Parameters:
theAx1- edge defining cylinder axis
theRadius- cylinder radius
Return values:
Handle(Geom_Surface)- resulting surface

References GEOM_moteur.V1, GEOM_moteur.V2, and PAL_MESH_028_geometry.Vertices.

static bool GetInPlaceOfShape ( const Handle(GEOM_Function)&  theWhereFunction,
const TopTools_IndexedMapOfShape &  theWhereIndices,
const TopoDS_Shape &  theWhat,
TColStd_ListOfInteger &  theModifiedList 
) [static]

GetInPlaceOfShape

References Handle(), and MapShapes().

std::pair<double, double> ShapeToDouble ( const TopoDS_Shape &  S,
bool  isOldSorting 
)
static bool isSameEdge ( const TopoDS_Edge &  theEdge1,
const TopoDS_Edge &  theEdge2 
) [static]
static bool isSameFace ( const TopoDS_Face &  theFace1,
const TopoDS_Face &  theFace2 
) [static]
bool isSameSolid ( const TopoDS_Solid &  theSolid1,
const TopoDS_Solid &  theSolid2 
)

References isSameFace(), and MAX_TOLERANCE.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS