mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-29 22:41:48 +08:00
Documentation - Fix whitespaces and typos (#824)
- Fixed excessive whitespace in multi-line comments - Corrected spelling errors (e.g., "selectionnable" → "selectable", "begenning" → "beginning") - Improved comment formatting and readability
This commit is contained in:
@@ -29,46 +29,44 @@
|
||||
#include <TopoDS_Face.hxx>
|
||||
class gp_Pnt2d;
|
||||
|
||||
//! Algorithm to build primitives with one axis of
|
||||
//! Algorithm to build primitives with one axis of
|
||||
//! revolution.
|
||||
//!
|
||||
//! The revolution body is described by :
|
||||
//! The revolution body is described by:
|
||||
//!
|
||||
//! A coordinate system (Ax2 from gp). The Z axis is
|
||||
//! A coordinate system (Ax2 from gp). The Z axis is
|
||||
//! the rotational axis.
|
||||
//!
|
||||
//! An Angle around the Axis, When the Angle is 2*PI
|
||||
//! the primitive is not limited by planar faces. The
|
||||
//! An Angle around the Axis, When the Angle is 2*PI
|
||||
//! the primitive is not limited by planar faces. The
|
||||
//! U parameter range from 0 to Angle.
|
||||
//!
|
||||
//! A parameter range VMin, VMax on the meridian.
|
||||
//!
|
||||
//! A meridian : The meridian is a curve described by
|
||||
//! A meridian: The meridian is a curve described by
|
||||
//! a set of deferred methods.
|
||||
//!
|
||||
//! The topology consists of A shell, Faces, Wires,
|
||||
//! Edges and Vertices. Methods are provided to build
|
||||
//! all the elements. Building an element implies the
|
||||
//! automatic building of all its sub-elements.
|
||||
//! The topology consists of A shell, Faces, Wires,
|
||||
//! Edges and Vertices. Methods are provided to build
|
||||
//! all the elements. Building an element implies the
|
||||
//! automatic building of all its sub-elements.
|
||||
//!
|
||||
//! So building the shell builds everything.
|
||||
//!
|
||||
//! There are at most 5 faces :
|
||||
//! There are at most 5 faces:
|
||||
//!
|
||||
//! - The LateralFace.
|
||||
//!
|
||||
//! - The TopFace and the BottomFace.
|
||||
//!
|
||||
//! - The StartFace and the EndFace.
|
||||
class BRepPrim_OneAxis
|
||||
{
|
||||
public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! The MeridianOffset is added to the parameters on
|
||||
//! the meridian curve and to the V values of the
|
||||
//! pcurves. This is used for the sphere for example,
|
||||
//! to give a range on the meridian edge which is not
|
||||
//! The MeridianOffset is added to the parameters on
|
||||
//! the meridian curve and to the V values of the
|
||||
//! pcurves. This is used for the sphere for example,
|
||||
//! to give a range on the meridian edge which is not
|
||||
//! VMin, VMax.
|
||||
Standard_EXPORT void SetMeridianOffset(const Standard_Real MeridianOffset = 0);
|
||||
|
||||
@@ -89,20 +87,20 @@ public:
|
||||
|
||||
Standard_EXPORT void VMax(const Standard_Real V);
|
||||
|
||||
//! Returns a face with no edges. The surface is the
|
||||
//! Returns a face with no edges. The surface is the
|
||||
//! lateral surface with normals pointing outward. The
|
||||
//! U parameter is the angle with the origin on the X
|
||||
//! axis. The V parameter is the parameter of the
|
||||
//! U parameter is the angle with the origin on the X
|
||||
//! axis. The V parameter is the parameter of the
|
||||
//! meridian.
|
||||
Standard_EXPORT virtual TopoDS_Face MakeEmptyLateralFace() const = 0;
|
||||
|
||||
//! Returns an edge with a 3D curve made from the
|
||||
//! meridian in the XZ plane rotated by <Ang> around
|
||||
//! Returns an edge with a 3D curve made from the
|
||||
//! meridian in the XZ plane rotated by <Ang> around
|
||||
//! the Z-axis. Ang may be 0 or myAngle.
|
||||
Standard_EXPORT virtual TopoDS_Edge MakeEmptyMeridianEdge(const Standard_Real Ang) const = 0;
|
||||
|
||||
//! Sets the parametric curve of the edge <E> in the
|
||||
//! face <F> to be the 2d representation of the
|
||||
//! Sets the parametric curve of the edge <E> in the
|
||||
//! face <F> to be the 2d representation of the
|
||||
//! meridian.
|
||||
Standard_EXPORT virtual void SetMeridianPCurve(TopoDS_Edge& E, const TopoDS_Face& F) const = 0;
|
||||
|
||||
@@ -110,72 +108,72 @@ public:
|
||||
//! plane XZ.
|
||||
Standard_EXPORT virtual gp_Pnt2d MeridianValue(const Standard_Real V) const = 0;
|
||||
|
||||
//! Returns True if the point of parameter <V> on the
|
||||
//! Returns True if the point of parameter <V> on the
|
||||
//! meridian is on the Axis. Default implementation is
|
||||
//! Abs(MeridianValue(V).X()) < Precision::Confusion()
|
||||
Standard_EXPORT virtual Standard_Boolean MeridianOnAxis(const Standard_Real V) const;
|
||||
|
||||
//! Returns True if the meridian is closed. Default
|
||||
//! implementation is
|
||||
//! Returns True if the meridian is closed.
|
||||
//! Default implementation is:
|
||||
//! MeridianValue(VMin).IsEqual(MeridianValue(VMax),
|
||||
//! Precision::Confusion())
|
||||
Standard_EXPORT virtual Standard_Boolean MeridianClosed() const;
|
||||
|
||||
//! Returns True if VMax is infinite. Default
|
||||
//! Precision::IsPositiveInfinite(VMax);
|
||||
//! Returns True if VMax is infinite.
|
||||
//! Default Precision::IsPositiveInfinite(VMax);
|
||||
Standard_EXPORT virtual Standard_Boolean VMaxInfinite() const;
|
||||
|
||||
//! Returns True if VMin is infinite. Default
|
||||
//! Precision::IsNegativeInfinite(VMax);
|
||||
//! Returns True if VMin is infinite.
|
||||
//! Default Precision::IsNegativeInfinite(VMax);
|
||||
Standard_EXPORT virtual Standard_Boolean VMinInfinite() const;
|
||||
|
||||
//! Returns True if there is a top face.
|
||||
//! Returns True if there is a top face.
|
||||
//!
|
||||
//! That is neither : VMaxInfinite()
|
||||
//! That is neither: VMaxInfinite()
|
||||
//! MeridianClosed()
|
||||
//! MeridianOnAxis(VMax)
|
||||
Standard_EXPORT virtual Standard_Boolean HasTop() const;
|
||||
|
||||
//! Returns True if there is a bottom face.
|
||||
//! Returns True if there is a bottom face.
|
||||
//!
|
||||
//! That is neither : VMinInfinite()
|
||||
//! That is neither: VMinInfinite()
|
||||
//! MeridianClosed()
|
||||
//! MeridianOnAxis(VMin)
|
||||
Standard_EXPORT virtual Standard_Boolean HasBottom() const;
|
||||
|
||||
//! Returns True if there are Start and End faces.
|
||||
//! Returns True if there are Start and End faces.
|
||||
//!
|
||||
//! That is : 2*PI - Angle > Precision::Angular()
|
||||
//! That is: 2*PI - Angle > Precision::Angular()
|
||||
Standard_EXPORT virtual Standard_Boolean HasSides() const;
|
||||
|
||||
//! Returns the Shell containing all the Faces of the
|
||||
//! Returns the Shell containing all the Faces of the
|
||||
//! primitive.
|
||||
Standard_EXPORT const TopoDS_Shell& Shell();
|
||||
|
||||
//! Returns the lateral Face. It is oriented toward
|
||||
//! Returns the lateral Face. It is oriented toward
|
||||
//! the outside of the primitive.
|
||||
Standard_EXPORT const TopoDS_Face& LateralFace();
|
||||
|
||||
//! Returns the top planar Face. It is Oriented
|
||||
//! Returns the top planar Face. It is Oriented
|
||||
//! toward the +Z axis (outside).
|
||||
Standard_EXPORT const TopoDS_Face& TopFace();
|
||||
|
||||
//! Returns the Bottom planar Face. It is Oriented
|
||||
//! Returns the Bottom planar Face. It is Oriented
|
||||
//! toward the -Z axis (outside).
|
||||
Standard_EXPORT const TopoDS_Face& BottomFace();
|
||||
|
||||
//! Returns the Face starting the slice, it is
|
||||
//! Returns the Face starting the slice, it is
|
||||
//! oriented toward the exterior of the primitive.
|
||||
Standard_EXPORT const TopoDS_Face& StartFace();
|
||||
|
||||
//! Returns the Face ending the slice, it is oriented
|
||||
//! Returns the Face ending the slice, it is oriented
|
||||
//! toward the exterior of the primitive.
|
||||
Standard_EXPORT const TopoDS_Face& EndFace();
|
||||
|
||||
//! Returns the wire in the lateral face.
|
||||
//! Returns the wire in the lateral face.
|
||||
Standard_EXPORT const TopoDS_Wire& LateralWire();
|
||||
|
||||
//! Returns the wire in the lateral face with the
|
||||
//! Returns the wire in the lateral face with the
|
||||
//! start edge.
|
||||
Standard_EXPORT const TopoDS_Wire& LateralStartWire();
|
||||
|
||||
@@ -189,17 +187,17 @@ public:
|
||||
//! Returns the wire in the bottom face.
|
||||
Standard_EXPORT const TopoDS_Wire& BottomWire();
|
||||
|
||||
//! Returns the wire in the start face.
|
||||
//! Returns the wire in the start face.
|
||||
Standard_EXPORT const TopoDS_Wire& StartWire();
|
||||
|
||||
//! Returns the wire in the start face with the
|
||||
//! Returns the wire in the start face with the
|
||||
//! AxisEdge.
|
||||
Standard_EXPORT const TopoDS_Wire& AxisStartWire();
|
||||
|
||||
//! Returns the Wire in the end face.
|
||||
//! Returns the Wire in the end face.
|
||||
Standard_EXPORT const TopoDS_Wire& EndWire();
|
||||
|
||||
//! Returns the Wire in the end face with the
|
||||
//! Returns the Wire in the end face with the
|
||||
//! AxisEdge.
|
||||
Standard_EXPORT const TopoDS_Wire& AxisEndWire();
|
||||
|
||||
@@ -207,10 +205,10 @@ public:
|
||||
//! on +Z of the Axis.
|
||||
Standard_EXPORT const TopoDS_Edge& AxisEdge();
|
||||
|
||||
//! Returns the Edge at angle 0.
|
||||
//! Returns the Edge at angle 0.
|
||||
Standard_EXPORT const TopoDS_Edge& StartEdge();
|
||||
|
||||
//! Returns the Edge at angle Angle. If !HasSides()
|
||||
//! Returns the Edge at angle Angle. If !HasSides()
|
||||
//! the StartEdge and the EndEdge are the same edge.
|
||||
Standard_EXPORT const TopoDS_Edge& EndEdge();
|
||||
|
||||
@@ -218,30 +216,30 @@ public:
|
||||
//! Face.
|
||||
Standard_EXPORT const TopoDS_Edge& StartTopEdge();
|
||||
|
||||
//! Returns the linear Edge between start Face and
|
||||
//! Returns the linear Edge between start Face and
|
||||
//! bottom Face.
|
||||
Standard_EXPORT const TopoDS_Edge& StartBottomEdge();
|
||||
|
||||
//! Returns the linear Edge between end Face and top
|
||||
//! Returns the linear Edge between end Face and top
|
||||
//! Face.
|
||||
Standard_EXPORT const TopoDS_Edge& EndTopEdge();
|
||||
|
||||
//! Returns the linear Edge between end Face and
|
||||
//! Returns the linear Edge between end Face and
|
||||
//! bottom Face.
|
||||
Standard_EXPORT const TopoDS_Edge& EndBottomEdge();
|
||||
|
||||
//! Returns the edge at VMax. If MeridianClosed() the
|
||||
//! Returns the edge at VMax. If MeridianClosed() the
|
||||
//! TopEdge and the BottomEdge are the same edge.
|
||||
Standard_EXPORT const TopoDS_Edge& TopEdge();
|
||||
|
||||
//! Returns the edge at VMin. If MeridianClosed() the
|
||||
//! Returns the edge at VMin. If MeridianClosed() the
|
||||
//! TopEdge and the BottomEdge are the same edge.
|
||||
Standard_EXPORT const TopoDS_Edge& BottomEdge();
|
||||
|
||||
//! Returns the Vertex at the Top altitude on the axis.
|
||||
Standard_EXPORT const TopoDS_Vertex& AxisTopVertex();
|
||||
|
||||
//! Returns the Vertex at the Bottom altitude on the
|
||||
//! Returns the Vertex at the Bottom altitude on the
|
||||
//! axis.
|
||||
Standard_EXPORT const TopoDS_Vertex& AxisBottomVertex();
|
||||
|
||||
@@ -259,7 +257,7 @@ public:
|
||||
Standard_EXPORT virtual ~BRepPrim_OneAxis();
|
||||
|
||||
protected:
|
||||
//! Creates a OneAxis algorithm. <B> is used to build
|
||||
//! Creates a OneAxis algorithm. <B> is used to build
|
||||
//! the Topology. The angle defaults to 2*PI.
|
||||
Standard_EXPORT BRepPrim_OneAxis(const BRepPrim_Builder& B,
|
||||
const gp_Ax2& A,
|
||||
|
||||
@@ -29,16 +29,16 @@ class TopoDS_Shape;
|
||||
class Sweep_NumShape;
|
||||
class TopLoc_Location;
|
||||
|
||||
//! Provides an algorithm to build object by
|
||||
//! Provides an algorithm to build object by
|
||||
//! translation sweep.
|
||||
class BRepSweep_Translation : public BRepSweep_Trsf
|
||||
{
|
||||
public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! Creates a topology by translating <S> with the
|
||||
//! vector <V>. If C is true S Sucomponents are
|
||||
//! copied. If Canonize is true then generated surfaces
|
||||
//! Creates a topology by translating <S> with the
|
||||
//! vector <V>. If C is true S Sucomponents are copied
|
||||
//! If Canonize is true then generated surfaces
|
||||
//! are attempted to be canonized in simple types
|
||||
Standard_EXPORT BRepSweep_Translation(const TopoDS_Shape& S,
|
||||
const Sweep_NumShape& N,
|
||||
@@ -62,8 +62,8 @@ public:
|
||||
Standard_EXPORT TopoDS_Shape MakeEmptyGeneratingEdge(const TopoDS_Shape& aGenE,
|
||||
const Sweep_NumShape& aDirV);
|
||||
|
||||
//! Sets the parameters of the new vertex on the new
|
||||
//! face. The new face and new vertex where generated
|
||||
//! Sets the parameters of the new vertex on the new
|
||||
//! face. The new face and new vertex where generated
|
||||
//! from aGenF, aGenV and aDirV .
|
||||
Standard_EXPORT void SetParameters(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
@@ -71,8 +71,8 @@ public:
|
||||
const TopoDS_Shape& aGenV,
|
||||
const Sweep_NumShape& aDirV);
|
||||
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! from aGenV aDirE, and aDirV.
|
||||
Standard_EXPORT void SetDirectingParameter(const TopoDS_Shape& aNewEdge,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
@@ -80,8 +80,8 @@ public:
|
||||
const Sweep_NumShape& aDirE,
|
||||
const Sweep_NumShape& aDirV);
|
||||
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! from aGenE, aGenV and aDirV .
|
||||
Standard_EXPORT void SetGeneratingParameter(const TopoDS_Shape& aNewEdge,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
@@ -89,16 +89,16 @@ public:
|
||||
const TopoDS_Shape& aGenV,
|
||||
const Sweep_NumShape& aDirV);
|
||||
|
||||
//! Builds the face addressed by [aGenS,aDirS], with
|
||||
//! Builds the face addressed by [aGenS,aDirS], with
|
||||
//! its geometric part, but without subcomponents. The
|
||||
//! couple aGenS, aDirS can be a "generating face and
|
||||
//! a directing vertex" or "a generating edge and a
|
||||
//! directing edge".
|
||||
//! couple aGenS, aDirS can be a "generating face and
|
||||
//! a directing vertex" or "a generating edge and a
|
||||
//! directing edge".
|
||||
Standard_EXPORT TopoDS_Shape MakeEmptyFace(const TopoDS_Shape& aGenS,
|
||||
const Sweep_NumShape& aDirS);
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenF, aGenE and aDirV.
|
||||
Standard_EXPORT void SetPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
const TopAbs_Orientation orien);
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenE, aDirE and aDirV.
|
||||
Standard_EXPORT void SetGeneratingPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
const TopAbs_Orientation orien);
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenE, aDirE and aGenV.
|
||||
Standard_EXPORT void SetDirectingPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -127,15 +127,15 @@ public:
|
||||
const Sweep_NumShape& aDirE,
|
||||
const TopAbs_Orientation orien);
|
||||
|
||||
//! Returns the Orientation of the shell in the solid
|
||||
//! generated by the face aGenS with the edge aDirS.
|
||||
//! It is REVERSED if the surface is swept in the
|
||||
//! Returns the Orientation of the shell in the solid
|
||||
//! generated by the face aGenS with the edge aDirS.
|
||||
//! It is REVERSED if the surface is swept in the
|
||||
//! direction of the normal.
|
||||
Standard_EXPORT TopAbs_Orientation DirectSolid(const TopoDS_Shape& aGenS,
|
||||
const Sweep_NumShape& aDirS);
|
||||
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aSubGenS and aDirS) must be added in aNewShape
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aSubGenS and aDirS) must be added in aNewShape
|
||||
//! (addressed by aGenS and aDirS).
|
||||
Standard_EXPORT Standard_Boolean GGDShapeIsToAdd(const TopoDS_Shape& aNewShape,
|
||||
const TopoDS_Shape& aNewSubShape,
|
||||
@@ -143,8 +143,8 @@ public:
|
||||
const TopoDS_Shape& aSubGenS,
|
||||
const Sweep_NumShape& aDirS) const;
|
||||
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aGenS and aSubDirS) must be added in aNewShape
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aGenS and aSubDirS) must be added in aNewShape
|
||||
//! (addressed by aGenS and aDirS).
|
||||
Standard_EXPORT Standard_Boolean GDDShapeIsToAdd(const TopoDS_Shape& aNewShape,
|
||||
const TopoDS_Shape& aNewSubShape,
|
||||
@@ -152,9 +152,9 @@ public:
|
||||
const Sweep_NumShape& aDirS,
|
||||
const Sweep_NumShape& aSubDirS) const;
|
||||
|
||||
//! In some particular cases the topology of a
|
||||
//! generated face must be composed of independent
|
||||
//! closed wires, in this case this function returns
|
||||
//! In some particular cases the topology of a
|
||||
//! generated face must be composed of independent
|
||||
//! closed wires, in this case this function returns
|
||||
//! true.
|
||||
//! Here it always returns false.
|
||||
Standard_EXPORT Standard_Boolean SeparatedWires(const TopoDS_Shape& aNewShape,
|
||||
@@ -163,18 +163,18 @@ public:
|
||||
const TopoDS_Shape& aSubGenS,
|
||||
const Sweep_NumShape& aDirS) const;
|
||||
|
||||
//! Returns true if aDirS and aGenS addresses a
|
||||
//! resulting Shape. In some specific cases the shape
|
||||
//! can be geometrically inexsistant, then this
|
||||
//! Returns true if aDirS and aGenS addresses a
|
||||
//! resulting Shape. In some specific cases the shape
|
||||
//! can be geometrically inexsistant, then this
|
||||
//! function returns false.
|
||||
Standard_EXPORT Standard_Boolean HasShape(const TopoDS_Shape& aGenS,
|
||||
const Sweep_NumShape& aDirS) const;
|
||||
|
||||
//! Returns always false because here the
|
||||
//! Returns always false because here the
|
||||
//! transformation is a translation.
|
||||
Standard_EXPORT Standard_Boolean IsInvariant(const TopoDS_Shape& aGenS) const;
|
||||
|
||||
//! Returns the Vector of the Prism, if it is an infinite
|
||||
//! Returns the Vector of the Prism, if it is an infinite
|
||||
//! prism the Vec is unitar.
|
||||
Standard_EXPORT gp_Vec Vec() const;
|
||||
|
||||
|
||||
@@ -28,15 +28,15 @@ class TopoDS_Shape;
|
||||
class Sweep_NumShape;
|
||||
|
||||
//! This class is inherited from NumLinearRegularSweep
|
||||
//! to implement the simple swept primitives built
|
||||
//! moving a Shape with a Trsf. It often is possible
|
||||
//! to build the constructed subshapes by a simple
|
||||
//! move of the generating subshapes (shared topology
|
||||
//! and geometry). So two ways of construction are
|
||||
//! proposed :
|
||||
//! to implement the simple swept primitives built
|
||||
//! moving a Shape with a Trsf. It often is possible
|
||||
//! to build the constructed subshapes by a simple
|
||||
//! move of the generating subshapes (shared topology
|
||||
//! and geometry). So two ways of construction are
|
||||
//! proposed:
|
||||
//!
|
||||
//! - sharing basis elements (the generatrice can be
|
||||
//! modified , for example PCurves can be added on
|
||||
//! - sharing basis elements (the generatrice can be
|
||||
//! modified, for example PCurves can be added on
|
||||
//! faces);
|
||||
//!
|
||||
//! - copying everything.
|
||||
@@ -45,7 +45,7 @@ class BRepSweep_Trsf : public BRepSweep_NumLinearRegularSweep
|
||||
public:
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
//! ends the construction of the swept primitive
|
||||
//! ends the construction of the swept primitive
|
||||
//! calling the virtual geometric functions that can't
|
||||
//! be called in the initialize.
|
||||
Standard_EXPORT void Init();
|
||||
@@ -69,17 +69,17 @@ public:
|
||||
Standard_EXPORT virtual TopoDS_Shape MakeEmptyGeneratingEdge(const TopoDS_Shape& aGenE,
|
||||
const Sweep_NumShape& aDirV) = 0;
|
||||
|
||||
//! Sets the parameters of the new vertex on the new
|
||||
//! face. The new face and new vertex where generated
|
||||
//! from aGenF, aGenV and aDirV .
|
||||
//! Sets the parameters of the new vertex on the new
|
||||
//! face. The new face and new vertex where generated
|
||||
//! from aGenF, aGenV and aDirV.
|
||||
Standard_EXPORT virtual void SetParameters(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
const TopoDS_Shape& aGenF,
|
||||
const TopoDS_Shape& aGenV,
|
||||
const Sweep_NumShape& aDirV) = 0;
|
||||
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! from aGenV aDirE, and aDirV.
|
||||
Standard_EXPORT virtual void SetDirectingParameter(const TopoDS_Shape& aNewEdge,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
@@ -87,25 +87,25 @@ public:
|
||||
const Sweep_NumShape& aDirE,
|
||||
const Sweep_NumShape& aDirV) = 0;
|
||||
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! from aGenE, aGenV and aDirV .
|
||||
//! Sets the parameter of the new vertex on the new
|
||||
//! edge. The new edge and new vertex where generated
|
||||
//! from aGenE, aGenV and aDirV.
|
||||
Standard_EXPORT virtual void SetGeneratingParameter(const TopoDS_Shape& aNewEdge,
|
||||
TopoDS_Shape& aNewVertex,
|
||||
const TopoDS_Shape& aGenE,
|
||||
const TopoDS_Shape& aGenV,
|
||||
const Sweep_NumShape& aDirV) = 0;
|
||||
|
||||
//! Builds the face addressed by [aGenS,aDirS], with
|
||||
//! Builds the face addressed by [aGenS,aDirS], with
|
||||
//! its geometric part, but without subcomponents. The
|
||||
//! couple aGenS, aDirS can be a "generating face and
|
||||
//! a directing vertex" or "a generating edge and a
|
||||
//! directing edge".
|
||||
//! couple aGenS, aDirS can be a "generating face and
|
||||
//! a directing vertex" or "a generating edge and a
|
||||
//! directing edge".
|
||||
Standard_EXPORT virtual TopoDS_Shape MakeEmptyFace(const TopoDS_Shape& aGenS,
|
||||
const Sweep_NumShape& aDirS) = 0;
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenF, aGenE and aDirV.
|
||||
Standard_EXPORT virtual void SetPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
const TopAbs_Orientation orien) = 0;
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenE, aDirE and aDirV.
|
||||
Standard_EXPORT virtual void SetGeneratingPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
const TopAbs_Orientation orien) = 0;
|
||||
|
||||
//! Sets the PCurve for a new edge on a new face. The
|
||||
//! new edge and the new face were generated using
|
||||
//! new edge and the new face were generated using
|
||||
//! aGenE, aDirE and aGenV.
|
||||
Standard_EXPORT virtual void SetDirectingPCurve(const TopoDS_Shape& aNewFace,
|
||||
TopoDS_Shape& aNewEdge,
|
||||
@@ -134,8 +134,8 @@ public:
|
||||
const Sweep_NumShape& aDirE,
|
||||
const TopAbs_Orientation orien) = 0;
|
||||
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aSubGenS and aDirS) must be added in aNewShape
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aSubGenS and aDirS) must be added in aNewShape
|
||||
//! (addressed by aGenS and aDirS).
|
||||
Standard_EXPORT virtual Standard_Boolean GGDShapeIsToAdd(const TopoDS_Shape& aNewShape,
|
||||
const TopoDS_Shape& aNewSubShape,
|
||||
@@ -143,8 +143,8 @@ public:
|
||||
const TopoDS_Shape& aSubGenS,
|
||||
const Sweep_NumShape& aDirS) const = 0;
|
||||
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aGenS and aSubDirS) must be added in aNewShape
|
||||
//! Returns true if aNewSubShape (addressed by
|
||||
//! aGenS and aSubDirS) must be added in aNewShape
|
||||
//! (addressed by aGenS and aDirS).
|
||||
Standard_EXPORT virtual Standard_Boolean GDDShapeIsToAdd(
|
||||
const TopoDS_Shape& aNewShape,
|
||||
@@ -153,9 +153,9 @@ public:
|
||||
const Sweep_NumShape& aDirS,
|
||||
const Sweep_NumShape& aSubDirS) const = 0;
|
||||
|
||||
//! In some particular cases the topology of a
|
||||
//! generated face must be composed of independent
|
||||
//! closed wires, in this case this function returns
|
||||
//! In some particular cases the topology of a
|
||||
//! generated face must be composed of independent
|
||||
//! closed wires, in this case this function returns
|
||||
//! true.
|
||||
Standard_EXPORT virtual Standard_Boolean SeparatedWires(const TopoDS_Shape& aNewShape,
|
||||
const TopoDS_Shape& aNewSubShape,
|
||||
@@ -163,25 +163,25 @@ public:
|
||||
const TopoDS_Shape& aSubGenS,
|
||||
const Sweep_NumShape& aDirS) const = 0;
|
||||
|
||||
//! Returns true if aDirS and aGenS addresses a
|
||||
//! resulting Shape. In some specific cases the shape
|
||||
//! can be geometrically inexsistant, then this
|
||||
//! Returns true if aDirS and aGenS addresses a
|
||||
//! resulting Shape. In some specific cases the shape
|
||||
//! can be geometrically inexsistant, then this
|
||||
//! function returns false.
|
||||
Standard_EXPORT virtual Standard_Boolean HasShape(const TopoDS_Shape& aGenS,
|
||||
const Sweep_NumShape& aDirS) const = 0;
|
||||
|
||||
//! Returns true if the geometry of aGenS is not
|
||||
//! Returns true if the geometry of aGenS is not
|
||||
//! modified by the trsf of the BRepSweep Trsf.
|
||||
Standard_EXPORT virtual Standard_Boolean IsInvariant(const TopoDS_Shape& aGenS) const = 0;
|
||||
|
||||
//! Called to propagate the continuity of every vertex
|
||||
//! between two edges of the generating wire aGenS on
|
||||
//! Called to propagate the continuity of every vertex
|
||||
//! between two edges of the generating wire aGenS on
|
||||
//! the generated edge and faces.
|
||||
Standard_EXPORT void SetContinuity(const TopoDS_Shape& aGenS, const Sweep_NumShape& aDirS);
|
||||
|
||||
protected:
|
||||
//! Initialize the Trsf BrepSweep, if aCopy is true
|
||||
//! the basis elements are shared as often as
|
||||
//! Initialize the Trsf BrepSweep, if aCopy is true
|
||||
//! the basis elements are shared as often as
|
||||
//! possible, else everything is copied.
|
||||
Standard_EXPORT BRepSweep_Trsf(const BRep_Builder& aBuilder,
|
||||
const TopoDS_Shape& aGenShape,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
|
||||
//! Gives a simple indexed representation of a
|
||||
//! Gives a simple indexed representation of a
|
||||
//! Directing Edge topology.
|
||||
class Sweep_NumShape
|
||||
{
|
||||
@@ -37,14 +37,14 @@ public:
|
||||
|
||||
//! Creates a new simple indexed edge.
|
||||
//!
|
||||
//! For an Edge : Index is the number of vertices (0,
|
||||
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
||||
//! is a closed edge, BegInf is true if the Edge is
|
||||
//! infinite at the begenning, EndInf is true if the
|
||||
//! For an Edge : Index is the number of vertices (0,
|
||||
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
||||
//! is a closed edge, BegInf is true if the Edge is
|
||||
//! infinite at the beginning, EndInf is true if the
|
||||
//! edge is infinite at the end.
|
||||
//!
|
||||
//! For a Vertex : Index is the index of the vertex in
|
||||
//! the edge (1 or 2), Type is TopAbsVERTEX, all the
|
||||
//! the edge (1 or 2), Type is TopAbsVERTEX, all the
|
||||
//! other fields have no meanning.
|
||||
Standard_EXPORT Sweep_NumShape(const Standard_Integer Index,
|
||||
const TopAbs_ShapeEnum Type,
|
||||
@@ -54,10 +54,10 @@ public:
|
||||
|
||||
//! Reinitialize a simple indexed edge.
|
||||
//!
|
||||
//! For an Edge : Index is the number of vertices (0,
|
||||
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
||||
//! is a closed edge, BegInf is true if the Edge is
|
||||
//! infinite at the begenning, EndInf is true if the
|
||||
//! For an Edge : Index is the number of vertices (0,
|
||||
//! 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
||||
//! is a closed edge, BegInf is true if the Edge is
|
||||
//! infinite at the beginning, EndInf is true if the
|
||||
//! edge is infinite at the end.
|
||||
//!
|
||||
//! For a Vertex : Index is the index of the vertex in
|
||||
|
||||
Reference in New Issue
Block a user