mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
Quantity_Factor, Quantity_Parameter, Quantity_Ratio, Quantity_Coefficient, Quantity_PlaneAngle, Quantity_Length, V3d_Parameter and V3d_Coordinate have been replaced by Standard_Real in visualization classes.
This commit is contained in:
@@ -234,14 +234,14 @@ void DsgPrs::ComputeCurvilinearFacesLengthPresentation( const Standard_Real Firs
|
||||
{
|
||||
GeomAPI_ProjectPointOnSurf ProjectorOnSurface;
|
||||
GeomAPI_ProjectPointOnCurve ProjectorOnCurve;
|
||||
Quantity_Parameter U1, V1, U2, V2;
|
||||
Standard_Real U1, V1, U2, V2;
|
||||
Standard_Real LastU, LastV;
|
||||
Standard_Real SquareTolerance = Precision::SquareConfusion();
|
||||
|
||||
ProjectorOnSurface.Init( AttachmentPoint1, SecondSurf );
|
||||
Standard_Integer Index(1);
|
||||
Quantity_Length MinDist = RealLast();
|
||||
Quantity_Parameter LocalU, LocalV;
|
||||
Standard_Real MinDist = RealLast();
|
||||
Standard_Real LocalU, LocalV;
|
||||
gp_Vec D1U, D1V;
|
||||
gp_Dir LocalDir;
|
||||
for (Standard_Integer i = 1; i <= ProjectorOnSurface.NbPoints(); i++)
|
||||
|
@@ -34,7 +34,6 @@
|
||||
#include <Prs3d_Arrow.hxx>
|
||||
#include <Prs3d_LineAspect.hxx>
|
||||
#include <Prs3d_Presentation.hxx>
|
||||
#include <Quantity_Length.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
@@ -244,7 +243,7 @@ void DsgPrs_ShapeDirPresentation::Add(const Handle(Prs3d_Presentation)& prs,
|
||||
box.Get(c[0],c[1],c[2],c[3],c[4],c[5]);
|
||||
|
||||
gp_Pnt ptmin(c[0], c[1], c[2]), ptmax(c[3], c[4], c[5]);
|
||||
Quantity_Length leng = ptmin.Distance(ptmax)/3.;
|
||||
Standard_Real leng = ptmin.Distance(ptmax)/3.;
|
||||
// mei 19/09/96 extrusion infinie -> taille fixe
|
||||
if (leng >= 20000.) leng = 50;
|
||||
|
||||
|
@@ -119,7 +119,7 @@ void DsgPrs_SymmetricPresentation::Add (const Handle(Prs3d_Presentation)& aPrese
|
||||
gp_Pnt PointMin = ElCLib::Value(parmin,L3);
|
||||
gp_Pnt PointMax = ElCLib::Value(parmax,L3);
|
||||
|
||||
Quantity_Length X,Y,Z;
|
||||
Standard_Real X,Y,Z;
|
||||
Standard_Real D1(aAxis.Distance(AttachmentPoint1)),coeff(.5);
|
||||
gp_Pnt pint,Pj_P1,P1Previous = P1;
|
||||
|
||||
|
Reference in New Issue
Block a user