mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-13 06:37:18 +08:00
136 lines
3.3 KiB
Plaintext
Executable File
136 lines
3.3 KiB
Plaintext
Executable File
// Copyright (c) 1995-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.
|
|
|
|
#include <gp_Pnt.hxx>
|
|
#include <gp_Pnt2d.hxx>
|
|
#include <BRep_Tool.hxx>
|
|
#include <TopoDS.hxx>
|
|
#include <TopoDS_Vertex.hxx>
|
|
#include <TopoDS_Edge.hxx>
|
|
#include <TopoDS_Face.hxx>
|
|
|
|
inline void BRepMesh_ShapeTool::Init(const TopoDS_Shape& S)
|
|
{
|
|
theFIterator.Init(S, TopAbs_FACE);
|
|
}
|
|
|
|
inline Standard_Boolean BRepMesh_ShapeTool::MoreFace()
|
|
{
|
|
return theFIterator.More();
|
|
}
|
|
|
|
inline void BRepMesh_ShapeTool::NextFace()
|
|
{
|
|
theFIterator.Next();
|
|
}
|
|
|
|
inline const TopoDS_Face& BRepMesh_ShapeTool:: CurrentFace()
|
|
{
|
|
return TopoDS::Face(theFIterator.Current());
|
|
}
|
|
|
|
|
|
inline void BRepMesh_ShapeTool::Init(const TopoDS_Face& F)
|
|
{
|
|
theEIterator.Init(F,TopAbs_EDGE);
|
|
}
|
|
|
|
inline Standard_Boolean BRepMesh_ShapeTool::MoreEdge()
|
|
{
|
|
return theEIterator.More();
|
|
}
|
|
|
|
inline void BRepMesh_ShapeTool::NextEdge()
|
|
{
|
|
theEIterator.Next();
|
|
}
|
|
|
|
|
|
inline const TopoDS_Edge& BRepMesh_ShapeTool::CurrentEdge()
|
|
{
|
|
return TopoDS::Edge(theEIterator.Current());
|
|
}
|
|
|
|
inline void BRepMesh_ShapeTool::Init(const TopoDS_Edge& E)
|
|
{
|
|
theVIterator.Init(E,TopAbs_VERTEX);
|
|
}
|
|
|
|
|
|
inline void BRepMesh_ShapeTool::NextInternalVertex()
|
|
{
|
|
theVIterator.Next();
|
|
}
|
|
|
|
inline const TopoDS_Vertex& BRepMesh_ShapeTool::CurrentInternalVertex()
|
|
{
|
|
return TopoDS::Vertex(theVIterator.Current());
|
|
}
|
|
|
|
inline TopAbs_Orientation BRepMesh_ShapeTool::Orientation(
|
|
const TopoDS_Edge& E)
|
|
{
|
|
return E.Orientation();
|
|
}
|
|
|
|
inline TopAbs_Orientation BRepMesh_ShapeTool::Orientation(
|
|
const TopoDS_Face& F)
|
|
{
|
|
return F.Orientation();
|
|
}
|
|
|
|
inline void BRepMesh_ShapeTool::Range(const TopoDS_Edge& E,
|
|
const TopoDS_Face& F,
|
|
Standard_Real& wFirst,
|
|
Standard_Real& wLast)
|
|
{
|
|
BRep_Tool::Range(E, F, wFirst, wLast);
|
|
}
|
|
|
|
inline void BRepMesh_ShapeTool::UVPoints(const TopoDS_Edge& E,
|
|
const TopoDS_Face& F,
|
|
gp_Pnt2d& uvFirst,
|
|
gp_Pnt2d& uvLast)
|
|
{
|
|
BRep_Tool::UVPoints(E, F, uvFirst, uvLast);
|
|
}
|
|
|
|
inline Standard_Boolean BRepMesh_ShapeTool::Degenerated(const TopoDS_Edge& E)
|
|
{
|
|
return BRep_Tool::Degenerated(E);
|
|
}
|
|
|
|
inline Standard_Real BRepMesh_ShapeTool::Tolerance(const TopoDS_Vertex& V)
|
|
{
|
|
return BRep_Tool::Tolerance(V);
|
|
}
|
|
|
|
inline Standard_Real BRepMesh_ShapeTool::Parameter(const TopoDS_Vertex& V,
|
|
const TopoDS_Edge& E,
|
|
const TopoDS_Face& F)
|
|
{
|
|
return BRep_Tool::Parameter(V,E,F);
|
|
}
|
|
|
|
inline gp_Pnt BRepMesh_ShapeTool::Pnt(const TopoDS_Vertex& V)
|
|
{
|
|
return BRep_Tool::Pnt(V);
|
|
}
|
|
|
|
|