mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031939: Coding - correction of spelling errors in comments [part 10]
Fix various typos via codespell.
This commit is contained in:
@@ -686,7 +686,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
|
||||
std::cout << " iteration = " << i
|
||||
<< "\terror = " << anApprox.MaxError()
|
||||
<< "\tspans = " << nbOfSpan << std::endl;
|
||||
std::cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<std::endl;
|
||||
std::cout<< " Surface is approximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<std::endl;
|
||||
}
|
||||
#endif
|
||||
S = anApprox.Surface();
|
||||
@@ -757,7 +757,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
|
||||
}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
|
||||
std::cout<<" Approximation iteration out. Surface is not approximated." << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -767,7 +767,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
|
||||
{ MaxDeg = myParameters->GMaxDegree(); continue;}
|
||||
else {
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
|
||||
std::cout<<" Approximation iteration out. Surface is not approximated." << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -893,7 +893,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_
|
||||
|
||||
if (aCurve->IsKind(STANDARD_TYPE(Geom_Conic)) && myParameters->ConvertCurve3d()) {
|
||||
Handle(Geom_BSplineCurve) aBSpline;
|
||||
Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(aCurve,First,Last); //protection agains parabols ets
|
||||
Handle(Geom_Curve) tcurve = new Geom_TrimmedCurve(aCurve,First,Last); //protection against parabols ets
|
||||
GeomConvert_ApproxCurve approx (tcurve, myTol3d/*Precision::Approximation()*/, myContinuity2d, myNbMaxSeg, 6 );
|
||||
if ( approx.HasResult() )
|
||||
aBSpline = approx.Curve();
|
||||
@@ -1201,7 +1201,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo
|
||||
|
||||
if (aCurve->IsKind(STANDARD_TYPE(Geom2d_Conic)) && myParameters->ConvertCurve2d()) {
|
||||
Handle(Geom2d_BSplineCurve) aBSpline2d;
|
||||
Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(aCurve,First,Last); //protection agains parabols ets
|
||||
Handle(Geom2d_Curve) tcurve = new Geom2d_TrimmedCurve(aCurve,First,Last); //protection against parabols ets
|
||||
Geom2dConvert_ApproxCurve approx (tcurve, myTol2d,myContinuity2d,myNbMaxSeg , 6 );
|
||||
if ( approx.HasResult() )
|
||||
aBSpline2d = approx.Curve();
|
||||
|
@@ -39,7 +39,7 @@ class gp_Pnt;
|
||||
class ShapeCustom_BSplineRestriction;
|
||||
DEFINE_STANDARD_HANDLE(ShapeCustom_BSplineRestriction, ShapeCustom_Modification)
|
||||
|
||||
//! this tool intended for aproximation surfaces, curves and pcurves with
|
||||
//! this tool intended for approximation surfaces, curves and pcurves with
|
||||
//! specified degree , max number of segments, tolerance 2d, tolerance 3d. Specified
|
||||
//! continuity can be reduced if approximation with specified continuity was not done.
|
||||
class ShapeCustom_BSplineRestriction : public ShapeCustom_Modification
|
||||
@@ -51,10 +51,10 @@ public:
|
||||
//! Empty constructor.
|
||||
Standard_EXPORT ShapeCustom_BSplineRestriction();
|
||||
|
||||
//! Initializes with specified parameters of aproximation.
|
||||
//! Initializes with specified parameters of approximation.
|
||||
Standard_EXPORT ShapeCustom_BSplineRestriction(const Standard_Boolean anApproxSurfaceFlag, const Standard_Boolean anApproxCurve3dFlag, const Standard_Boolean anApproxCurve2dFlag, const Standard_Real aTol3d, const Standard_Real aTol2d, const GeomAbs_Shape aContinuity3d, const GeomAbs_Shape aContinuity2d, const Standard_Integer aMaxDegree, const Standard_Integer aNbMaxSeg, const Standard_Boolean Degree, const Standard_Boolean Rational);
|
||||
|
||||
//! Initializes with specified parameters of aproximation.
|
||||
//! Initializes with specified parameters of approximation.
|
||||
Standard_EXPORT ShapeCustom_BSplineRestriction(const Standard_Boolean anApproxSurfaceFlag, const Standard_Boolean anApproxCurve3dFlag, const Standard_Boolean anApproxCurve2dFlag, const Standard_Real aTol3d, const Standard_Real aTol2d, const GeomAbs_Shape aContinuity3d, const GeomAbs_Shape aContinuity2d, const Standard_Integer aMaxDegree, const Standard_Integer aNbMaxSeg, const Standard_Boolean Degree, const Standard_Boolean Rational, const Handle(ShapeCustom_RestrictionParameters)& aModes);
|
||||
|
||||
//! Returns Standard_True if the face <F> has been
|
||||
@@ -92,54 +92,54 @@ public:
|
||||
//! <Tol> are not significant.
|
||||
//!
|
||||
//! <NewE> is the new edge created from <E>. <NewF>
|
||||
//! is the new face created from <F>. They may be usefull.
|
||||
//! is the new face created from <F>. They may be useful.
|
||||
Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
|
||||
//! Returns Standard_True if the surface has been modified.
|
||||
//! if flag IsOf equals Standard_True Offset surfaces are aproximated to Offset
|
||||
//! if flag IsOf equals Standard_True Offset surfaces are approximated to Offset
|
||||
//! if Standard_False to BSpline
|
||||
Standard_EXPORT Standard_Boolean ConvertSurface (const Handle(Geom_Surface)& aSurface, Handle(Geom_Surface)& S, const Standard_Real UF, const Standard_Real UL, const Standard_Real VF, const Standard_Real VL, const Standard_Boolean IsOf = Standard_True);
|
||||
|
||||
//! Returns Standard_True if the curve has been modified.
|
||||
//! if flag IsOf equals Standard_True Offset curves are aproximated to Offset
|
||||
//! if flag IsOf equals Standard_True Offset curves are approximated to Offset
|
||||
//! if Standard_False to BSpline
|
||||
Standard_EXPORT Standard_Boolean ConvertCurve (const Handle(Geom_Curve)& aCurve, Handle(Geom_Curve)& C, const Standard_Boolean IsConvert, const Standard_Real First, const Standard_Real Last, Standard_Real& TolCur, const Standard_Boolean IsOf = Standard_True);
|
||||
|
||||
//! Returns Standard_True if the pcurve has been modified.
|
||||
//! if flag IsOf equals Standard_True Offset pcurves are aproximated to Offset
|
||||
//! if flag IsOf equals Standard_True Offset pcurves are approximated to Offset
|
||||
//! if Standard_False to BSpline
|
||||
Standard_EXPORT Standard_Boolean ConvertCurve2d (const Handle(Geom2d_Curve)& aCurve, Handle(Geom2d_Curve)& C, const Standard_Boolean IsConvert, const Standard_Real First, const Standard_Real Last, Standard_Real& TolCur, const Standard_Boolean IsOf = Standard_True);
|
||||
|
||||
//! Sets tolerance of aproximation for curve3d and surface
|
||||
//! Sets tolerance of approximation for curve3d and surface
|
||||
void SetTol3d (const Standard_Real Tol3d);
|
||||
|
||||
//! Sets tolerance of aproximation for curve2d
|
||||
//! Sets tolerance of approximation for curve2d
|
||||
void SetTol2d (const Standard_Real Tol2d);
|
||||
|
||||
//! Returns (modifiable) the flag which defines whether the
|
||||
//! surface is aproximated.
|
||||
//! surface is approximated.
|
||||
Standard_Boolean& ModifyApproxSurfaceFlag();
|
||||
|
||||
//! Returns (modifiable) the flag which defines whether the
|
||||
//! curve3d is aproximated.
|
||||
//! curve3d is approximated.
|
||||
Standard_Boolean& ModifyApproxCurve3dFlag();
|
||||
|
||||
//! Returns (modifiable) the flag which defines whether the curve2d is aproximated.
|
||||
//! Returns (modifiable) the flag which defines whether the curve2d is approximated.
|
||||
Standard_Boolean& ModifyApproxCurve2dFlag();
|
||||
|
||||
//! Sets continuity3d for aproximation curve3d and surface.
|
||||
//! Sets continuity3d for approximation curve3d and surface.
|
||||
void SetContinuity3d (const GeomAbs_Shape Continuity3d);
|
||||
|
||||
//! Sets continuity3d for aproximation curve2d.
|
||||
//! Sets continuity3d for approximation curve2d.
|
||||
void SetContinuity2d (const GeomAbs_Shape Continuity2d);
|
||||
|
||||
//! Sets max degree for aproximation.
|
||||
//! Sets max degree for approximation.
|
||||
void SetMaxDegree (const Standard_Integer MaxDegree);
|
||||
|
||||
//! Sets max number of segments for aproximation.
|
||||
//! Sets max number of segments for approximation.
|
||||
void SetMaxNbSegments (const Standard_Integer MaxNbSegments);
|
||||
|
||||
//! Sets priority for aproximation curves and surface.
|
||||
//! Sets priority for approximation curves and surface.
|
||||
//! If Degree is True approximation is made with degree less
|
||||
//! then specified MaxDegree at the expense of number of spanes.
|
||||
//! If Degree is False approximation is made with number of
|
||||
@@ -162,13 +162,13 @@ public:
|
||||
//! what geometry should be converted to BSplines.
|
||||
void SetRestrictionParameters (const Handle(ShapeCustom_RestrictionParameters)& aModes);
|
||||
|
||||
//! Returns error for aproximation curve3d.
|
||||
//! Returns error for approximation curve3d.
|
||||
Standard_Real Curve3dError() const;
|
||||
|
||||
//! Returns error for aproximation curve2d.
|
||||
//! Returns error for approximation curve2d.
|
||||
Standard_Real Curve2dError() const;
|
||||
|
||||
//! Returns error for aproximation surface.
|
||||
//! Returns error for approximation surface.
|
||||
Standard_Real SurfaceError() const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
@@ -177,10 +177,10 @@ public:
|
||||
|
||||
Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2, const TopoDS_Edge& NewE, const TopoDS_Face& NewF1, const TopoDS_Face& NewF2) Standard_OVERRIDE;
|
||||
|
||||
//! Returns error for aproximation surface, curve3d and curve2d.
|
||||
//! Returns error for approximation surface, curve3d and curve2d.
|
||||
Standard_EXPORT Standard_Real MaxErrors (Standard_Real& aCurve3dErr, Standard_Real& aCurve2dErr) const;
|
||||
|
||||
//! Returns number for aproximation surface, curve3d and curve2d.
|
||||
//! Returns number for approximation surface, curve3d and curve2d.
|
||||
Standard_EXPORT Standard_Integer NbOfSpan() const;
|
||||
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class ShapeCustom_ConvertToBSpline;
|
||||
DEFINE_STANDARD_HANDLE(ShapeCustom_ConvertToBSpline, ShapeCustom_Modification)
|
||||
|
||||
//! implement a modification for BRepTools
|
||||
//! Modifier algortihm. Converts Surface of
|
||||
//! Modifier algorithm. Converts Surface of
|
||||
//! Linear Exctrusion, Revolution and Offset
|
||||
//! surfaces into BSpline Surface according to
|
||||
//! flags.
|
||||
@@ -50,17 +50,17 @@ public:
|
||||
|
||||
Standard_EXPORT ShapeCustom_ConvertToBSpline();
|
||||
|
||||
//! Sets mode for convertion of Surfaces of Linear
|
||||
//! Sets mode for conversion of Surfaces of Linear
|
||||
//! extrusion.
|
||||
Standard_EXPORT void SetExtrusionMode (const Standard_Boolean extrMode);
|
||||
|
||||
//! Sets mode for convertion of Surfaces of Revolution.
|
||||
//! Sets mode for conversion of Surfaces of Revolution.
|
||||
Standard_EXPORT void SetRevolutionMode (const Standard_Boolean revolMode);
|
||||
|
||||
//! Sets mode for convertion of Offset surfaces.
|
||||
//! Sets mode for conversion of Offset surfaces.
|
||||
Standard_EXPORT void SetOffsetMode (const Standard_Boolean offsetMode);
|
||||
|
||||
//! Sets mode for convertion of Plane surfaces.
|
||||
//! Sets mode for conversion of Plane surfaces.
|
||||
Standard_EXPORT void SetPlaneMode (const Standard_Boolean planeMode);
|
||||
|
||||
//! Returns Standard_True if the face <F> has been
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
//! <Tol> are not significant.
|
||||
//!
|
||||
//! <NewE> is the new edge created from <E>. <NewF>
|
||||
//! is the new face created from <F>. They may be usefull.
|
||||
//! is the new face created from <F>. They may be useful.
|
||||
Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
|
||||
//! Returns Standard_True if the Vertex <V> has a new
|
||||
|
@@ -38,7 +38,7 @@ class ShapeCustom_ConvertToRevolution;
|
||||
DEFINE_STANDARD_HANDLE(ShapeCustom_ConvertToRevolution, ShapeCustom_Modification)
|
||||
|
||||
//! implements a modification for the BRepTools
|
||||
//! Modifier algortihm. Converts all elementary
|
||||
//! Modifier algorithm. Converts all elementary
|
||||
//! surfaces into surfaces of revolution.
|
||||
class ShapeCustom_ConvertToRevolution : public ShapeCustom_Modification
|
||||
{
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
//! <Tol> are not significant.
|
||||
//!
|
||||
//! <NewE> is the new edge created from <E>. <NewF>
|
||||
//! is the new face created from <F>. They may be usefull.
|
||||
//! is the new face created from <F>. They may be useful.
|
||||
Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
|
||||
//! Returns Standard_True if the Vertex <V> has a new
|
||||
|
@@ -38,7 +38,7 @@ class ShapeCustom_DirectModification;
|
||||
DEFINE_STANDARD_HANDLE(ShapeCustom_DirectModification, ShapeCustom_Modification)
|
||||
|
||||
//! implements a modification for the BRepTools
|
||||
//! Modifier algortihm. Will redress indirect
|
||||
//! Modifier algorithm. Will redress indirect
|
||||
//! surfaces.
|
||||
class ShapeCustom_DirectModification : public ShapeCustom_Modification
|
||||
{
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
//! <Tol> are not significant.
|
||||
//!
|
||||
//! <NewE> is the new edge created from <E>. <NewF>
|
||||
//! is the new face created from <F>. They may be usefull.
|
||||
//! is the new face created from <F>. They may be useful.
|
||||
Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
|
||||
//! Returns Standard_True if the Vertex <V> has a new
|
||||
|
@@ -26,9 +26,9 @@
|
||||
class Geom_Surface;
|
||||
|
||||
|
||||
//! Converts a surface to the analitical form with given
|
||||
//! Converts a surface to the analytical form with given
|
||||
//! precision. Conversion is done only the surface is bspline
|
||||
//! of bezier and this can be approximed by some analytical
|
||||
//! of bezier and this can be approximated by some analytical
|
||||
//! surface with that precision.
|
||||
class ShapeCustom_Surface
|
||||
{
|
||||
|
@@ -62,7 +62,7 @@ ShapeCustom_SweptToElementary::ShapeCustom_SweptToElementary()
|
||||
|
||||
//=======================================================================
|
||||
//function : IsToConvert
|
||||
//purpose : auxilary (Analyze surface: is it to be converted?)
|
||||
//purpose : auxiliary (Analyze surface: is it to be converted?)
|
||||
//=======================================================================
|
||||
static Standard_Boolean IsToConvert (const Handle(Geom_Surface) &S,
|
||||
Handle(Geom_SweptSurface) &SS)
|
||||
|
@@ -37,7 +37,7 @@ class ShapeCustom_SweptToElementary;
|
||||
DEFINE_STANDARD_HANDLE(ShapeCustom_SweptToElementary, ShapeCustom_Modification)
|
||||
|
||||
//! implements a modification for the BRepTools
|
||||
//! Modifier algortihm. Converts all elementary
|
||||
//! Modifier algorithm. Converts all elementary
|
||||
//! surfaces into surfaces of revolution.
|
||||
class ShapeCustom_SweptToElementary : public ShapeCustom_Modification
|
||||
{
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
//! <Tol> are not significant.
|
||||
//!
|
||||
//! <NewE> is the new edge created from <E>. <NewF>
|
||||
//! is the new face created from <F>. They may be usefull.
|
||||
//! is the new face created from <F>. They may be useful.
|
||||
Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
|
||||
|
||||
//! Returns Standard_True if the Vertex <V> has a new
|
||||
|
Reference in New Issue
Block a user