-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <vtkProperty.h>
#include <vtkProperty2D.h>
-vtkStandardNewMacro(SVTK_CubeAxesActor2D);
+vtkStandardNewMacro(SVTK_CubeAxesActor2D)
// Instantiate this object.
SVTK_CubeAxesActor2D::SVTK_CubeAxesActor2D()
if ( this->FlyMode == VTK_FLY_CLOSEST_TRIAD )
{
// Loop over points and find the closest point to the camera
- min = VTK_LARGE_FLOAT;
+ min = VTK_FLOAT_MAX;
for (i=0; i < 8; i++)
{
if ( pts[i][2] < min )
double e1[2], e2[2], e3[2];
// Find distance to origin
- d2Min = VTK_LARGE_FLOAT;
+ d2Min = VTK_FLOAT_MAX;
for (i=0; i < 8; i++)
{
d2 = pts[i][0]*pts[i][0] + pts[i][1]*pts[i][1];
// find minimum slope point connected to closest point and on
// right side (in projected coordinates). This is the first edge.
- minSlope = VTK_LARGE_FLOAT;
+ minSlope = VTK_FLOAT_MAX;
for (xIdx=0, i=0; i<3; i++)
{
num = (pts[Conn[idx][i]][1] - pts[idx][1]);