mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-08 06:24:14 +08:00
Coding - Standardize comment separators, translate French comments (#1126)
Normalize method separator lines across the codebase to exactly 100 characters (// followed by 98 = signs) matching the project coding standard. Translate remaining French comments to English in ModelingData packages (TKBRep, TKG2d, TKG3d, TKGeomBase) and FoundationClasses. Add [[nodiscard]] attribute to Copy() methods on Geom_Geometry, Geom2d_Geometry, Geom_Transformation, and Geom2d_Transformation to prevent accidental discard of returned handles. Fix typo in AppDef_Variational::Dump() debug output: "Nombre of 3d par multipoint" -> "Number of 3d per multipoint". Update .github/copilot-instructions.md separator examples to match the corrected convention.
This commit is contained in:
@@ -50,11 +50,11 @@
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateCurves
|
||||
// purpose : Insert a 3d curve <C> with location <L>
|
||||
// in a list of curve representations <lcr>
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>& lcr,
|
||||
const occ::handle<Geom_Curve>& C,
|
||||
const TopLoc_Location& L)
|
||||
@@ -92,12 +92,12 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateCurves
|
||||
// purpose : Insert a pcurve <C> on surface <S> with location <L>
|
||||
// in a list of curve representations <lcr>
|
||||
// Remove the pcurve on <S> from <lcr> if <C> is null
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>& lcr,
|
||||
const occ::handle<Geom2d_Curve>& C,
|
||||
@@ -118,7 +118,7 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
{
|
||||
if (GC->IsCurve3D())
|
||||
{
|
||||
// if (!C.IsNull()) { //xpu031198, edge degeneree
|
||||
// if (!C.IsNull()) { //xpu031198, degenerate edge
|
||||
|
||||
// xpu151298 : parameters can be set for null curves
|
||||
// see lbo & flo, to determine whether range is defined
|
||||
@@ -164,12 +164,12 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateCurves
|
||||
// purpose : Insert a pcurve <C> on surface <S> with location <L>
|
||||
// in a list of curve representations <lcr>
|
||||
// Remove the pcurve on <S> from <lcr> if <C> is null
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>& lcr,
|
||||
const occ::handle<Geom2d_Curve>& C,
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
@@ -192,7 +192,7 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
{
|
||||
if (GC->IsCurve3D())
|
||||
{
|
||||
// if (!C.IsNull()) { //xpu031198, edge degeneree
|
||||
// if (!C.IsNull()) { //xpu031198, degenerate edge
|
||||
|
||||
// xpu151298 : parameters can be set for null curves
|
||||
// see lbo & flo, to determine whether range is defined
|
||||
@@ -239,12 +239,12 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateCurves
|
||||
// purpose : Insert two pcurves <C1,C2> on surface <S> with location <L>
|
||||
// in a list of curve representations <lcr>
|
||||
// Remove the pcurves on <S> from <lcr> if <C1> or <C2> is null
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>& lcr,
|
||||
const occ::handle<Geom2d_Curve>& C1,
|
||||
@@ -302,12 +302,12 @@ static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateCurves
|
||||
// purpose : Insert two pcurves <C1,C2> on surface <S> with location <L>
|
||||
// in a list of curve representations <lcr>
|
||||
// Remove the pcurves on <S> from <lcr> if <C1> or <C2> is null
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static void UpdateCurves(NCollection_List<occ::handle<BRep_CurveRepresentation>>& lcr,
|
||||
const occ::handle<Geom2d_Curve>& C1,
|
||||
const occ::handle<Geom2d_Curve>& C2,
|
||||
@@ -657,10 +657,10 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
|
||||
TE->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateEdge
|
||||
// purpose : for the second format (for XML Persistence)
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom2d_Curve>& C,
|
||||
@@ -705,10 +705,10 @@ void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
|
||||
TE->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateEdge
|
||||
// purpose : for the second format (for XML Persistence)
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateEdge(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom2d_Curve>& C1,
|
||||
@@ -1168,10 +1168,10 @@ void BRep_Builder::Transfert(const TopoDS_Edge& Ein, const TopoDS_Edge& Eout) co
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateVertex
|
||||
// purpose : update vertex with 3d point
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const gp_Pnt& P, const double Tol) const
|
||||
{
|
||||
@@ -1185,10 +1185,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const gp_Pnt& P, const d
|
||||
TV->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateVertex
|
||||
// purpose : update vertex with parameter on edge
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
|
||||
const double Par,
|
||||
@@ -1272,10 +1272,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
|
||||
TE->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateVertex
|
||||
// purpose : update vertex with parameter on edge on face
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
|
||||
const double Par,
|
||||
@@ -1358,10 +1358,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V,
|
||||
TE->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateVertex
|
||||
// purpose : update vertex with parameters on face
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve,
|
||||
const double U,
|
||||
@@ -1386,10 +1386,10 @@ void BRep_Builder::UpdateVertex(const TopoDS_Vertex& Ve,
|
||||
TV->Modified(true);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateVertex
|
||||
// purpose : update vertex with 3d point
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRep_Builder::UpdateVertex(const TopoDS_Vertex& V, const double Tol) const
|
||||
{
|
||||
|
||||
@@ -100,7 +100,7 @@ occ::handle<TopoDS_TShape> BRep_TEdge::EmptyCopy() const
|
||||
|
||||
while (itr.More())
|
||||
{
|
||||
// on ne recopie PAS les polygones
|
||||
// do NOT copy polygons
|
||||
if (itr.Value()->IsKind(STANDARD_TYPE(BRep_GCurve))
|
||||
|| itr.Value()->IsKind(STANDARD_TYPE(BRep_CurveOn2Surfaces)))
|
||||
{
|
||||
|
||||
@@ -67,11 +67,11 @@ static bool IsPlane(const occ::handle<Geom_Surface>& aS);
|
||||
|
||||
// modified by NIZNHY-PKV Fri Oct 17 14:13:33 2008t
|
||||
//
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Surface
|
||||
// purpose : Returns the geometric surface of the face. Returns
|
||||
// in <L> the location for the surface.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const occ::handle<Geom_Surface>& BRep_Tool::Surface(const TopoDS_Face& F, TopLoc_Location& L)
|
||||
{
|
||||
@@ -80,11 +80,11 @@ const occ::handle<Geom_Surface>& BRep_Tool::Surface(const TopoDS_Face& F, TopLoc
|
||||
return TF->Surface();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Surface
|
||||
// purpose : Returns the geometric surface of the face. It can
|
||||
// be a copy if there is a Location.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
occ::handle<Geom_Surface> BRep_Tool::Surface(const TopoDS_Face& F)
|
||||
{
|
||||
@@ -127,10 +127,10 @@ const NCollection_List<occ::handle<Poly_Triangulation>>& BRep_Tool::Triangulatio
|
||||
return aTFace->Triangulations();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Tolerance
|
||||
// purpose : Returns the tolerance of the face.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Tolerance(const TopoDS_Face& F)
|
||||
{
|
||||
@@ -143,10 +143,10 @@ double BRep_Tool::Tolerance(const TopoDS_Face& F)
|
||||
return pMin;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : NaturalRestriction
|
||||
// purpose : Returns the NaturalRestriction flag of the face.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::NaturalRestriction(const TopoDS_Face& F)
|
||||
{
|
||||
@@ -154,12 +154,12 @@ bool BRep_Tool::NaturalRestriction(const TopoDS_Face& F)
|
||||
return TF->NaturalRestriction();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Curve
|
||||
// purpose : Returns the 3D curve of the edge. May be a Null
|
||||
// handle. Returns in <L> the location for the curve.
|
||||
// In <First> and <Last> the parameter range.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const occ::handle<Geom_Curve> nullCurve;
|
||||
|
||||
@@ -189,12 +189,12 @@ const occ::handle<Geom_Curve>& BRep_Tool::Curve(const TopoDS_Edge& E,
|
||||
return nullCurve;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Curve
|
||||
// purpose : Returns the 3D curve of the edge. May be a Null handle.
|
||||
// In <First> and <Last> the parameter range.
|
||||
// It can be a copy if there is a Location.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
occ::handle<Geom_Curve> BRep_Tool::Curve(const TopoDS_Edge& E, double& First, double& Last)
|
||||
{
|
||||
@@ -212,10 +212,10 @@ occ::handle<Geom_Curve> BRep_Tool::Curve(const TopoDS_Edge& E, double& First, do
|
||||
return C;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : IsGeometric
|
||||
// purpose : Returns True if <F> has a surface.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
bool BRep_Tool::IsGeometric(const TopoDS_Face& F)
|
||||
{
|
||||
const BRep_TFace* TF = static_cast<const BRep_TFace*>(F.TShape().get());
|
||||
@@ -223,11 +223,11 @@ bool BRep_Tool::IsGeometric(const TopoDS_Face& F)
|
||||
return !S.IsNull();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : IsGeometric
|
||||
// purpose : Returns True if <E> is a 3d curve or a curve on
|
||||
// surface.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::IsGeometric(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -251,11 +251,11 @@ bool BRep_Tool::IsGeometric(const TopoDS_Edge& E)
|
||||
return false;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Polygon3D
|
||||
// purpose : Returns the 3D polygon of the edge. May be a Null
|
||||
// handle. Returns in <L> the location for the polygon.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const occ::handle<Poly_Polygon3D> nullPolygon3D;
|
||||
|
||||
@@ -280,13 +280,13 @@ const occ::handle<Poly_Polygon3D>& BRep_Tool::Polygon3D(const TopoDS_Edge& E, To
|
||||
return nullPolygon3D;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : CurveOnSurface
|
||||
// purpose : Returns the curve associated to the edge in the
|
||||
// parametric space of the face. Returns a NULL
|
||||
// handle if this curve does not exist. Returns in
|
||||
// <First> and <Last> the parameter range.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
occ::handle<Geom2d_Curve> BRep_Tool::CurveOnSurface(const TopoDS_Edge& E,
|
||||
const TopoDS_Face& F,
|
||||
@@ -304,13 +304,13 @@ occ::handle<Geom2d_Curve> BRep_Tool::CurveOnSurface(const TopoDS_Edge& E,
|
||||
return CurveOnSurface(aLocalEdge, S, l, First, Last, theIsStored);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : CurveOnSurface
|
||||
// purpose : Returns the curve associated to the edge in the
|
||||
// parametric space of the surface. Returns a NULL
|
||||
// handle if this curve does not exist. Returns in
|
||||
// <First> and <Last> the parameter range.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const occ::handle<Geom2d_Curve> nullPCurve;
|
||||
|
||||
@@ -354,10 +354,10 @@ occ::handle<Geom2d_Curve> BRep_Tool::CurveOnSurface(const TopoDS_Edge&
|
||||
return CurveOnPlane(E, S, L, First, Last);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : CurveOnPlane
|
||||
// purpose : For planar surface returns projection of the edge on the plane
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
occ::handle<Geom2d_Curve> BRep_Tool::CurveOnPlane(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L,
|
||||
@@ -503,12 +503,12 @@ void BRep_Tool::CurveOnSurface(const TopoDS_Edge& E,
|
||||
First = Last = 0.;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : PolygonOnSurface
|
||||
// purpose : Returns the polygon associated to the edge in the
|
||||
// parametric space of the face. Returns a NULL
|
||||
// handle if this polygon does not exist.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
occ::handle<Poly_Polygon2D> BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
{
|
||||
@@ -526,12 +526,12 @@ occ::handle<Poly_Polygon2D> BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E, co
|
||||
return PolygonOnSurface(aLocalEdge, S, l);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : PolygonOnSurface
|
||||
// purpose : Returns the polygon associated to the edge in the
|
||||
// parametric space of the surface. Returns a NULL
|
||||
// handle if this polygon does not exist.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const occ::handle<Poly_Polygon2D> nullPolygon2D;
|
||||
|
||||
@@ -631,12 +631,12 @@ void BRep_Tool::PolygonOnSurface(const TopoDS_Edge& E,
|
||||
S.Nullify();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : PolygonOnTriangulation
|
||||
// purpose : Returns the polygon associated to the edge in the
|
||||
// parametric space of the face. Returns a NULL
|
||||
// handle if this polygon does not exist.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static const occ::handle<Poly_PolygonOnTriangulation> nullArray;
|
||||
|
||||
@@ -739,12 +739,12 @@ void BRep_Tool::PolygonOnTriangulation(const TopoDS_Edge&
|
||||
T.Nullify();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : IsClosed
|
||||
// purpose : Returns True if <E> has two PCurves in the
|
||||
// parametric space of <F>. i.e. <F> is on a closed
|
||||
// surface and <E> is on the closing curve.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
{
|
||||
@@ -756,12 +756,12 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
return IsClosed(E, T, l);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : IsClosed
|
||||
// purpose : Returns True if <E> has two PCurves in the
|
||||
// parametric space of <S>. i.e. <S> is a closed
|
||||
// surface and <E> is on the closing curve.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::IsClosed(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
@@ -790,11 +790,11 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E,
|
||||
return false;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : IsClosed
|
||||
// purpose : Returns True if <E> has two arrays of indices in
|
||||
// the triangulation <T>.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::IsClosed(const TopoDS_Edge& E,
|
||||
const occ::handle<Poly_Triangulation>& T,
|
||||
@@ -821,10 +821,10 @@ bool BRep_Tool::IsClosed(const TopoDS_Edge& E,
|
||||
return false;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Tolerance
|
||||
// purpose : Returns the tolerance for <E>.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Tolerance(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -837,10 +837,10 @@ double BRep_Tool::Tolerance(const TopoDS_Edge& E)
|
||||
return pMin;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : SameParameter
|
||||
// purpose : Returns the SameParameter flag for the edge.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::SameParameter(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -848,10 +848,10 @@ bool BRep_Tool::SameParameter(const TopoDS_Edge& E)
|
||||
return TE->SameParameter();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : SameRange
|
||||
// purpose : Returns the SameRange flag for the edge.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::SameRange(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -859,10 +859,10 @@ bool BRep_Tool::SameRange(const TopoDS_Edge& E)
|
||||
return TE->SameRange();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Degenerated
|
||||
// purpose : Returns True if the edge is degenerated.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::Degenerated(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -989,7 +989,7 @@ void BRep_Tool::UVPoints(const TopoDS_Edge& E,
|
||||
GP = occ::down_cast<Geom_Plane>(GRTS->BasisSurface());
|
||||
else
|
||||
GP = occ::down_cast<Geom_Plane>(S);
|
||||
// fin modif du 21-05-97
|
||||
// end of modification from 21-05-97
|
||||
if (!GP.IsNull())
|
||||
{
|
||||
// get the two vertices
|
||||
@@ -1101,11 +1101,11 @@ void BRep_Tool::SetUVPoints(const TopoDS_Edge& E,
|
||||
SetUVPoints(aLocalEdge, S, L, PFirst, PLast);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : HasContinuity
|
||||
// purpose : Returns True if the edge is on the surfaces of the
|
||||
// two faces.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2)
|
||||
{
|
||||
@@ -1115,10 +1115,10 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E, const TopoDS_Face& F1, const
|
||||
return HasContinuity(E, S1, S2, l1, l2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Continuity
|
||||
// purpose : Returns the continuity.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E,
|
||||
const TopoDS_Face& F1,
|
||||
@@ -1130,10 +1130,10 @@ GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E,
|
||||
return Continuity(E, S1, S2, l1, l2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : HasContinuity
|
||||
// purpose : Returns True if the edge is on the surfaces.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::HasContinuity(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom_Surface>& S1,
|
||||
@@ -1159,10 +1159,10 @@ bool BRep_Tool::HasContinuity(const TopoDS_Edge& E,
|
||||
return false;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Continuity
|
||||
// purpose : Returns the continuity.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E,
|
||||
const occ::handle<Geom_Surface>& S1,
|
||||
@@ -1187,10 +1187,10 @@ GeomAbs_Shape BRep_Tool::Continuity(const TopoDS_Edge& E,
|
||||
return GeomAbs_C0;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : HasContinuity
|
||||
// purpose : Returns True if the edge is on some two surfaces.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::HasContinuity(const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -1249,10 +1249,10 @@ gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V)
|
||||
return P.Transformed(V.Location().Transformation());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Tolerance
|
||||
// purpose : Returns the tolerance.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Tolerance(const TopoDS_Vertex& V)
|
||||
{
|
||||
@@ -1271,10 +1271,10 @@ double BRep_Tool::Tolerance(const TopoDS_Vertex& V)
|
||||
return pMin;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Parameter
|
||||
// purpose : Returns the parameter of <V> on <E>.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
bool BRep_Tool::Parameter(const TopoDS_Vertex& theV, const TopoDS_Edge& theE, double& theParam)
|
||||
{
|
||||
@@ -1424,10 +1424,10 @@ bool BRep_Tool::Parameter(const TopoDS_Vertex& theV, const TopoDS_Edge& theE, do
|
||||
return false;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Parameter
|
||||
// purpose : Returns the parameter of <V> on <E>.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E)
|
||||
{
|
||||
@@ -1437,11 +1437,11 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E)
|
||||
throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Parameter
|
||||
// purpose : Returns the parameters of the vertex on the
|
||||
// pcurve of the edge on the face.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
{
|
||||
@@ -1450,11 +1450,11 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V, const TopoDS_Edge& E, const
|
||||
return BRep_Tool::Parameter(V, E, S, L);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Parameter
|
||||
// purpose : Returns the parameters of the vertex on the
|
||||
// pcurve of the edge on the surface.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
double BRep_Tool::Parameter(const TopoDS_Vertex& V,
|
||||
const TopoDS_Edge& E,
|
||||
@@ -1564,10 +1564,10 @@ double BRep_Tool::Parameter(const TopoDS_Vertex& V,
|
||||
throw Standard_NoSuchObject("BRep_Tool:: no parameter on edge");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Parameters
|
||||
// purpose : Returns the parameters of the vertex on the face.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
gp_Pnt2d BRep_Tool::Parameters(const TopoDS_Vertex& V, const TopoDS_Face& F)
|
||||
{
|
||||
|
||||
@@ -449,14 +449,14 @@ occ::handle<Geom_BSplineCurve> BRepAdaptor_CompCurve::BSpline() const
|
||||
return myCurves->Value(1).BSpline();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : Prepare
|
||||
// purpose :
|
||||
// When the parameter is close to "node" the rule is determined
|
||||
// depending on the sign of tol:
|
||||
// - negative -> Rule preceding to the node.
|
||||
// - positive -> Rule following after the node.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepAdaptor_CompCurve::Prepare(double& W, double& Delta, int& theCurIndex) const
|
||||
{
|
||||
|
||||
@@ -274,7 +274,7 @@ occ::handle<Adaptor3d_Curve> BRepAdaptor_Curve::Trim(const double First,
|
||||
const double Last,
|
||||
const double Tol) const
|
||||
{
|
||||
// On fait une copie de this pour garder la trsf.
|
||||
// Make a copy of this to keep the transformation.
|
||||
occ::handle<BRepAdaptor_Curve> res;
|
||||
if (myConSurf.IsNull())
|
||||
{
|
||||
|
||||
@@ -20,28 +20,28 @@
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Curve::BRepProp_Curve(const TopoDS_Edge& theEdge)
|
||||
{
|
||||
initialization(theEdge);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Curve::BRepProp_Curve(const BRepAdaptor_Curve& theCurve)
|
||||
{
|
||||
initialization(theCurve);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Curve::BRepProp_Curve(const occ::handle<BRepAdaptor_Curve>& theCurve)
|
||||
{
|
||||
initialization(theCurve);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Curve::initialization(const TopoDS_Edge& theEdge)
|
||||
{
|
||||
@@ -55,7 +55,7 @@ void BRepProp_Curve::initialization(const TopoDS_Edge& theEdge)
|
||||
myPtr = myOwned.get();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Curve::initialization(const BRepAdaptor_Curve& theCurve)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ void BRepProp_Curve::initialization(const BRepAdaptor_Curve& theCurve)
|
||||
myPtr = &theCurve;
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Curve::initialization(const occ::handle<BRepAdaptor_Curve>& theCurve)
|
||||
{
|
||||
@@ -71,7 +71,7 @@ void BRepProp_Curve::initialization(const occ::handle<BRepAdaptor_Curve>& theCur
|
||||
myPtr = myOwned.get();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::TangentResult BRepProp_Curve::Tangent(const double theParam, const double theTol) const
|
||||
{
|
||||
@@ -102,7 +102,7 @@ GeomProp::TangentResult BRepProp_Curve::Tangent(const double theParam, const dou
|
||||
return GeomProp::ComputeTangent(aD1, aD2, aD3, theTol, aP1, aP2);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::CurvatureResult BRepProp_Curve::Curvature(const double theParam,
|
||||
const double theTol) const
|
||||
@@ -113,7 +113,7 @@ GeomProp::CurvatureResult BRepProp_Curve::Curvature(const double theParam,
|
||||
return GeomProp::ComputeCurvature(aD1, aD2, theTol);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::NormalResult BRepProp_Curve::Normal(const double theParam, const double theTol) const
|
||||
{
|
||||
@@ -123,7 +123,7 @@ GeomProp::NormalResult BRepProp_Curve::Normal(const double theParam, const doubl
|
||||
return GeomProp::ComputeNormal(aD1, aD2, theTol);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::CentreResult BRepProp_Curve::CentreOfCurvature(const double theParam,
|
||||
const double theTol) const
|
||||
@@ -134,7 +134,7 @@ GeomProp::CentreResult BRepProp_Curve::CentreOfCurvature(const double theParam,
|
||||
return GeomProp::ComputeCentreOfCurvature(aPnt, aD1, aD2, theTol);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1,
|
||||
const BRepAdaptor_Curve& theCurve2,
|
||||
@@ -242,7 +242,7 @@ GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1,
|
||||
return aCont;
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomAbs_Shape BRepProp_Curve::Continuity(const BRepAdaptor_Curve& theCurve1,
|
||||
const BRepAdaptor_Curve& theCurve2,
|
||||
|
||||
@@ -15,28 +15,28 @@
|
||||
|
||||
#include <TopoDS_Face.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Surface::BRepProp_Surface(const TopoDS_Face& theFace)
|
||||
{
|
||||
initialization(theFace);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Surface::BRepProp_Surface(const BRepAdaptor_Surface& theSurface)
|
||||
{
|
||||
initialization(theSurface);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
BRepProp_Surface::BRepProp_Surface(const occ::handle<BRepAdaptor_Surface>& theSurface)
|
||||
{
|
||||
initialization(theSurface);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Surface::initialization(const TopoDS_Face& theFace)
|
||||
{
|
||||
@@ -50,7 +50,7 @@ void BRepProp_Surface::initialization(const TopoDS_Face& theFace)
|
||||
myPtr = myOwned.get();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Surface::initialization(const BRepAdaptor_Surface& theSurface)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ void BRepProp_Surface::initialization(const BRepAdaptor_Surface& theSurface)
|
||||
myPtr = &theSurface;
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepProp_Surface::initialization(const occ::handle<BRepAdaptor_Surface>& theSurface)
|
||||
{
|
||||
@@ -66,7 +66,7 @@ void BRepProp_Surface::initialization(const occ::handle<BRepAdaptor_Surface>& th
|
||||
myPtr = myOwned.get();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::SurfaceNormalResult BRepProp_Surface::Normal(const double theU,
|
||||
const double theV,
|
||||
@@ -82,7 +82,7 @@ GeomProp::SurfaceNormalResult BRepProp_Surface::Normal(const double theU,
|
||||
return GeomProp::ComputeSurfaceNormal(aD1U, aD1V, theTol);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::SurfaceCurvatureResult BRepProp_Surface::Curvatures(const double theU,
|
||||
const double theV,
|
||||
@@ -98,7 +98,7 @@ GeomProp::SurfaceCurvatureResult BRepProp_Surface::Curvatures(const double theU,
|
||||
return GeomProp::ComputeSurfaceCurvatures(aD1U, aD1V, aD2U, aD2V, aD2UV, theTol);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
GeomProp::MeanGaussianResult BRepProp_Surface::MeanGaussian(const double theU,
|
||||
const double theV,
|
||||
|
||||
@@ -481,10 +481,10 @@ void BRepTools::Update(const TopoDS_Shape& S)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : UpdateFaceUVPoints
|
||||
// purpose : Reset the UV points of edges on the Face
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
void BRepTools::UpdateFaceUVPoints(const TopoDS_Face& theF)
|
||||
{
|
||||
// For each edge of the face <F> reset the UV points to the bounding
|
||||
@@ -1330,11 +1330,11 @@ TopAbs_Orientation BRepTools::OriEdgeInFace(const TopoDS_Edge& E, const TopoDS_F
|
||||
|
||||
namespace
|
||||
{
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : findInternalsToKeep
|
||||
// purpose : Looks for internal sub-shapes which has to be kept to preserve
|
||||
// topological connectivity.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static void findInternalsToKeep(
|
||||
const TopoDS_Shape& theS,
|
||||
NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>& theAllNonInternals,
|
||||
@@ -1356,10 +1356,10 @@ static void findInternalsToKeep(
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : removeShapes
|
||||
// purpose : Removes sub-shapes from the shape
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static void removeShapes(TopoDS_Shape& theS, const NCollection_List<TopoDS_Shape>& theLS)
|
||||
{
|
||||
BRep_Builder aBB;
|
||||
@@ -1373,11 +1373,11 @@ static void removeShapes(TopoDS_Shape& theS, const NCollection_List<TopoDS_Shape
|
||||
theS.Free(isFree);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : removeInternals
|
||||
// purpose : Removes recursively all internal sub-shapes from the given shape.
|
||||
// Returns true if all sub-shapes have been removed from the shape.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static bool removeInternals(
|
||||
TopoDS_Shape& theS,
|
||||
const NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>* theShapesToKeep)
|
||||
|
||||
@@ -43,7 +43,7 @@ IMPLEMENT_STANDARD_RTTIEXT(BRepTools_GTrsfModification, BRepTools_Modification)
|
||||
BRepTools_GTrsfModification::BRepTools_GTrsfModification(const gp_GTrsf& T)
|
||||
: myGTrsf(T)
|
||||
{
|
||||
// on prend comme dilatation maximale pour la tolerance la norme sup
|
||||
// use the sup norm as the maximum dilation for the tolerance
|
||||
double loc1, loc2, loc3, loc4;
|
||||
|
||||
loc1 = std::max(std::abs(T.Value(1, 1)), std::abs(T.Value(1, 2)));
|
||||
|
||||
@@ -25,10 +25,10 @@ IMPLEMENT_STANDARD_RTTIEXT(BRepTools_History, Standard_Transient)
|
||||
namespace
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
// function : add
|
||||
// purpose : Adds the elements of the list to the map.
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
void add(NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>& theMap,
|
||||
const NCollection_List<TopoDS_Shape>& theList)
|
||||
{
|
||||
@@ -38,10 +38,10 @@ void add(NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>& theMap,
|
||||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
// function : add
|
||||
// purpose : Adds the elements of the collection to the list.
|
||||
//==============================================================================
|
||||
//=================================================================================================
|
||||
template <typename TCollection>
|
||||
void add(NCollection_List<TopoDS_Shape>& theList, const TCollection& theCollection)
|
||||
{
|
||||
|
||||
@@ -241,8 +241,8 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S,
|
||||
TopAbs_Orientation ResOr = TopAbs_FORWARD;
|
||||
BRep_Builder B;
|
||||
double tol;
|
||||
bool No3DCurve = false; // en fait, si on n`a pas de
|
||||
// modif geometry 3d , it is necessary to test the existence of a curve 3d.
|
||||
bool No3DCurve = false; // in fact, if we have no
|
||||
// 3D geometry modification, it is necessary to test the existence of a 3D curve.
|
||||
|
||||
// new geometry ?
|
||||
|
||||
@@ -502,7 +502,7 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S,
|
||||
TopAbs_Orientation vtxrelat = vertex.Orientation();
|
||||
if (edge.Orientation() == TopAbs_REVERSED)
|
||||
{
|
||||
// Update considere l'edge FORWARD, et le vertex en relatif
|
||||
// Update considers the edge as FORWARD, and the vertex relatively
|
||||
vtxrelat = TopAbs::Reverse(vtxrelat);
|
||||
}
|
||||
// if (myMap(edge).Orientation() == TopAbs_REVERSED) {
|
||||
@@ -577,7 +577,7 @@ bool BRepTools_Modifier::Rebuild(const TopoDS_Shape& S,
|
||||
TopAbs_Orientation vtxrelat = vertex.Orientation();
|
||||
if (edor == TopAbs_REVERSED)
|
||||
{
|
||||
// Update considere l'edge FORWARD, et le vertex en relatif
|
||||
// Update considers the edge as FORWARD, and the vertex relatively
|
||||
vtxrelat = TopAbs::Reverse(vtxrelat);
|
||||
}
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ bool BRepTools_NurbsConvertModification::NewSurface(const TopoDS_Face& F
|
||||
BS->Resolution(Tol, UTol, VTol);
|
||||
|
||||
//
|
||||
// on recadre les bornes de S sinon les anciennes PCurves sont aux fraises
|
||||
// Readjust the bounds of S, otherwise the old PCurves become invalid
|
||||
//
|
||||
|
||||
if (std::abs(curvU1 - surfU1) > UTol && !BS->IsUPeriodic())
|
||||
@@ -430,7 +430,7 @@ bool BRepTools_NurbsConvertModification::NewCurve(const TopoDS_Edge& E,
|
||||
else
|
||||
C = new Geom_TrimmedCurve(C, f, l);
|
||||
|
||||
// modif WOK++ portage hp (fbi du 14/03/97)
|
||||
// modification for WOK++ HP porting (fbi 14/03/97)
|
||||
// gp_Trsf trsf(L);
|
||||
// gp_Trsf trsf = L.Transformation();
|
||||
|
||||
@@ -639,7 +639,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E
|
||||
}
|
||||
else
|
||||
{
|
||||
S = BRep_Tool::Surface(F); // Si S est un plan, pas de changement de parametrisation
|
||||
S = BRep_Tool::Surface(F); // If S is a plane, no change of parametrization
|
||||
GeomAdaptor_Surface GAS(S);
|
||||
occ::handle<GeomAdaptor_Surface> GAHS = new GeomAdaptor_Surface(GAS);
|
||||
ProjLib_ComputeApprox ProjOnCurve(G3dAHC, GAHS, Tol);
|
||||
@@ -732,12 +732,12 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E
|
||||
{
|
||||
if (itled.Value().IsSame(E))
|
||||
{
|
||||
// deja traitee
|
||||
// already processed
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!itled.More())
|
||||
{ // on stocke l`edge et la curve2d
|
||||
{ // store the edge and the 2D curve
|
||||
occ::handle<Geom2d_Curve> C2dBis;
|
||||
double f2dBis, l2dBis;
|
||||
C2d = new Geom2d_TrimmedCurve(C2d, f2d, l2d);
|
||||
@@ -806,7 +806,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E
|
||||
}
|
||||
else
|
||||
{
|
||||
S = BRep_Tool::Surface(newF); // S est une BSplineSurface : pas besoin de la trimmed
|
||||
S = BRep_Tool::Surface(newF); // S is a BSplineSurface: no need for the trimmed one
|
||||
}
|
||||
double Uinf, Usup, Vinf, Vsup, u = 0, v = 0;
|
||||
S->Bounds(Uinf, Usup, Vinf, Vsup);
|
||||
@@ -869,7 +869,7 @@ bool BRepTools_NurbsConvertModification::NewCurve2d(const TopoDS_Edge& E
|
||||
}
|
||||
}
|
||||
else
|
||||
{ // on est au 2ieme tour
|
||||
{ // we are on the second pass
|
||||
C2d = occ::down_cast<Geom2d_Curve>(itlcu.Value());
|
||||
occ::handle<Standard_Type> st = C2d->DynamicType();
|
||||
if (!(st == STANDARD_TYPE(Geom2d_BSplineCurve)) && !(st == STANDARD_TYPE(Geom2d_BezierCurve)))
|
||||
|
||||
@@ -228,7 +228,7 @@ void BRepTools_Quilt::Add(const TopoDS_Shape& S)
|
||||
TopoDS_Iterator ite(W, false);
|
||||
double UFirst, ULast;
|
||||
|
||||
// Reconstruction des wires.
|
||||
// Reconstruction of wires.
|
||||
|
||||
for (; ite.More(); ite.Next())
|
||||
{
|
||||
@@ -247,11 +247,11 @@ void BRepTools_Quilt::Add(const TopoDS_Shape& S)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Si NE est REVERSED
|
||||
// => les curve3d n ont pas la meme orientation.
|
||||
// ( C est une convention cf BRepTools_Quilt.cdl. et la methode
|
||||
// Bind.)
|
||||
// => la PCurve de E sur F doit etre inversee.
|
||||
// If NE is REVERSED
|
||||
// => the 3D curves do not have the same orientation.
|
||||
// (This is a convention, cf. BRepTools_Quilt.cdl and the Bind
|
||||
// method.)
|
||||
// => the PCurve of E on F must be reversed.
|
||||
|
||||
OE = TopAbs::Reverse(OE);
|
||||
occ::handle<Geom2d_Curve> CE = BRep_Tool::CurveOnSurface(E, F, UFirst, ULast);
|
||||
|
||||
@@ -387,7 +387,7 @@ bool BRepTools_TrsfModification::NewCurve2d(const TopoDS_Edge& E,
|
||||
newl = NewC->LastParameter();
|
||||
}
|
||||
}
|
||||
// il faut parfois recadrer les ranges 3d / 2d
|
||||
// sometimes need to readjust the 3D / 2D ranges
|
||||
TopoDS_Vertex V1, V2;
|
||||
TopExp::Vertices(E, V1, V2);
|
||||
TopoDS_Shape initEFOR = E.Oriented(TopAbs_FORWARD); // skl
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
#include <TopTools_ShapeMapHasher.hxx>
|
||||
#include <NCollection_Map.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// forward declarations of aux functions
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static bool SelectDouble(NCollection_Map<TopoDS_Shape, TopTools_ShapeMapHasher>& Doubles,
|
||||
NCollection_List<TopoDS_Shape>& L,
|
||||
TopoDS_Edge& E);
|
||||
|
||||
@@ -83,10 +83,10 @@ int BinTools_Curve2dSet::Index(const occ::handle<Geom2d_Curve>& S) const
|
||||
return myMap.FindIndex(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << ((Geom2d_Line)& L)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_Line>& L)
|
||||
{
|
||||
@@ -98,10 +98,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << ((Geom2d_Circle)& C)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_Circle>& C)
|
||||
{
|
||||
@@ -114,10 +114,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_Ellipse)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_Ellipse>& E)
|
||||
{
|
||||
@@ -131,10 +131,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << (Geom2d_Parabola)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_Parabola>& P)
|
||||
{
|
||||
@@ -147,10 +147,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_Hyperbola)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_Hyperbola>& H)
|
||||
{
|
||||
@@ -164,10 +164,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_BezierCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_BezierCurve>& B)
|
||||
{
|
||||
@@ -186,10 +186,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_BSplineCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_BSplineCurve>& B)
|
||||
{
|
||||
@@ -222,10 +222,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_TrimmedCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_TrimmedCurve>& C)
|
||||
{
|
||||
@@ -236,10 +236,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom2d_OffsetCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom2d_OffsetCurve>& C)
|
||||
{
|
||||
|
||||
@@ -85,10 +85,10 @@ int BinTools_CurveSet::Index(const occ::handle<Geom_Curve>& S) const
|
||||
return S.IsNull() ? 0 : myMap.FindIndex(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << (Geom_Line)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Line>& L)
|
||||
{
|
||||
@@ -99,10 +99,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_Circle)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Circle>& CC)
|
||||
{
|
||||
@@ -116,10 +116,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_Ellipse)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Ellipse>& E)
|
||||
{
|
||||
@@ -134,10 +134,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_Parabola)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Parabola>& P)
|
||||
{
|
||||
@@ -151,10 +151,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_Hyperbola)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Hyperbola>& H)
|
||||
{
|
||||
@@ -169,10 +169,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_BezierCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_BezierCurve>& B)
|
||||
{
|
||||
@@ -191,10 +191,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_BSplineCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_BSplineCurve>& B)
|
||||
{
|
||||
@@ -226,10 +226,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_TrimmedCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_TrimmedCurve>& C)
|
||||
{
|
||||
@@ -240,10 +240,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_OffsetCurve)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_OffsetCurve>& C)
|
||||
{
|
||||
|
||||
@@ -127,10 +127,10 @@ BinTools_IStream::operator bool() const
|
||||
return static_cast<bool>(*myStream);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(double& theValue)
|
||||
{
|
||||
if (!myStream->read((char*)&theValue, sizeof(double)))
|
||||
@@ -142,10 +142,10 @@ BinTools_IStream& BinTools_IStream::operator>>(double& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(int& theValue)
|
||||
{
|
||||
if (!myStream->read((char*)&theValue, sizeof(int)))
|
||||
@@ -157,10 +157,10 @@ BinTools_IStream& BinTools_IStream::operator>>(int& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue)
|
||||
{
|
||||
double aValue;
|
||||
@@ -177,10 +177,10 @@ BinTools_IStream& BinTools_IStream::operator>>(gp_Pnt& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue)
|
||||
{
|
||||
myStream->read((char*)&theValue, sizeof(uint8_t));
|
||||
@@ -188,10 +188,10 @@ BinTools_IStream& BinTools_IStream::operator>>(uint8_t& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(float& theValue)
|
||||
{
|
||||
myStream->read((char*)&theValue, sizeof(float));
|
||||
@@ -199,10 +199,10 @@ BinTools_IStream& BinTools_IStream::operator>>(float& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_IStream& BinTools_IStream::operator>>(gp_Trsf& theValue)
|
||||
{
|
||||
double aV1[3], aV2[3], aV3[3], aV[3];
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator >> (gp_Trsf& T)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, gp_Trsf& T)
|
||||
{
|
||||
double V1[3], V2[3], V3[3];
|
||||
@@ -47,10 +47,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Trsf& T)
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << (gp_Trsf& T)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
Standard_OStream& operator<<(Standard_OStream& OS, const gp_Trsf& T)
|
||||
{
|
||||
gp_XYZ V = T.TranslationPart();
|
||||
|
||||
@@ -81,10 +81,10 @@ void BinTools_OStream::WriteShape(const TopAbs_ShapeEnum& theType,
|
||||
myPosition += sizeof(uint8_t);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theType)
|
||||
{
|
||||
myStream->put((uint8_t)theType);
|
||||
@@ -92,10 +92,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const BinTools_ObjectType& theTyp
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue)
|
||||
{
|
||||
myStream->put(theValue);
|
||||
@@ -103,10 +103,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const uint8_t& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const double& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -119,10 +119,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const double& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue)
|
||||
{
|
||||
myStream->put((uint8_t)(theValue ? 1 : 0));
|
||||
@@ -130,10 +130,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const bool& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const int& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -146,10 +146,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const int& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -162,10 +162,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const char16_t& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -182,10 +182,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -202,10 +202,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -220,10 +220,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Pnt2d& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
@@ -238,10 +238,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Dir2d& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue)
|
||||
{
|
||||
gp_XYZ aTr = theValue.TranslationPart();
|
||||
@@ -278,10 +278,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const gp_Trsf& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue)
|
||||
{
|
||||
theValue.Value(1);
|
||||
@@ -299,10 +299,10 @@ BinTools_OStream& BinTools_OStream::operator<<(const Poly_Triangle& theValue)
|
||||
return *this;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
BinTools_OStream& BinTools_OStream::operator<<(const NCollection_Vec3<float>& theValue)
|
||||
{
|
||||
#if DO_INVERSE
|
||||
|
||||
@@ -22,10 +22,10 @@ const char* const BinTools_ShapeSetBase::THE_ASCII_VERSIONS[BinTools_FormatVersi
|
||||
"Open CASCADE Topology V3 (c)",
|
||||
"Open CASCADE Topology V4, (c) Open Cascade"};
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator << (gp_Pnt)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
Standard_OStream& operator<<(Standard_OStream& OS, const gp_Pnt& P)
|
||||
{
|
||||
BinTools::PutReal(OS, P.X());
|
||||
|
||||
@@ -84,10 +84,10 @@ int BinTools_SurfaceSet::Index(const occ::handle<Geom_Surface>& S) const
|
||||
return myMap.FindIndex(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_Plane)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_Plane>& S)
|
||||
{
|
||||
@@ -100,10 +100,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_CylindricalSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_CylindricalSurface>& S)
|
||||
@@ -118,10 +118,10 @@ static BinTools_OStream& operator<<(BinTools_OStream&
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_ConicalSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_ConicalSurface>& S)
|
||||
{
|
||||
@@ -136,10 +136,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_SphericalSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_SphericalSurface>& S)
|
||||
@@ -154,10 +154,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_ToroidalSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_ToroidalSurface>& S)
|
||||
@@ -173,10 +173,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_SurfaceOfLinearExtrusion)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_SurfaceOfLinearExtrusion>& S)
|
||||
@@ -187,10 +187,10 @@ static BinTools_OStream& operator<<(BinTools_OStream&
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_SurfaceOfRevolution)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_SurfaceOfRevolution>& S)
|
||||
@@ -202,10 +202,10 @@ static BinTools_OStream& operator<<(BinTools_OStream&
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_BezierSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_BezierSurface>& S)
|
||||
{
|
||||
@@ -235,10 +235,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_BSplineSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_BSplineSurface>& S)
|
||||
{
|
||||
@@ -290,10 +290,10 @@ static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_RectangularTrimmedSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS,
|
||||
const occ::handle<Geom_RectangularTrimmedSurface>& S)
|
||||
@@ -306,10 +306,10 @@ static BinTools_OStream& operator<<(BinTools_OStream&
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator <<(Geom_OffsetSurface)
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static BinTools_OStream& operator<<(BinTools_OStream& OS, const occ::handle<Geom_OffsetSurface>& S)
|
||||
{
|
||||
@@ -438,10 +438,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, gp_Ax3& A3)
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Plane>& S)
|
||||
{
|
||||
@@ -451,10 +451,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Plane
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_CylindricalSurface>& S)
|
||||
{
|
||||
@@ -466,10 +466,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Cylin
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_ConicalSurface>& S)
|
||||
{
|
||||
@@ -482,10 +482,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Conic
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_SphericalSurface>& S)
|
||||
{
|
||||
@@ -497,10 +497,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Spher
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_ToroidalSurface>& S)
|
||||
{
|
||||
@@ -513,10 +513,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Toroi
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS,
|
||||
occ::handle<Geom_SurfaceOfLinearExtrusion>& S)
|
||||
@@ -529,10 +529,10 @@ static Standard_IStream& operator>>(Standard_IStream&
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_SurfaceOfRevolution>& S)
|
||||
{
|
||||
@@ -545,10 +545,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Surfa
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_BezierSurface>& S)
|
||||
{
|
||||
@@ -590,10 +590,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_Bezie
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_BSplineSurface>& S)
|
||||
{
|
||||
@@ -668,10 +668,10 @@ static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_BSpli
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS,
|
||||
occ::handle<Geom_RectangularTrimmedSurface>& S)
|
||||
@@ -687,10 +687,10 @@ static Standard_IStream& operator>>(Standard_IStream&
|
||||
return IS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : operator>>
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static Standard_IStream& operator>>(Standard_IStream& IS, occ::handle<Geom_OffsetSurface>& S)
|
||||
{
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::MakeWire
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MakeWire)
|
||||
{
|
||||
@@ -44,9 +44,9 @@ TEST(TopoDS_Builder_Test, MakeWire)
|
||||
EXPECT_TRUE(aWire.Free()) << "Newly created wire should be free";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::MakeShell
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MakeShell)
|
||||
{
|
||||
@@ -59,9 +59,9 @@ TEST(TopoDS_Builder_Test, MakeShell)
|
||||
EXPECT_EQ(aShell.ShapeType(), TopAbs_SHELL);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::MakeSolid
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MakeSolid)
|
||||
{
|
||||
@@ -74,9 +74,9 @@ TEST(TopoDS_Builder_Test, MakeSolid)
|
||||
EXPECT_EQ(aSolid.ShapeType(), TopAbs_SOLID);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::MakeCompSolid
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MakeCompSolid)
|
||||
{
|
||||
@@ -89,9 +89,9 @@ TEST(TopoDS_Builder_Test, MakeCompSolid)
|
||||
EXPECT_EQ(aCompSolid.ShapeType(), TopAbs_COMPSOLID);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::MakeCompound
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MakeCompound)
|
||||
{
|
||||
@@ -104,9 +104,9 @@ TEST(TopoDS_Builder_Test, MakeCompound)
|
||||
EXPECT_EQ(aCompound.ShapeType(), TopAbs_COMPOUND);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Add - add vertices to compound
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Add_VerticesToCompound)
|
||||
{
|
||||
@@ -133,9 +133,9 @@ TEST(TopoDS_Builder_Test, Add_VerticesToCompound)
|
||||
EXPECT_EQ(aCount, 3) << "Compound should have 3 vertices";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Add - add edges to wire
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Add_EdgesToWire)
|
||||
{
|
||||
@@ -163,9 +163,9 @@ TEST(TopoDS_Builder_Test, Add_EdgesToWire)
|
||||
EXPECT_EQ(aCount, 3) << "Wire should have 3 edges";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_FromCompound)
|
||||
{
|
||||
@@ -195,9 +195,9 @@ TEST(TopoDS_Builder_Test, Remove_FromCompound)
|
||||
EXPECT_EQ(aCount, 2) << "Compound should have 2 vertices after removal";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test adding many shapes to compound
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Add_ManyShapes)
|
||||
{
|
||||
@@ -223,9 +223,9 @@ TEST(TopoDS_Builder_Test, Add_ManyShapes)
|
||||
EXPECT_EQ(aCount, 500) << "Compound should have 500 vertices";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape flags through shape interface
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, TShapeFlags)
|
||||
{
|
||||
@@ -251,9 +251,9 @@ TEST(TopoDS_Builder_Test, TShapeFlags)
|
||||
EXPECT_TRUE(aCompound.Convex());
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove first child
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_FirstChild)
|
||||
{
|
||||
@@ -281,9 +281,9 @@ TEST(TopoDS_Builder_Test, Remove_FirstChild)
|
||||
EXPECT_EQ(aCount, 2);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove last child
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_LastChild)
|
||||
{
|
||||
@@ -311,9 +311,9 @@ TEST(TopoDS_Builder_Test, Remove_LastChild)
|
||||
EXPECT_EQ(aCount, 2);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove all children one by one
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_AllChildren)
|
||||
{
|
||||
@@ -339,9 +339,9 @@ TEST(TopoDS_Builder_Test, Remove_AllChildren)
|
||||
EXPECT_FALSE(anIt.More()) << "Compound should be empty after removing all children";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove from wire
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_FromWire)
|
||||
{
|
||||
@@ -369,9 +369,9 @@ TEST(TopoDS_Builder_Test, Remove_FromWire)
|
||||
EXPECT_EQ(aCount, 2);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder with nested compounds
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, NestedCompounds)
|
||||
{
|
||||
@@ -400,9 +400,9 @@ TEST(TopoDS_Builder_Test, NestedCompounds)
|
||||
EXPECT_EQ(aInner.TShape()->NbChildren(), 2);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Add sets Modified flag
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Add_SetsModifiedFlag)
|
||||
{
|
||||
@@ -419,9 +419,9 @@ TEST(TopoDS_Builder_Test, Add_SetsModifiedFlag)
|
||||
EXPECT_TRUE(aCompound.Modified()) << "Add should set Modified flag";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TopoDS_Builder::Remove sets Modified flag
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, Remove_SetsModifiedFlag)
|
||||
{
|
||||
@@ -441,9 +441,9 @@ TEST(TopoDS_Builder_Test, Remove_SetsModifiedFlag)
|
||||
EXPECT_TRUE(aCompound.Modified()) << "Remove should set Modified flag";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test all shape types
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, AllTypes)
|
||||
{
|
||||
@@ -485,9 +485,9 @@ TEST(TopoDS_Builder_Test, AllTypes)
|
||||
EXPECT_TRUE(aCompound.Free());
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test mixed shapes in compound
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_Builder_Test, MixedShapesInCompound)
|
||||
{
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
#include <TopExp_Explorer.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape ShapeType() returns correct type for each shape kind
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, ShapeType_AllTypes)
|
||||
{
|
||||
@@ -65,9 +65,9 @@ TEST(TopoDS_TShape_Test, ShapeType_AllTypes)
|
||||
EXPECT_EQ(aCompound.TShape()->ShapeType(), TopAbs_COMPOUND);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape flag setters and getters
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, FlagSettersGetters)
|
||||
{
|
||||
@@ -122,9 +122,9 @@ TEST(TopoDS_TShape_Test, FlagSettersGetters)
|
||||
EXPECT_TRUE(aTShape->Locked());
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape NbChildren() for various shapes
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, NbChildren)
|
||||
{
|
||||
@@ -157,9 +157,9 @@ TEST(TopoDS_TShape_Test, NbChildren)
|
||||
EXPECT_EQ(aCompound.TShape()->NbChildren(), 10);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape EmptyCopy creates same type with no children
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, EmptyCopy)
|
||||
{
|
||||
@@ -180,9 +180,9 @@ TEST(TopoDS_TShape_Test, EmptyCopy)
|
||||
EXPECT_EQ(aCopy->NbChildren(), 0) << "EmptyCopy should have no children";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape EmptyCopy for all shape types
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, EmptyCopy_AllTypes)
|
||||
{
|
||||
@@ -229,9 +229,9 @@ TEST(TopoDS_TShape_Test, EmptyCopy_AllTypes)
|
||||
}
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape Orientable flag for different shape types
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, Orientable_DifferentTypes)
|
||||
{
|
||||
@@ -252,9 +252,9 @@ TEST(TopoDS_TShape_Test, Orientable_DifferentTypes)
|
||||
EXPECT_TRUE(aWire.TShape()->Orientable()) << "Wire should be orientable";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test TShape flags are independent
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, FlagsIndependent)
|
||||
{
|
||||
@@ -284,9 +284,9 @@ TEST(TopoDS_TShape_Test, FlagsIndependent)
|
||||
EXPECT_TRUE(aTShape->Locked()) << "Clearing Closed should not affect Locked";
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
// Test NbChildren consistency with iterator
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
TEST(TopoDS_TShape_Test, NbChildren_ConsistencyWithIterator)
|
||||
{
|
||||
|
||||
@@ -233,10 +233,10 @@ static void PrintOrientation(const TopAbs_Orientation O, Standard_OStream& S, bo
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : DumpExtent
|
||||
// purpose : Dump number of shapes.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const
|
||||
{
|
||||
@@ -307,10 +307,10 @@ Standard_OStream& TopTools_ShapeSet::DumpExtent(Standard_OStream& OS) const
|
||||
return OS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
// function : DumpExtent
|
||||
// purpose : Dump number of shapes.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopTools_ShapeSet::DumpExtent(TCollection_AsciiString& S) const
|
||||
{
|
||||
@@ -647,7 +647,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
|
||||
if (aPS.UserBreak())
|
||||
{
|
||||
std::cout << "Interrupted by the user" << std::endl;
|
||||
// on remet le LC_NUMERIC a la precedente valeur
|
||||
// restore LC_NUMERIC to the previous value
|
||||
IS.imbue(anOldLocale);
|
||||
return;
|
||||
}
|
||||
@@ -673,7 +673,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
|
||||
if (strcmp(buffer, "TShapes"))
|
||||
{
|
||||
std::cout << "Not a TShape table" << std::endl;
|
||||
// on remet le LC_NUMERIC a la precedente valeur
|
||||
// restore LC_NUMERIC to the previous value
|
||||
IS.imbue(anOldLocale);
|
||||
return;
|
||||
}
|
||||
@@ -723,7 +723,7 @@ void TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
|
||||
myShapes.Add(S);
|
||||
}
|
||||
|
||||
// on remet le LC_NUMERIC a la precedente valeur
|
||||
// restore LC_NUMERIC to the previous value
|
||||
IS.imbue(anOldLocale);
|
||||
|
||||
if (aPS.UserBreak())
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <TopoDS_TWire.hxx>
|
||||
#include <TopoDS_UnCompatibleShapes.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Builder::MakeShape(TopoDS_Shape& S, const occ::handle<TopoDS_TShape>& T) const
|
||||
{
|
||||
@@ -32,7 +32,7 @@ void TopoDS_Builder::MakeShape(TopoDS_Shape& S, const occ::handle<TopoDS_TShape>
|
||||
S.Orientation(TopAbs_FORWARD);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Builder::Add(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) const
|
||||
{
|
||||
@@ -98,7 +98,7 @@ void TopoDS_Builder::Add(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) c
|
||||
}
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Builder::Remove(TopoDS_Shape& aShape, const TopoDS_Shape& aComponent) const
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <TopoDS_CompSolid.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const
|
||||
{
|
||||
@@ -33,7 +33,7 @@ inline void TopoDS_Builder::MakeWire(TopoDS_Wire& W) const
|
||||
MakeShape(W, TW);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const
|
||||
{
|
||||
@@ -41,7 +41,7 @@ inline void TopoDS_Builder::MakeShell(TopoDS_Shell& S) const
|
||||
MakeShape(S, TS);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopoDS_Builder::MakeSolid(TopoDS_Solid& S) const
|
||||
{
|
||||
@@ -49,7 +49,7 @@ inline void TopoDS_Builder::MakeSolid(TopoDS_Solid& S) const
|
||||
MakeShape(S, TS);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopoDS_Builder::MakeCompSolid(TopoDS_CompSolid& C) const
|
||||
{
|
||||
@@ -57,7 +57,7 @@ inline void TopoDS_Builder::MakeCompSolid(TopoDS_CompSolid& C) const
|
||||
MakeShape(C, TC);
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopoDS_Builder::MakeCompound(TopoDS_Compound& C) const
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <TopoDS_Iterator.hxx>
|
||||
#include <TopoDS_TShape.hxx>
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Iterator::Initialize(const TopoDS_Shape& S, const bool cumOri, const bool cumLoc)
|
||||
{
|
||||
@@ -48,7 +48,7 @@ void TopoDS_Iterator::Initialize(const TopoDS_Shape& S, const bool cumOri, const
|
||||
}
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Iterator::Next()
|
||||
{
|
||||
@@ -59,7 +59,7 @@ void TopoDS_Iterator::Next()
|
||||
}
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void TopoDS_Iterator::updateCurrentShape()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user