return gp_Parab(to3d(Pl,P.Axis()),P.Focal());
}
-static gp_Vec SetLinearForm(const gp_Vec2d DW, const gp_Vec2d D2W,const gp_Vec2d D3W,
- const gp_Vec D1U, const gp_Vec D1V, const gp_Vec D2U,
- const gp_Vec D2V, const gp_Vec D2UV, const gp_Vec D3U,
- const gp_Vec D3V, const gp_Vec D3UUV,const gp_Vec D3UVV)
+static gp_Vec SetLinearForm(const gp_Vec2d& DW, const gp_Vec2d& D2W, const gp_Vec2d& D3W,
+ const gp_Vec& D1U, const gp_Vec& D1V, const gp_Vec& D2U,
+ const gp_Vec& D2V, const gp_Vec& D2UV, const gp_Vec& D3U,
+ const gp_Vec& D3V, const gp_Vec& D3UUV,const gp_Vec& D3UVV)
{gp_Vec V31, V32, V33, V34,V3 ;
V31.SetLinearForm(DW.X(),D1U,
D2W.X()*DW.X(),D2U,
//purpose :
//=======================================================================
static void ProjectPointOnCurve(const Standard_Real InitValue,
- const gp_Pnt APoint,
+ const gp_Pnt& APoint,
const Standard_Real Tolerance,
const Standard_Integer NumIteration,
const Adaptor3d_Curve& Curve,
Standard_EXPORT void UpdateEdgeTolerance(const Standard_Integer nE,
const Standard_Real aTolNew);
- Standard_EXPORT void RemovePaveBlocks(const TColStd_MapOfInteger theEdges);
+ Standard_EXPORT void RemovePaveBlocks(const TColStd_MapOfInteger& theEdges);
Standard_EXPORT void CorrectToleranceOfSE();
//function : RemovePaveBlocks
//purpose :
//=======================================================================
-void BOPAlgo_PaveFiller::RemovePaveBlocks(const TColStd_MapOfInteger theEdges)
+void BOPAlgo_PaveFiller::RemovePaveBlocks(const TColStd_MapOfInteger& theEdges)
{
// Remove all pave blocks referring to input edges:
//
theParams.Append (theParMax);
}
-static void fillPoints (const BRepAdaptor_Curve& theCurve,
- const NCollection_Vector<Standard_Real> theParams,
- TColgp_SequenceOfPnt& thePoints,
- TColStd_SequenceOfReal& theWeights)
+static void fillPoints (const BRepAdaptor_Curve& theCurve,
+ const NCollection_Vector<Standard_Real>& theParams,
+ TColgp_SequenceOfPnt& thePoints,
+ TColStd_SequenceOfReal& theWeights)
{
Standard_Real aDistPrev = 0., aDistNext;
gp_Pnt aPPrev (theCurve.Value (theParams (0))), aPNext;
//purpose :
//=======================================================================
static Handle(Geom2d_Curve) Project(const Handle(Geom_Curve)& M,
- const gp_Ax3 Axis)
+ const gp_Ax3& Axis)
{
Handle(Geom2d_Curve) C;
C = GeomProjLib::Curve2d(M,new Geom_Plane(Axis));
//function : operator << (gp_Pnt)
//purpose :
//=======================================================================
-Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P)
+Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt& P)
{
BinTools::PutReal (OS, P.X());
BinTools::PutReal (OS, P.Y());
class gp_Pnt;
//! Writes to the stream a gp_Pnt data
-Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt P);
+Standard_OStream& operator << (Standard_OStream& OS, const gp_Pnt& P);
//! Computes a hash code for the given value of the uint64_t type, in range [1, theUpperBound]
inline Standard_Integer HashCode (const uint64_t theValue, const Standard_Integer theUpperBound)
//function : Bnd_Box
//purpose :
//=======================================================================
-Bnd_Box::Bnd_Box (const gp_Pnt theMin, const gp_Pnt theMax)
+Bnd_Box::Bnd_Box (const gp_Pnt& theMin, const gp_Pnt& theMax)
: Gap (0.0)
{
SetVoid();
//! Creates a bounding box, it contains:
//! - minimum/maximum point of bounding box,
//! The constructed box is qualified Void. Its gap is null.
- Standard_EXPORT Bnd_Box (const gp_Pnt theMin, const gp_Pnt theMax);
+ Standard_EXPORT Bnd_Box (const gp_Pnt& theMin, const gp_Pnt& theMax);
//! Sets this bounding box so that it covers the whole of 3D space.
//! It is infinitely long in all directions.
private:
SurfMaxMinCoord & operator = (const SurfMaxMinCoord & theOther);
- Standard_Boolean CheckInputData(const math_Vector theParams)
+ Standard_Boolean CheckInputData(const math_Vector& theParams)
{
if (theParams(1) < myUMin ||
theParams(1) > myUMax ||
// <tol> from <Param>, check points between <Pf> and <Pl>
//=======================================================================
-static Standard_Boolean IsShrink(const Geom2dAdaptor_Curve PC,
- const Standard_Real Pf,
- const Standard_Real Pl,
- const Standard_Real Param,
- const Standard_Boolean isU,
- const Standard_Real tol)
+static Standard_Boolean IsShrink(const Geom2dAdaptor_Curve& PC,
+ const Standard_Real Pf,
+ const Standard_Real Pl,
+ const Standard_Real Param,
+ const Standard_Boolean isU,
+ const Standard_Real tol)
{
switch (PC.GetType()) {
case GeomAbs_Line: {
// la distance de PntD par rapport au plan passant par les trois
// points PntA, PntB, PntC
//=======================================================================
-static Standard_Boolean CoPlanar(const gp_Pnt PntA,
- const gp_Pnt PntB,
- const gp_Pnt PntC,
- const gp_Pnt PntD)
+static Standard_Boolean CoPlanar(const gp_Pnt& PntA,
+ const gp_Pnt& PntB,
+ const gp_Pnt& PntC,
+ const gp_Pnt& PntD)
{
gp_Vec vecAB(PntA, PntB);
gp_Vec vecAC(PntA, PntC);
//purpose :
//=======================================================================
-static void Print(const gp_Pnt P,
- Standard_OStream& OS,
- const Standard_Boolean compact)
+static void Print(const gp_Pnt& P,
+ Standard_OStream& OS,
+ const Standard_Boolean compact)
{
OS << P.X();
if (!compact) OS << ",";
//purpose :
//=======================================================================
-static void Print(const gp_Dir D,
- Standard_OStream& OS,
- const Standard_Boolean compact)
+static void Print(const gp_Dir& D,
+ Standard_OStream& OS,
+ const Standard_Boolean compact)
{
OS << D.X();
if (!compact) OS << ",";
//purpose :
//=======================================================================
-static void Print(const gp_Pnt P,
- Standard_OStream& OS,
- const Standard_Boolean compact)
+static void Print(const gp_Pnt& P,
+ Standard_OStream& OS,
+ const Standard_Boolean compact)
{
OS << P.X();
if (!compact) OS << ",";
//purpose :
//=======================================================================
-static void Print(const gp_Dir D,
- Standard_OStream& OS,
- const Standard_Boolean compact)
+static void Print(const gp_Dir& D,
+ Standard_OStream& OS,
+ const Standard_Boolean compact)
{
OS << D.X();
if (!compact) OS << ",";
}
//-----------------------------------------------------------------------------
-void Coord_Ancien_Repere(Standard_Real& x1,Standard_Real& y1,const gp_Ax2d Dir1) {
+void Coord_Ancien_Repere(Standard_Real& x1,
+ Standard_Real& y1,
+ const gp_Ax2d& Dir1)
+{
Standard_Real t11,t12,t21,t22,t13,t23;
Standard_Real x0,y0;
void Traitement_Points_Confondus(Standard_Integer& nb_pts
,IntAna2d_IntPoint *pts);
-void Coord_Ancien_Repere(Standard_Real& Ancien_X,Standard_Real& Ancien_Y
- ,const gp_Ax2d Axe_Nouveau_Repere);
+void Coord_Ancien_Repere(Standard_Real& Ancien_X,
+ Standard_Real& Ancien_Y,
+ const gp_Ax2d& Axe_Nouveau_Repere);
#endif
return (domain.HasFirstPoint() && domain.HasLastPoint());
}
-static Standard_Boolean SET_BOUNDED_DOMAIN(const IntRes2d_Domain domain,
- Standard_Real& binf,
- Standard_Real& tolinf,
- gp_Pnt2d& Pntinf,
- Standard_Real& bsup,
- Standard_Real& tolsup,
- gp_Pnt2d& Pntsup)
+static Standard_Boolean SET_BOUNDED_DOMAIN(const IntRes2d_Domain& domain,
+ Standard_Real& binf,
+ Standard_Real& tolinf,
+ gp_Pnt2d& Pntinf,
+ Standard_Real& bsup,
+ Standard_Real& tolsup,
+ gp_Pnt2d& Pntsup)
{
if(domain.HasFirstPoint()) {
if(binf<domain.FirstParameter()) {
// of myPlane.
//=======================================================================
-static gp_Pnt2d EvalPnt2d( const gp_Pnt P, const gp_Pln& Pl)
+static gp_Pnt2d EvalPnt2d(const gp_Pnt& P,
+ const gp_Pln& Pl)
{
gp_Vec OP( Pl.Location(),P);
return gp_Pnt2d( OP.Dot(gp_Vec(Pl.Position().XDirection())),
// \ Z = sinV V = ASin( Z)
//=======================================================================
-static gp_Pnt2d EvalPnt2d( const gp_Vec P, const gp_Sphere& Sp)
+static gp_Pnt2d EvalPnt2d(const gp_Vec& P,
+ const gp_Sphere& Sp)
{
Standard_Real X = P.Dot(gp_Vec(Sp.Position().XDirection()));
Standard_Real Y = P.Dot(gp_Vec(Sp.Position().YDirection()));
//purpose : Note: this function does not add anything to model
//=======================================================================
Handle(StepDimTol_HArray1OfDatumReferenceModifier) STEPCAFControl_GDTProperty::
- GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence theModifiers,
- const XCAFDimTolObjects_DatumModifWithValue theModifWithVal,
+ GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence& theModifiers,
+ const XCAFDimTolObjects_DatumModifWithValue& theModifWithVal,
const Standard_Real theValue,
const StepBasic_Unit theUnit)
{
Standard_EXPORT static StepDimTol_GeometricToleranceModifier GetGeomToleranceModifier(const XCAFDimTolObjects_GeomToleranceModif theModifier);
- Standard_EXPORT static Handle(StepDimTol_HArray1OfDatumReferenceModifier) GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence theModifiers,
- const XCAFDimTolObjects_DatumModifWithValue theModifWithVal,
+ Standard_EXPORT static Handle(StepDimTol_HArray1OfDatumReferenceModifier) GetDatumRefModifiers(const XCAFDimTolObjects_DatumModifiersSequence& theModifiers,
+ const XCAFDimTolObjects_DatumModifWithValue& theModifWithVal,
const Standard_Real theValue,
const StepBasic_Unit theUnit);
//function : WritePresentation
//purpose : auxiliary (write annotation plane and presentation)
//======================================================================
-void STEPCAFControl_Writer::WritePresentation(const Handle(XSControl_WorkSession) &WS,
- const TopoDS_Shape thePresentation,
+void STEPCAFControl_Writer::WritePresentation(const Handle(XSControl_WorkSession)& WS,
+ const TopoDS_Shape& thePresentation,
const Handle(TCollection_HAsciiString)& thePrsName,
const Standard_Boolean hasSemantic,
const Standard_Boolean hasPlane,
- const gp_Ax2 theAnnotationPlane,
- const gp_Pnt theTextPosition,
+ const gp_Ax2& theAnnotationPlane,
+ const gp_Pnt& theTextPosition,
const Handle(Standard_Transient) theDimension)
{
if (thePresentation.IsNull())
// necessary entities and link them to already written datum
// in case of multiple features association)
//=======================================================================
-Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSControl_WorkSession) &WS,
- const TDF_LabelSequence theShapeL,
- const TDF_Label theDatumL,
+Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSControl_WorkSession)& WS,
+ const TDF_LabelSequence& theShapeL,
+ const TDF_Label& theDatumL,
const Standard_Boolean isFirstDTarget,
const Handle(StepDimTol_Datum) theWrittenDatum)
{
// label and datum system)
//======================================================================
void STEPCAFControl_Writer::WriteGeomTolerance (const Handle(XSControl_WorkSession) &WS,
- const TDF_LabelSequence theShapeSeqL,
- const TDF_Label theGeomTolL,
+ const TDF_LabelSequence& theShapeSeqL,
+ const TDF_Label& theGeomTolL,
const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
const Handle(StepRepr_RepresentationContext)& theRC)
{
const TDF_Label theLabel, const TopoDS_Shape theShape, Handle(StepRepr_RepresentationContext)& theRC,
Handle(StepAP242_GeometricItemSpecificUsage)& theGISU);
- Standard_EXPORT void WritePresentation(const Handle(XSControl_WorkSession) &WS, const TopoDS_Shape thePresentation,
- const Handle(TCollection_HAsciiString)& thePrsName, const Standard_Boolean hasSemantic, const Standard_Boolean hasPlane,
- const gp_Ax2 theAnnotationPlane, const gp_Pnt theTextPosition, const Handle(Standard_Transient) theDimension);
+ Standard_EXPORT void WritePresentation(const Handle(XSControl_WorkSession)& WS,
+ const TopoDS_Shape& thePresentation,
+ const Handle(TCollection_HAsciiString)& thePrsName,
+ const Standard_Boolean hasSemantic,
+ const Standard_Boolean hasPlane,
+ const gp_Ax2& theAnnotationPlane,
+ const gp_Pnt& theTextPosition,
+ const Handle(Standard_Transient) theDimension);
- Standard_EXPORT Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSession) &WS, const TDF_LabelSequence theShapeL,
- const TDF_Label theDatumL, const Standard_Boolean isFirstDTarget, const Handle(StepDimTol_Datum) theWrittenDatum);
+ Standard_EXPORT Handle(StepDimTol_Datum) WriteDatumAP242(const Handle(XSControl_WorkSession)& WS,
+ const TDF_LabelSequence& theShapeL,
+ const TDF_Label& theDatumL,
+ const Standard_Boolean isFirstDTarget,
+ const Handle(StepDimTol_Datum) theWrittenDatum);
Standard_EXPORT void WriteToleranceZone(const Handle(XSControl_WorkSession) &WS, const Handle(XCAFDimTolObjects_GeomToleranceObject)& theObject,
const Handle(StepDimTol_GeometricTolerance)& theEntity, const Handle(StepRepr_RepresentationContext)& theRC);
- Standard_EXPORT void WriteGeomTolerance(const Handle(XSControl_WorkSession) &WS, const TDF_LabelSequence theShapeSeqL,
- const TDF_Label theGeomTolL, const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
- const Handle(StepRepr_RepresentationContext)& theRC);
+ Standard_EXPORT void WriteGeomTolerance(const Handle(XSControl_WorkSession)& WS,
+ const TDF_LabelSequence& theShapeSeqL,
+ const TDF_Label& theGeomTolL,
+ const Handle(StepDimTol_HArray1OfDatumSystemOrReference)& theDatumSystem,
+ const Handle(StepRepr_RepresentationContext)& theRC);
private:
myStatus=ShapeExtend::EncodeStatus (ShapeExtend_OK);
}
- void DefinePnt (gp_Pnt theFPnt, gp_Pnt theLPnt)
+ void DefinePnt (const gp_Pnt& theFPnt, const gp_Pnt& theLPnt)
{ myFPnt = theFPnt;
myLPnt = theLPnt;
myStatus =ShapeExtend::EncodeStatus (ShapeExtend_OK);
// IsPlanar
//=============================================================================
-static gp_XYZ GetAnyNormal ( gp_XYZ orig )
+static gp_XYZ GetAnyNormal (const gp_XYZ& orig)
{
gp_XYZ Norm;
if ( Abs ( orig.Z() ) < Precision::Confusion() )
//purpose :
//=======================================================================
-static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface AD,
- const gp_Pnt pnt,
- const Standard_Real preci,
- gp_Pnt& proj,
- Standard_Real& param,
- const Standard_Boolean adjustToEnds = Standard_True)
+static Standard_Real ProjectInside(const Adaptor3d_CurveOnSurface& AD,
+ const gp_Pnt& pnt,
+ const Standard_Real preci,
+ gp_Pnt& proj,
+ Standard_Real& param,
+ const Standard_Boolean adjustToEnds = Standard_True)
{
ShapeAnalysis_Curve sac;
Standard_Real dist = sac.Project(AD,pnt,preci,proj,param,adjustToEnds);
//function : ReplaceVertex
//purpose : auxiliary for FixVertexPosition
//=======================================================================
-static TopoDS_Edge ReplaceVertex(const TopoDS_Edge& theEdge,
- const gp_Pnt theP,
+static TopoDS_Edge ReplaceVertex(const TopoDS_Edge& theEdge,
+ const gp_Pnt& theP,
const Standard_Boolean theFwd)
{
TopoDS_Vertex aNewVertex;
//function : IsSamePatch
//purpose : auxiliary
//=======================================================================
-static Standard_Boolean IsSamePatch (const ShapeFix_WireSegment wire,
- const Standard_Integer NU,
- const Standard_Integer NV,
- Standard_Integer &iumin,
- Standard_Integer &iumax,
- Standard_Integer &ivmin,
- Standard_Integer &ivmax,
- const Standard_Boolean extend=Standard_False)
+static Standard_Boolean IsSamePatch (const ShapeFix_WireSegment& wire,
+ const Standard_Integer NU,
+ const Standard_Integer NV,
+ Standard_Integer& iumin,
+ Standard_Integer& iumax,
+ Standard_Integer& ivmin,
+ Standard_Integer& ivmax,
+ const Standard_Boolean extend=Standard_False)
{
// get patch indices for current segment
Standard_Integer jumin, jumax, jvmin, jvmax;
//purpose :
//=======================================================================
-static gp_Pnt2d GetMiddlePoint (const ShapeFix_WireSegment wire,
- const TopoDS_Face face)
+static gp_Pnt2d GetMiddlePoint (const ShapeFix_WireSegment& wire,
+ const TopoDS_Face& face)
{
if(wire.IsVertex()) {
TopoDS_Vertex aV = wire.GetVertex();
#include <TopOpeBRepTool_SC.hxx>
//#include <BRepAdaptor_Curve2d.hxx>
-Standard_EXPORT Standard_Boolean FUN_projPonL(const gp_Pnt& P,const TopOpeBRep_LineInter L,const TopOpeBRep_FacesFiller& FF,
+Standard_EXPORT Standard_Boolean FUN_projPonL(const gp_Pnt& P,const TopOpeBRep_LineInter& L,const TopOpeBRep_FacesFiller& FF,
Standard_Real& paramL)
{
Standard_Boolean paramLdef = Standard_False;
//(const TopoDS_Face& fF,const TopoDS_Edge& E,Standard_Real& splitpar);
//---------------------------------------------
-static Standard_Integer FUN_getG(const gp_Pnt P,const TopOpeBRepDS_ListOfInterference& LI,const Handle(TopOpeBRepDS_HDataStructure) HDS,Standard_Integer& iEinterf)
+static Standard_Integer FUN_getG(const gp_Pnt& P,const TopOpeBRepDS_ListOfInterference& LI,const Handle(TopOpeBRepDS_HDataStructure) HDS,Standard_Integer& iEinterf)
//---------------------------------------------
{
TopOpeBRepDS_ListIteratorOfListOfInterference ILI(LI);
// CASCADE RTTI
DEFINE_STANDARD_RTTI_INLINE(FilledCircle, AIS_InteractiveObject);
- FilledCircle (gp_Pnt theCenter, Standard_Real theRadius);
+ FilledCircle (const gp_Pnt& theCenter, Standard_Real theRadius);
FilledCircle (Handle(Geom_Circle) theCircle);
private:
};
-FilledCircle::FilledCircle(gp_Pnt theCenter, Standard_Real theRadius)
+FilledCircle::FilledCircle(const gp_Pnt& theCenter, Standard_Real theRadius)
{
myCircle = CreateCircle(theCenter, theRadius);
myFilledStatus = Standard_True;
//! Set connection point (for dimesional_size),
//! Set connection point for the first shape (for dimensional_location).
- void SetPoint(const gp_Pnt thePnt) {
+ void SetPoint(const gp_Pnt& thePnt) {
myPnt1 = thePnt;
myHasPoint1 = Standard_True;
}
// Set connection point for the second shape (for dimensional_location only).
- void SetPoint2(const gp_Pnt thePnt) {
+ void SetPoint2(const gp_Pnt& thePnt) {
myPnt2 = thePnt;
myHasPoint2 = Standard_True;
}
//purpose :
//=======================================================================
-void XCAFDimTolObjects_GeomToleranceObject::SetAxis (const gp_Ax2 theAxis)
+void XCAFDimTolObjects_GeomToleranceObject::SetAxis(const gp_Ax2& theAxis)
{
myAxis = theAxis;
myHasAxis = Standard_True;
//! Returns the maximal upper tolerance.
Standard_EXPORT Standard_Real GetMaxValueModifier() const;
- Standard_EXPORT void SetAxis (const gp_Ax2 theAxis);
+ Standard_EXPORT void SetAxis (const gp_Ax2& theAxis);
Standard_EXPORT gp_Ax2 GetAxis() const;
//purpose :
//=======================================================================
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName) const
{
TDF_Label aLabel;
TDF_LabelSequence aClippingPlanes;
//purpose :
//=======================================================================
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName) const
{
TCollection_ExtendedString anExtName = TCollection_ExtendedString(theName->String());
return AddClippingPlane(thePlane, anExtName);
//purpose :
//=======================================================================
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const
{
TDF_Label aLabel = AddClippingPlane(thePlane, theName);
Standard_Integer aCappingVal = (theCapping) ? 1 : 0;
//purpose :
//=======================================================================
-TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const
+TDF_Label XCAFDoc_ClippingPlaneTool::AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const
{
TCollection_ExtendedString anExtName = TCollection_ExtendedString(theName->String());
return AddClippingPlane(thePlane, anExtName, theCapping);
//=======================================================================
void XCAFDoc_ClippingPlaneTool::UpdateClippingPlane(const TDF_Label& theLabel,
- const gp_Pln thePlane, const TCollection_ExtendedString theName) const
+ const gp_Pln& thePlane, const TCollection_ExtendedString theName) const
{
if (theLabel.Father() != Label())
return;
//! Adds a clipping plane definition to a ClippingPlane table and returns
//! its label (returns existing label if the same clipping plane
//! is already defined)
- Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const;
+ Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName, const Standard_Boolean theCapping) const;
//! Adds a clipping plane definition to a ClippingPlane table and returns
//! its label (returns existing label if the same clipping plane
//! is already defined)
- Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const;
+ Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName, const Standard_Boolean theCapping) const;
//! Adds a clipping plane definition to a ClippingPlane table and returns
//! its label (returns existing label if the same clipping plane
//! is already defined)
- Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const TCollection_ExtendedString theName) const;
+ Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const TCollection_ExtendedString theName) const;
//! Adds a clipping plane definition to a ClippingPlane table and returns
//! its label (returns existing label if the same clipping plane
//! is already defined)
- Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln thePlane, const Handle(TCollection_HAsciiString)& theName) const;
+ Standard_EXPORT TDF_Label AddClippingPlane(const gp_Pln& thePlane, const Handle(TCollection_HAsciiString)& theName) const;
//! Removes clipping plane from the ClippingPlane table
//! Return false and do nothing if clipping plane is referenced in at least one View
//! Sets new value of plane and name to the given clipping plane label
//! or do nothing, if the given label is not a clipping plane label
- Standard_EXPORT void UpdateClippingPlane(const TDF_Label& theLabelL, const gp_Pln thePlane, const TCollection_ExtendedString theName) const;
+ Standard_EXPORT void UpdateClippingPlane(const TDF_Label& theLabelL, const gp_Pln& thePlane, const TCollection_ExtendedString theName) const;
//! Set new value of capping for given clipping plane label
Standard_EXPORT void SetCapping(const TDF_Label& theClippingPlaneL, const Standard_Boolean theCapping);
return myType;
}
- void SetProjectionPoint(gp_Pnt thePoint)
+ void SetProjectionPoint(const gp_Pnt& thePoint)
{
myProjectionPoint = thePoint;
}
return myProjectionPoint;
}
- void SetViewDirection(gp_Dir theDirection)
+ void SetViewDirection(const gp_Dir& theDirection)
{
myViewDirection = theDirection;
}
return myViewDirection;
}
- void SetUpDirection(gp_Dir theDirection)
+ void SetUpDirection(const gp_Dir& theDirection)
{
myUpDirection = theDirection;
}
return myGDTPoints->Length();
}
- void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt thePoint)
+ void SetGDTPoint(const Standard_Integer theIndex, const gp_Pnt& thePoint)
{
if (myGDTPoints.IsNull())
return;
//function : TetraCen
//purpose : auxiliary
//=======================================================================
-static gp_XYZ TetraCen(gp_Pnt RefPoint, gp_Pnt Som1, gp_Pnt Som2, gp_Pnt Som3)
+static gp_XYZ TetraCen(const gp_Pnt& RefPoint,
+ const gp_Pnt& Som1,
+ const gp_Pnt& Som2,
+ const gp_Pnt& Som3)
{
gp_XYZ curCentr, plnPnt;
plnPnt = ( Som1.XYZ() + Som2.XYZ() + Som3.XYZ() )/3;