23#ifndef _GEOMImpl_IBlocksOperations_HXX_
24#define _GEOMImpl_IBlocksOperations_HXX_
28#include <TopTools_ListOfShape.hxx>
29#include <TColStd_HSequenceOfTransient.hxx>
30#include <TColStd_HArray1OfInteger.hxx>
43 Standard_EXPORT
Handle(GEOM_Object) MakeQuad (
Handle(GEOM_Object) theEdge1,
48 Standard_EXPORT
Handle(GEOM_Object) MakeQuad2Edges (
Handle(GEOM_Object) theEdge1,
51 Standard_EXPORT
Handle(GEOM_Object) MakeQuad4Vertices (
Handle(GEOM_Object) thePoint1,
56 Standard_EXPORT
Handle(GEOM_Object) MakeHexa (
Handle(GEOM_Object) theFace1,
63 Standard_EXPORT
Handle(GEOM_Object) MakeHexa2Faces (
Handle(GEOM_Object) theFace1,
66 Standard_EXPORT
Handle(GEOM_Object) MakeBlockCompound (
Handle(GEOM_Object) theCompound);
69 Standard_EXPORT
Handle(GEOM_Object) GetPoint (
Handle(GEOM_Object) theShape,
75 Standard_EXPORT
Handle(GEOM_Object) GetVertexNearPoint (
Handle(GEOM_Object) theShape,
78 Standard_EXPORT
Handle(GEOM_Object) GetEdge (
Handle(GEOM_Object) theShape,
85 Standard_EXPORT
Handle(GEOM_Object) GetFaceByPoints (
Handle(GEOM_Object) theShape,
91 Standard_EXPORT
Handle(GEOM_Object) GetFaceByEdges (
Handle(GEOM_Object) theShape,
95 Standard_EXPORT
Handle(GEOM_Object) GetOppositeFace (
Handle(GEOM_Object) theBlock,
98 Standard_EXPORT
Handle(GEOM_Object) GetFaceNearPoint (
Handle(GEOM_Object) theBlock,
101 Standard_EXPORT
Handle(GEOM_Object) GetFaceByNormale (
Handle(GEOM_Object) theBlock,
104 Standard_EXPORT
Handle(GEOM_Object) GetShapesNearPoint (
Handle(GEOM_Object) theShape,
113 Standard_Integer& theNbBlocks);
130 std::list<BCError>& theErrors);
133 const std::list<BCError>& theErrors);
135 Standard_EXPORT
Handle(GEOM_Object) GetNonBlocks (
Handle(GEOM_Object) theShape,
142 Standard_EXPORT
Handle(GEOM_Object) UnionFaces (
Handle(GEOM_Object) theShape);
144 Standard_EXPORT
Handle(GEOM_Object) CheckAndImprove (
Handle(GEOM_Object) theCompound);
146 Standard_EXPORT
static void AddBlocksFrom (
const TopoDS_Shape& theShape,
147 TopTools_ListOfShape& BLO,
148 TopTools_ListOfShape& NOT,
149 TopTools_ListOfShape& EXT,
150 TopTools_ListOfShape& NOQ,
154 Standard_EXPORT
Handle(TColStd_HSequenceOfTransient) ExplodeCompoundOfBlocks
155 (
Handle(GEOM_Object) theCompound,
159 Standard_EXPORT
Handle(GEOM_Object) GetBlockNearPoint (
Handle(GEOM_Object) theCompound,
162 Standard_EXPORT
Handle(GEOM_Object) GetBlockByParts
163 (
Handle(GEOM_Object) theCompound,
164 const Handle(TColStd_HSequenceOfTransient)& theParts);
166 Standard_EXPORT
Handle(TColStd_HSequenceOfTransient) GetBlocksByParts
167 (
Handle(GEOM_Object) theCompound,
168 const Handle(TColStd_HSequenceOfTransient)& theParts);
171 Standard_EXPORT
Handle(GEOM_Object) MakeMultiTransformation1D (
Handle(GEOM_Object) theBlock,
176 Standard_EXPORT
Handle(GEOM_Object) MakeMultiTransformation2D (
Handle(GEOM_Object) theBlock,
185 Standard_EXPORT
Handle(TColStd_HSequenceOfTransient) Propagate (
Handle(GEOM_Object) theShape);
static TopoDS_Shape RemoveExtraEdges(const TopoDS_Shape &theShape)
This function performs extra edges removal.
Definition: GEOMImpl_BooleanDriver.cxx:68
Definition: GEOMImpl_IBlocksOperations.hxx:37
Standard_EXPORT Handle(GEOM_Object) GetFaceByEdges(Handle(GEOM_Object) theShape
Standard_EXPORT const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer theDirFace2V
Definition: GEOMImpl_IBlocksOperations.hxx:181
Standard_EXPORT Handle(GEOM_Object) GetEdgeNearPoint(Handle(GEOM_Object) theBlock
Standard_EXPORT Handle(GEOM_Object) GetEdge(Handle(GEOM_Object) theShape
Standard_EXPORT Handle(GEOM_Object) thePoint1
Standard_EXPORT const Standard_Real theX
Definition: GEOMImpl_IBlocksOperations.hxx:70
Standard_EXPORT const Standard_Real const Standard_Real const Standard_Real const Standard_Real theEpsilon
Definition: GEOMImpl_IBlocksOperations.hxx:73
Standard_EXPORT Handle(GEOM_Object) theEdge4)
Standard_EXPORT Handle(GEOM_Object) MakeMultiTransformation1D(Handle(GEOM_Object) theBlock
Standard_EXPORT Handle(GEOM_Object) theFace2
Standard_EXPORT const Standard_Integer theMinNbFaces
Definition: GEOMImpl_IBlocksOperations.hxx:156
Standard_EXPORT Handle(GEOM_Object) thePoint2
BCErrorType
Definition: GEOMImpl_IBlocksOperations.hxx:115
@ NOT_CONNECTED
Definition: GEOMImpl_IBlocksOperations.hxx:119
@ NOT_GLUED
Definition: GEOMImpl_IBlocksOperations.hxx:120
@ EXTRA_EDGE
Definition: GEOMImpl_IBlocksOperations.hxx:117
@ INVALID_CONNECTION
Definition: GEOMImpl_IBlocksOperations.hxx:118
@ NOT_BLOCK
Definition: GEOMImpl_IBlocksOperations.hxx:116
Standard_EXPORT Handle(GEOM_Object) MakeQuad(Handle(GEOM_Object) theEdge1
Standard_EXPORT Handle(GEOM_Object) GetFaceByPoints(Handle(GEOM_Object) theShape
Standard_EXPORT Handle(GEOM_Object) theFace5
Standard_EXPORT const Standard_Integer const Standard_Integer const Standard_Integer theNbTimes
Definition: GEOMImpl_IBlocksOperations.hxx:174
Standard_EXPORT Handle(GEOM_Object) CheckAndImprove(Handle(GEOM_Object) theCompound)
Standard_EXPORT Handle(GEOM_Object) GetOppositeFace(Handle(GEOM_Object) theBlock
Standard_EXPORT Handle(GEOM_Object) MakeHexa(Handle(GEOM_Object) theFace1
Standard_EXPORT Handle(GEOM_Object) thePoint
Standard_EXPORT const Standard_Integer theDirFace1
Definition: GEOMImpl_IBlocksOperations.hxx:172
Standard_EXPORT const Standard_Real theToleranceC1
Definition: GEOMImpl_IBlocksOperations.hxx:136
Standard_EXPORT const Standard_Integer const Standard_Integer theDirFace2U
Definition: GEOMImpl_IBlocksOperations.hxx:178
Standard_EXPORT Handle(GEOM_Object) GetNonBlocks(Handle(GEOM_Object) theShape
Standard_EXPORT const Standard_Integer const Standard_Integer theMaxNbFaces
Definition: GEOMImpl_IBlocksOperations.hxx:157
Standard_EXPORT TCollection_AsciiString PrintBCErrors(Handle(GEOM_Object) theCompound, const std::list< BCError > &theErrors)
Definition: GEOMImpl_IBlocksOperations.cxx:2074
Standard_EXPORT Handle(GEOM_Object) MakeQuad2Edges(Handle(GEOM_Object) theEdge1
Standard_EXPORT Handle(GEOM_Object) thePoint3
Standard_EXPORT Handle(GEOM_Object) MakeMultiTransformation2D(Handle(GEOM_Object) theBlock
Standard_EXPORT Handle(GEOM_Object) thePoint4)
Standard_EXPORT Standard_Boolean IsCompoundOfBlocks(Handle(GEOM_Object) theCompound, const Standard_Integer theMinNbFaces, const Standard_Integer theMaxNbFaces, Standard_Integer &theNbBlocks)
Definition: GEOMImpl_IBlocksOperations.cxx:1713
Standard_EXPORT const Standard_Integer const Standard_Real theTolerance
Definition: GEOMImpl_IBlocksOperations.hxx:107
Standard_EXPORT const Standard_Integer theOptimumNbFaces
Definition: GEOMImpl_IBlocksOperations.hxx:140
Standard_EXPORT const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer theNbTimesV
Definition: GEOMImpl_IBlocksOperations.hxx:182
Standard_EXPORT Handle(GEOM_Object) GetBlockByParts(Handle(GEOM_Object) theCompound
Standard_EXPORT Handle(GEOM_Object) UnionFaces(Handle(GEOM_Object) theShape)
Standard_EXPORT Handle(GEOM_Object) thePoint)
Standard_EXPORT const Standard_Real const Standard_Real const Standard_Real theZ
Definition: GEOMImpl_IBlocksOperations.hxx:72
Standard_EXPORT const Standard_Integer const Standard_Integer const Standard_Integer theNbTimesU
Definition: GEOMImpl_IBlocksOperations.hxx:179
Standard_EXPORT Handle(GEOM_Object) MakeBlockCompound(Handle(GEOM_Object) theCompound)
static Standard_EXPORT void AddBlocksFrom(const TopoDS_Shape &theShape, TopTools_ListOfShape &BLO, TopTools_ListOfShape &NOT, TopTools_ListOfShape &EXT, TopTools_ListOfShape &NOQ, const Standard_Real theToleranceC1=-1.)
Definition: GEOMImpl_IBlocksOperations.cxx:1769
Standard_EXPORT Handle(GEOM_Object) GetBlockNearPoint(Handle(GEOM_Object) theCompound
Standard_EXPORT Handle(GEOM_Object) theFace4
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) ExplodeCompoundOfBlocks(Handle(GEOM_Object) theCompound
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) Propagate(Handle(GEOM_Object) theShape)
Standard_EXPORT Handle(GEOM_Object) theEdge2
Standard_EXPORT Handle(GEOM_Object) GetFaceNearPoint(Handle(GEOM_Object) theBlock
Standard_EXPORT Handle(GEOM_Object) GetShapesNearPoint(Handle(GEOM_Object) theShape
Standard_EXPORT const Standard_Integer theDirFace1U
Definition: GEOMImpl_IBlocksOperations.hxx:177
Standard_EXPORT Handle(GEOM_Object) theEdge3
Standard_EXPORT const Standard_Integer const Standard_Integer const Standard_Integer const Standard_Integer theDirFace1V
Definition: GEOMImpl_IBlocksOperations.hxx:180
Standard_EXPORT Handle(GEOM_Object) theVector)
Standard_EXPORT Handle(GEOM_Object) GetPoint(Handle(GEOM_Object) theShape
Standard_EXPORT const Standard_Integer const Standard_Integer theDirFace2
Definition: GEOMImpl_IBlocksOperations.hxx:173
Standard_EXPORT Handle(GEOM_Object) theFace2)
Standard_EXPORT const Handle(TColStd_HSequenceOfTransient) &theParts)
Standard_EXPORT GEOMImpl_IBlocksOperations(GEOM_Engine *theEngine)
Definition: GEOMImpl_IBlocksOperations.cxx:249
Standard_EXPORT Handle(GEOM_Object) RemoveExtraEdges(Handle(GEOM_Object) theShape
Standard_EXPORT Handle(GEOM_Object) thePoint2)
Standard_EXPORT Handle(GEOM_Object) theFace)
Standard_EXPORT Handle(GEOM_Object) theEdge2)
Standard_EXPORT Standard_Boolean CheckCompoundOfBlocks(Handle(GEOM_Object) theCompound, const Standard_Real theToleranceC1, std::list< BCError > &theErrors)
Definition: GEOMImpl_IBlocksOperations.cxx:2123
Standard_EXPORT Handle(GEOM_Object) theEdge1
Standard_EXPORT Handle(GEOM_Object) MakeHexa2Faces(Handle(GEOM_Object) theFace1
Standard_EXPORT Handle(GEOM_Object) theFace6)
Standard_EXPORT const Standard_Real const Standard_Real theY
Definition: GEOMImpl_IBlocksOperations.hxx:71
Standard_EXPORT const Standard_Real Handle(GEOM_Object) &theNonQuads)
Standard_EXPORT Handle(GEOM_Object) MakeQuad4Vertices(Handle(GEOM_Object) thePoint1
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetBlocksByParts(Handle(GEOM_Object) theCompound
Standard_EXPORT Handle(GEOM_Object) theFace3
Standard_EXPORT Handle(GEOM_Object) GetVertexNearPoint(Handle(GEOM_Object) theShape
Standard_EXPORT const Standard_Integer theShapeType
Definition: GEOMImpl_IBlocksOperations.hxx:106
Standard_EXPORT ~GEOMImpl_IBlocksOperations()
Definition: GEOMImpl_IBlocksOperations.cxx:260
Standard_EXPORT Handle(GEOM_Object) GetFaceByNormale(Handle(GEOM_Object) theBlock
Definition: GEOM_Engine.hxx:91
Definition: GEOM_IOperations.hxx:40
Standard_EXPORT TopoDS_Shape GetEdgeNearPoint(const TopoDS_Shape &theShape, const TopoDS_Vertex &thePoint)
Find an edge of theShape, closest to thePoint.
Definition: GEOMUtils.cxx:627
Definition: GEOMImpl_IBlocksOperations.hxx:123
std::list< int > incriminated
Definition: GEOMImpl_IBlocksOperations.hxx:125
BCErrorType error
Definition: GEOMImpl_IBlocksOperations.hxx:124