mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-06 12:47:51 +08:00
Coding - Clang-Tidy apply with refactoring (#965)
- Replacing empty constructor/destructor implementations with `= default` - Removing redundant `virtual` keywords from override methods - Replacing `NULL` and `0` with `nullptr` - Replacing C headers with C++ equivalents (`<cstdio>`, `<cstring>`, etc.) - Marking copy constructors/assignment operators as `= delete` for non-copyable classes - Converting `void` parameter lists to empty parameter lists - Replacing integer literals with appropriate boolean values
This commit is contained in:
@@ -37,18 +37,17 @@ public:
|
||||
Standard_EXPORT void D0(const double U, gp_Pnt& P) const override;
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsCurve3D() const override;
|
||||
Standard_EXPORT bool IsCurve3D() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Curve>& Curve3D() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Curve>& Curve3D() const override;
|
||||
|
||||
Standard_EXPORT virtual void Curve3D(const occ::handle<Geom_Curve>& C) override;
|
||||
Standard_EXPORT void Curve3D(const occ::handle<Geom_Curve>& C) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_Curve3D, BRep_GCurve)
|
||||
|
||||
|
||||
@@ -36,33 +36,32 @@ public:
|
||||
const GeomAbs_Shape C);
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsRegularity() const override;
|
||||
Standard_EXPORT bool IsRegularity() const override;
|
||||
|
||||
//! A curve on two surfaces (continuity).
|
||||
Standard_EXPORT virtual bool IsRegularity(const occ::handle<Geom_Surface>& S1,
|
||||
const occ::handle<Geom_Surface>& S2,
|
||||
const TopLoc_Location& L1,
|
||||
const TopLoc_Location& L2) const override;
|
||||
Standard_EXPORT bool IsRegularity(const occ::handle<Geom_Surface>& S1,
|
||||
const occ::handle<Geom_Surface>& S2,
|
||||
const TopLoc_Location& L1,
|
||||
const TopLoc_Location& L2) const override;
|
||||
|
||||
//! Raises an error.
|
||||
Standard_EXPORT void D0(const double U, gp_Pnt& P) const;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface2() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface2() const override;
|
||||
|
||||
Standard_EXPORT virtual const TopLoc_Location& Location2() const override;
|
||||
Standard_EXPORT const TopLoc_Location& Location2() const override;
|
||||
|
||||
Standard_EXPORT virtual const GeomAbs_Shape& Continuity() const override;
|
||||
Standard_EXPORT const GeomAbs_Shape& Continuity() const override;
|
||||
|
||||
Standard_EXPORT virtual void Continuity(const GeomAbs_Shape C) override;
|
||||
Standard_EXPORT void Continuity(const GeomAbs_Shape C) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_CurveOn2Surfaces, BRep_CurveRepresentation)
|
||||
|
||||
|
||||
@@ -42,41 +42,40 @@ public:
|
||||
void UVPoints2(gp_Pnt2d& P1, gp_Pnt2d& P2) const;
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsCurveOnClosedSurface() const override;
|
||||
Standard_EXPORT bool IsCurveOnClosedSurface() const override;
|
||||
|
||||
//! Returns True
|
||||
Standard_EXPORT virtual bool IsRegularity() const override;
|
||||
Standard_EXPORT bool IsRegularity() const override;
|
||||
|
||||
//! A curve on two surfaces (continuity).
|
||||
Standard_EXPORT virtual bool IsRegularity(const occ::handle<Geom_Surface>& S1,
|
||||
const occ::handle<Geom_Surface>& S2,
|
||||
const TopLoc_Location& L1,
|
||||
const TopLoc_Location& L2) const override;
|
||||
Standard_EXPORT bool IsRegularity(const occ::handle<Geom_Surface>& S1,
|
||||
const occ::handle<Geom_Surface>& S2,
|
||||
const TopLoc_Location& L1,
|
||||
const TopLoc_Location& L2) const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom2d_Curve>& PCurve2() const override;
|
||||
Standard_EXPORT const occ::handle<Geom2d_Curve>& PCurve2() const override;
|
||||
|
||||
//! Returns Surface()
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface2() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface2() const override;
|
||||
|
||||
//! Returns Location()
|
||||
Standard_EXPORT virtual const TopLoc_Location& Location2() const override;
|
||||
Standard_EXPORT const TopLoc_Location& Location2() const override;
|
||||
|
||||
Standard_EXPORT virtual const GeomAbs_Shape& Continuity() const override;
|
||||
Standard_EXPORT const GeomAbs_Shape& Continuity() const override;
|
||||
|
||||
Standard_EXPORT virtual void Continuity(const GeomAbs_Shape C) override;
|
||||
Standard_EXPORT void Continuity(const GeomAbs_Shape C) override;
|
||||
|
||||
Standard_EXPORT virtual void PCurve2(const occ::handle<Geom2d_Curve>& C) override;
|
||||
Standard_EXPORT void PCurve2(const occ::handle<Geom2d_Curve>& C) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Recomputes any derived data after a modification.
|
||||
//! This is called when the range is modified.
|
||||
Standard_EXPORT virtual void Update() override;
|
||||
Standard_EXPORT void Update() override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_CurveOnClosedSurface, BRep_CurveOnSurface)
|
||||
|
||||
|
||||
@@ -46,28 +46,27 @@ public:
|
||||
Standard_EXPORT void D0(const double U, gp_Pnt& P) const override;
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsCurveOnSurface() const override;
|
||||
Standard_EXPORT bool IsCurveOnSurface() const override;
|
||||
|
||||
//! A curve in the parametric space of a surface.
|
||||
Standard_EXPORT virtual bool IsCurveOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsCurveOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom2d_Curve>& PCurve() const override;
|
||||
Standard_EXPORT const occ::handle<Geom2d_Curve>& PCurve() const override;
|
||||
|
||||
Standard_EXPORT virtual void PCurve(const occ::handle<Geom2d_Curve>& C) override;
|
||||
Standard_EXPORT void PCurve(const occ::handle<Geom2d_Curve>& C) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Recomputes any derived data after a modification.
|
||||
//! This is called when the range is modified.
|
||||
Standard_EXPORT virtual void Update() override;
|
||||
Standard_EXPORT void Update() override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_CurveOnSurface, BRep_GCurve)
|
||||
|
||||
|
||||
@@ -51,8 +51,7 @@ public:
|
||||
Standard_EXPORT virtual void Update();
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_GCurve, BRep_CurveRepresentation)
|
||||
|
||||
|
||||
@@ -34,18 +34,17 @@ public:
|
||||
const TopLoc_Location& L);
|
||||
|
||||
//! Returns True
|
||||
Standard_EXPORT virtual bool IsPointOnCurve() const override;
|
||||
Standard_EXPORT bool IsPointOnCurve() const override;
|
||||
|
||||
Standard_EXPORT virtual bool IsPointOnCurve(const occ::handle<Geom_Curve>& C,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsPointOnCurve(const occ::handle<Geom_Curve>& C,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Curve>& Curve() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Curve>& Curve() const override;
|
||||
|
||||
Standard_EXPORT virtual void Curve(const occ::handle<Geom_Curve>& C) override;
|
||||
Standard_EXPORT void Curve(const occ::handle<Geom_Curve>& C) override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PointOnCurve, BRep_PointRepresentation)
|
||||
|
||||
|
||||
@@ -37,19 +37,18 @@ public:
|
||||
const TopLoc_Location& L);
|
||||
|
||||
//! Returns True
|
||||
Standard_EXPORT virtual bool IsPointOnCurveOnSurface() const override;
|
||||
Standard_EXPORT bool IsPointOnCurveOnSurface() const override;
|
||||
|
||||
Standard_EXPORT virtual bool IsPointOnCurveOnSurface(const occ::handle<Geom2d_Curve>& PC,
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsPointOnCurveOnSurface(const occ::handle<Geom2d_Curve>& PC,
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom2d_Curve>& PCurve() const override;
|
||||
Standard_EXPORT const occ::handle<Geom2d_Curve>& PCurve() const override;
|
||||
|
||||
Standard_EXPORT virtual void PCurve(const occ::handle<Geom2d_Curve>& C) override;
|
||||
Standard_EXPORT void PCurve(const occ::handle<Geom2d_Curve>& C) override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PointOnCurveOnSurface, BRep_PointsOnSurface)
|
||||
|
||||
|
||||
@@ -34,14 +34,14 @@ public:
|
||||
const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L);
|
||||
|
||||
Standard_EXPORT virtual bool IsPointOnSurface() const override;
|
||||
Standard_EXPORT bool IsPointOnSurface() const override;
|
||||
|
||||
Standard_EXPORT virtual bool IsPointOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsPointOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
Standard_EXPORT virtual double Parameter2() const override;
|
||||
Standard_EXPORT double Parameter2() const override;
|
||||
|
||||
Standard_EXPORT virtual void Parameter2(const double P) override;
|
||||
Standard_EXPORT void Parameter2(const double P) override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PointOnSurface, BRep_PointsOnSurface)
|
||||
|
||||
|
||||
@@ -29,13 +29,12 @@ class BRep_PointsOnSurface : public BRep_PointRepresentation
|
||||
{
|
||||
|
||||
public:
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface() const override;
|
||||
|
||||
Standard_EXPORT virtual void Surface(const occ::handle<Geom_Surface>& S) override;
|
||||
Standard_EXPORT void Surface(const occ::handle<Geom_Surface>& S) override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PointsOnSurface, BRep_PointRepresentation)
|
||||
|
||||
|
||||
@@ -32,18 +32,17 @@ public:
|
||||
Standard_EXPORT BRep_Polygon3D(const occ::handle<Poly_Polygon3D>& P, const TopLoc_Location& L);
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsPolygon3D() const override;
|
||||
Standard_EXPORT bool IsPolygon3D() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_Polygon3D>& Polygon3D() const override;
|
||||
Standard_EXPORT const occ::handle<Poly_Polygon3D>& Polygon3D() const override;
|
||||
|
||||
Standard_EXPORT virtual void Polygon3D(const occ::handle<Poly_Polygon3D>& P) override;
|
||||
Standard_EXPORT void Polygon3D(const occ::handle<Poly_Polygon3D>& P) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_Polygon3D, BRep_CurveRepresentation)
|
||||
|
||||
|
||||
@@ -38,18 +38,17 @@ public:
|
||||
const TopLoc_Location& L);
|
||||
|
||||
//! returns True.
|
||||
Standard_EXPORT virtual bool IsPolygonOnClosedSurface() const override;
|
||||
Standard_EXPORT bool IsPolygonOnClosedSurface() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_Polygon2D>& Polygon2() const override;
|
||||
Standard_EXPORT const occ::handle<Poly_Polygon2D>& Polygon2() const override;
|
||||
|
||||
Standard_EXPORT virtual void Polygon2(const occ::handle<Poly_Polygon2D>& P) override;
|
||||
Standard_EXPORT void Polygon2(const occ::handle<Poly_Polygon2D>& P) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PolygonOnClosedSurface, BRep_PolygonOnSurface)
|
||||
|
||||
|
||||
@@ -39,20 +39,19 @@ public:
|
||||
const TopLoc_Location& L);
|
||||
|
||||
//! Returns True.
|
||||
Standard_EXPORT virtual bool IsPolygonOnClosedTriangulation() const override;
|
||||
Standard_EXPORT bool IsPolygonOnClosedTriangulation() const override;
|
||||
|
||||
Standard_EXPORT virtual void PolygonOnTriangulation2(
|
||||
Standard_EXPORT void PolygonOnTriangulation2(
|
||||
const occ::handle<Poly_PolygonOnTriangulation>& P2) override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_PolygonOnTriangulation>& PolygonOnTriangulation2()
|
||||
Standard_EXPORT const occ::handle<Poly_PolygonOnTriangulation>& PolygonOnTriangulation2()
|
||||
const override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PolygonOnClosedTriangulation, BRep_PolygonOnTriangulation)
|
||||
|
||||
|
||||
@@ -37,25 +37,24 @@ public:
|
||||
|
||||
//! A 2D polygon representation in the parametric
|
||||
//! space of a surface.
|
||||
Standard_EXPORT virtual bool IsPolygonOnSurface() const override;
|
||||
Standard_EXPORT bool IsPolygonOnSurface() const override;
|
||||
|
||||
//! A 2D polygon representation in the parametric
|
||||
//! space of a surface.
|
||||
Standard_EXPORT virtual bool IsPolygonOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsPolygonOnSurface(const occ::handle<Geom_Surface>& S,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Geom_Surface>& Surface() const override;
|
||||
Standard_EXPORT const occ::handle<Geom_Surface>& Surface() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_Polygon2D>& Polygon() const override;
|
||||
Standard_EXPORT const occ::handle<Poly_Polygon2D>& Polygon() const override;
|
||||
|
||||
Standard_EXPORT virtual void Polygon(const occ::handle<Poly_Polygon2D>& P) override;
|
||||
Standard_EXPORT void Polygon(const occ::handle<Poly_Polygon2D>& P) override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PolygonOnSurface, BRep_CurveRepresentation)
|
||||
|
||||
|
||||
@@ -36,28 +36,27 @@ public:
|
||||
const TopLoc_Location& L);
|
||||
|
||||
//! returns True.
|
||||
Standard_EXPORT virtual bool IsPolygonOnTriangulation() const override;
|
||||
Standard_EXPORT bool IsPolygonOnTriangulation() const override;
|
||||
|
||||
//! Is it a polygon in the definition of <T> with
|
||||
//! location <L>.
|
||||
Standard_EXPORT virtual bool IsPolygonOnTriangulation(const occ::handle<Poly_Triangulation>& T,
|
||||
const TopLoc_Location& L) const override;
|
||||
Standard_EXPORT bool IsPolygonOnTriangulation(const occ::handle<Poly_Triangulation>& T,
|
||||
const TopLoc_Location& L) const override;
|
||||
|
||||
//! returns True.
|
||||
Standard_EXPORT virtual void PolygonOnTriangulation(
|
||||
Standard_EXPORT void PolygonOnTriangulation(
|
||||
const occ::handle<Poly_PolygonOnTriangulation>& P) override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_Triangulation>& Triangulation() const override;
|
||||
Standard_EXPORT const occ::handle<Poly_Triangulation>& Triangulation() const override;
|
||||
|
||||
Standard_EXPORT virtual const occ::handle<Poly_PolygonOnTriangulation>& PolygonOnTriangulation()
|
||||
Standard_EXPORT const occ::handle<Poly_PolygonOnTriangulation>& PolygonOnTriangulation()
|
||||
const override;
|
||||
|
||||
//! Return a copy of this representation.
|
||||
Standard_EXPORT virtual occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_PolygonOnTriangulation, BRep_CurveRepresentation)
|
||||
|
||||
|
||||
@@ -30,8 +30,7 @@ static const int DegeneratedMask = 4;
|
||||
//=================================================================================================
|
||||
|
||||
BRep_TEdge::BRep_TEdge()
|
||||
: TopoDS_TEdge(),
|
||||
myTolerance(RealEpsilon()),
|
||||
: myTolerance(RealEpsilon()),
|
||||
myFlags(0)
|
||||
{
|
||||
SameParameter(true);
|
||||
|
||||
@@ -71,8 +71,7 @@ public:
|
||||
Standard_EXPORT occ::handle<TopoDS_TShape> EmptyCopy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_TEdge, TopoDS_TEdge)
|
||||
|
||||
|
||||
@@ -26,8 +26,7 @@ IMPLEMENT_STANDARD_RTTIEXT(BRep_TFace, TopoDS_TFace)
|
||||
//=================================================================================================
|
||||
|
||||
BRep_TFace::BRep_TFace()
|
||||
: TopoDS_TFace(),
|
||||
myTolerance(RealEpsilon()),
|
||||
: myTolerance(RealEpsilon()),
|
||||
myNaturalRestriction(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -102,11 +102,10 @@ public:
|
||||
|
||||
//! Returns a copy of the TShape with no sub-shapes.
|
||||
//! The new Face has no triangulation.
|
||||
Standard_EXPORT virtual occ::handle<TopoDS_TShape> EmptyCopy() const override;
|
||||
Standard_EXPORT occ::handle<TopoDS_TShape> EmptyCopy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
public:
|
||||
//! Returns the list of available face triangulations.
|
||||
|
||||
@@ -24,8 +24,7 @@ IMPLEMENT_STANDARD_RTTIEXT(BRep_TVertex, TopoDS_TVertex)
|
||||
//=================================================================================================
|
||||
|
||||
BRep_TVertex::BRep_TVertex()
|
||||
: TopoDS_TVertex(),
|
||||
myTolerance(RealEpsilon())
|
||||
: myTolerance(RealEpsilon())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,7 @@ public:
|
||||
Standard_EXPORT occ::handle<TopoDS_TShape> EmptyCopy() const override;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
int theDepth = -1) const override;
|
||||
Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(BRep_TVertex, TopoDS_TVertex)
|
||||
|
||||
|
||||
@@ -1232,7 +1232,7 @@ gp_Pnt BRep_Tool::Pnt(const TopoDS_Vertex& V)
|
||||
{
|
||||
const BRep_TVertex* TV = static_cast<const BRep_TVertex*>(V.TShape().get());
|
||||
|
||||
if (TV == 0)
|
||||
if (TV == nullptr)
|
||||
{
|
||||
throw Standard_NullObject("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
|
||||
}
|
||||
@@ -1255,7 +1255,7 @@ double BRep_Tool::Tolerance(const TopoDS_Vertex& V)
|
||||
{
|
||||
const BRep_TVertex* aTVert = static_cast<const BRep_TVertex*>(V.TShape().get());
|
||||
|
||||
if (aTVert == 0)
|
||||
if (aTVert == nullptr)
|
||||
{
|
||||
throw Standard_NullObject("BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt");
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ public:
|
||||
const TopoDS_Face& F,
|
||||
double& First,
|
||||
double& Last,
|
||||
bool* theIsStored = NULL);
|
||||
bool* theIsStored = nullptr);
|
||||
|
||||
//! Returns the curve associated to the edge in the
|
||||
//! parametric space of the surface. Returns a NULL
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
const TopLoc_Location& L,
|
||||
double& First,
|
||||
double& Last,
|
||||
bool* theIsStored = NULL);
|
||||
bool* theIsStored = nullptr);
|
||||
|
||||
//! For the planar surface builds the 2d curve for the edge
|
||||
//! by projection of the edge on plane.
|
||||
|
||||
Reference in New Issue
Block a user