mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-31 11:15:31 +03:00
Fix compilation error on Linux Adding test command for this fix meshPolygon: simplify source polygon by splitting it onto parts without glued edges and loops Check surrounded triangles during final cleaning of mesh Correct polygon on frontier edges Modified test cases in group mesh according to new behavior
210 lines
7.0 KiB
Plaintext
Executable File
210 lines
7.0 KiB
Plaintext
Executable File
-- Created on: 1993-09-22
|
|
-- Created by: Didier PIFFAULT
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
|
|
package BRepMesh
|
|
|
|
---Purpose: Instantiated package for the class of packages
|
|
|
|
---Level : Advanced.
|
|
-- All methods of all classes will be advanced.
|
|
|
|
|
|
uses Standard,
|
|
gp,
|
|
Bnd,
|
|
TColStd,
|
|
TColgp,
|
|
GCPnts,
|
|
BRepAdaptor,
|
|
BRepTopAdaptor,
|
|
TCollection,
|
|
MMgt,
|
|
TopoDS,
|
|
TopAbs,
|
|
TopExp,
|
|
TopTools,
|
|
Poly,
|
|
Geom2d,
|
|
GeomAbs,
|
|
GeomAdaptor,
|
|
TopLoc,
|
|
SortTools,
|
|
Plugin
|
|
|
|
|
|
is enumeration DegreeOfFreedom is
|
|
Free,
|
|
InVolume,
|
|
OnSurface,
|
|
OnCurve,
|
|
Fixed,
|
|
Frontier,
|
|
Deleted;
|
|
|
|
imported Status from BRepMesh;
|
|
|
|
enumeration FactoryError is
|
|
FE_NOERROR,
|
|
FE_LIBRARYNOTFOUND,
|
|
FE_FUNCTIONNOTFOUND,
|
|
FE_CANNOTCREATEALGO
|
|
end FactoryError;
|
|
|
|
class Vertex;
|
|
|
|
class Edge;
|
|
|
|
imported Triangle from BRepMesh;
|
|
|
|
class ShapeTool;
|
|
|
|
class Circ;
|
|
|
|
deferred class DiscretRoot;
|
|
class DiscretFactory;
|
|
--
|
|
pointer PDiscretRoot to DiscretRoot from BRepMesh;
|
|
--
|
|
imported Delaun from BRepMesh;
|
|
imported MapOfIntegerInteger from BRepMesh;
|
|
imported MapOfInteger from BRepMesh;
|
|
imported ListOfInteger from BRepMesh;
|
|
imported BaseAllocator from BRepMesh;
|
|
imported PairOfIndex from BRepMesh;
|
|
imported CircleInspector from BRepMesh;
|
|
imported CellFilter from BRepMesh;
|
|
imported VertexInspector from BRepMesh;
|
|
imported VertexCellFilter from BRepMesh;
|
|
imported VectorOfVertex from BRepMesh;
|
|
|
|
primitive PluginEntryType;
|
|
|
|
class ComparatorOfVertexOfDelaun;
|
|
class ComparatorOfIndexedVertexOfDelaun;
|
|
class SelectorOfDataStructureOfDelaun;
|
|
class DataStructureOfDelaun;
|
|
class CircleTool;
|
|
class VertexTool;
|
|
|
|
class Array1OfVertexOfDelaun instantiates Array1 from TCollection
|
|
(Vertex from BRepMesh);
|
|
|
|
class HArray1OfVertexOfDelaun instantiates HArray1 from TCollection
|
|
(Vertex from BRepMesh, Array1OfVertexOfDelaun);
|
|
|
|
class HeapSortVertexOfDelaun instantiates HeapSort from SortTools
|
|
(Vertex from BRepMesh, Array1OfVertexOfDelaun,
|
|
ComparatorOfVertexOfDelaun from BRepMesh);
|
|
|
|
class HeapSortIndexedVertexOfDelaun instantiates HeapSort from SortTools
|
|
(Integer, Array1OfInteger from TColStd,
|
|
ComparatorOfIndexedVertexOfDelaun from BRepMesh);
|
|
|
|
class NodeHasherOfDataStructureOfDelaun instantiates MapHasher from TCollection
|
|
(Vertex from BRepMesh);
|
|
class LinkHasherOfDataStructureOfDelaun instantiates MapHasher from TCollection
|
|
(Edge from BRepMesh);
|
|
class ElemHasherOfDataStructureOfDelaun instantiates MapHasher from TCollection
|
|
(Triangle from BRepMesh);
|
|
|
|
class DataMapOfIntegerListOfInteger instantiates DataMap from TCollection
|
|
(Integer from Standard, ListOfInteger from BRepMesh, MapIntegerHasher from TColStd);
|
|
|
|
class IDMapOfNodeOfDataStructureOfDelaun instantiates IndexedDataMap from TCollection
|
|
(Vertex from BRepMesh,
|
|
ListOfInteger from BRepMesh,
|
|
NodeHasherOfDataStructureOfDelaun);
|
|
|
|
class IDMapOfLinkOfDataStructureOfDelaun instantiates IndexedDataMap from TCollection
|
|
(Edge from BRepMesh,
|
|
PairOfIndex from BRepMesh,
|
|
LinkHasherOfDataStructureOfDelaun);
|
|
|
|
class IMapOfElementOfDataStructureOfDelaun instantiates IndexedMap from TCollection
|
|
(Triangle from BRepMesh,
|
|
ElemHasherOfDataStructureOfDelaun);
|
|
|
|
class DataMapOfVertexInteger instantiates DataMap from TCollection
|
|
(Vertex from TopoDS, Integer from Standard, ShapeMapHasher from TopTools);
|
|
|
|
class ListOfVertex instantiates List from TCollection
|
|
(Vertex from BRepMesh);
|
|
|
|
class ListOfXY instantiates List from TCollection (XY from gp);
|
|
|
|
class DataMapOfIntegerListOfXY instantiates DataMap from TCollection
|
|
(Integer from Standard, ListOfXY from BRepMesh, MapIntegerHasher from TColStd);
|
|
|
|
|
|
class VertexHasher instantiates MapHasher from TCollection(Vertex from BRepMesh);
|
|
|
|
class IndexedMapOfVertex instantiates IndexedMap from TCollection
|
|
(Vertex from BRepMesh, VertexHasher from BRepMesh);
|
|
|
|
|
|
class DataMapOfShapeReal instantiates DataMap from TCollection
|
|
(Shape from TopoDS,
|
|
Real from Standard,
|
|
ShapeMapHasher from TopTools);
|
|
|
|
class BiPoint;
|
|
|
|
class Array1OfBiPoint instantiates Array1 from TCollection(BiPoint from BRepMesh);
|
|
|
|
private class FastDiscretFace;
|
|
|
|
class FastDiscret;
|
|
|
|
class FaceAttribute;
|
|
|
|
class DataMapOfFaceAttribute instantiates DataMap from TCollection
|
|
(Face from TopoDS,
|
|
FaceAttribute from BRepMesh,
|
|
ShapeMapHasher from TopTools);
|
|
|
|
private class Classifier;
|
|
imported ClassifierPtr; -- smart pointer on Classifier
|
|
|
|
class IncrementalMesh from BRepMesh;
|
|
---Purpose: meshes faces from a Shape only if necessary.
|
|
|
|
---- classes moved from MeshShape
|
|
class GeomTool;
|
|
|
|
class DataMapOfIntegerPnt instantiates
|
|
DataMap from TCollection (Integer from Standard,
|
|
Pnt from gp,
|
|
MapIntegerHasher from TColStd);
|
|
|
|
class PairOfPolygon;
|
|
|
|
class DataMapOfShapePairOfPolygon instantiates
|
|
DataMap from TCollection(Shape from TopoDS,
|
|
PairOfPolygon from BRepMesh,
|
|
ShapeMapHasher from TopTools);
|
|
|
|
Mesh(S: Shape from TopoDS; d: Real from Standard);
|
|
---Purpose: call to incremental mesh.
|
|
|
|
|
|
end BRepMesh;
|