Commit 5e487e6e authored by David Doria's avatar David Doria

STYLE: Changed comments in vtkTriangle and vtkPolygon so that header files do...

STYLE: Changed comments in vtkTriangle and vtkPolygon so that header files do not contain details about implementation.
parent 99d73fba
......@@ -30,7 +30,7 @@
#include "vtkIncrementalPointLocator.h"
#include "vtkSmartPointer.h"
vtkCxxRevisionMacro(vtkPolygon, "1.11");
vtkCxxRevisionMacro(vtkPolygon, "1.12");
vtkStandardNewMacro(vtkPolygon);
//----------------------------------------------------------------------------
......@@ -62,8 +62,12 @@ vtkPolygon::~vtkPolygon()
//----------------------------------------------------------------------------
double vtkPolygon::ComputeArea()
{
double normal[3]; //not used, but required for the following ComputeArea call
return vtkPolygon::ComputeArea(this->GetPoints(), this->GetNumberOfPoints(), this->GetPointIds()->GetPointer(0), normal);
double normal[3]; //not used, but required for the
//following ComputeArea call
return vtkPolygon::ComputeArea(this->GetPoints(),
this->GetNumberOfPoints(),
this->GetPointIds()->GetPointer(0),
normal);
}
......
......@@ -26,7 +26,7 @@
#include "vtkPolygon.h"
#include "vtkQuadric.h"
vtkCxxRevisionMacro(vtkTriangle, "1.10");
vtkCxxRevisionMacro(vtkTriangle, "1.11");
vtkStandardNewMacro(vtkTriangle);
//----------------------------------------------------------------------------
......@@ -50,6 +50,9 @@ vtkTriangle::~vtkTriangle()
}
//----------------------------------------------------------------------------
// This function simply calls the static function:
// vtkTriangle::TriangleArea(double p1[3], double p2[3], double p3[3])
// with the appropriate parameters from the instantiated vtkTriangle.
double vtkTriangle::ComputeArea()
{
double p0[3];
......
......@@ -64,10 +64,7 @@ public:
virtual double *GetParametricCoords();
// Description:
// A convenience function to compute the area of a triangle.
// This function simply calls the static function:
// vtkTriangle::TriangleArea(double p1[3], double p2[3], double p3[3])
// with the appropriate parameters from the instantiated vtkTriangle.
// A convenience function to compute the area of a vtkTriangle.
double ComputeArea();
// Description:
......@@ -122,9 +119,8 @@ public:
double center[3]);
// Description:
// Compute the area of a triangle in 3D. Since this is a static function,
// it can be called without instantiating a vtkTriangle. ComputeArea()
// is provided to compute the area of an already instantiated triangle.
// Compute the area of a triangle in 3D.
// See also vtkTriangle::ComputeArea()
static double TriangleArea(double p1[3], double p2[3], double p3[3]);
// Description:
......
......@@ -57,9 +57,7 @@ IF(VTK_USE_DISPLAY)
IF(VTK_DATA_ROOT)
SET(RenderingTestsWithArguments
${RenderingTestsWithArguments}
SurfacePlusEdges.cxx
TestAreaSelections.cxx
TestLabelPlacementMapper.cxx
TestMultiTexturing.cxx
TestMultiTexturingTransform.cxx
TestScenePicker.cxx
......@@ -74,6 +72,11 @@ IF(VTK_USE_DISPLAY)
)
ENDIF(VTK_DATA_ROOT)
IF(VTK_USE_DISPLAY AND VTK_DATA_ROOT)
SurfacePlusEdges.cxx
TestLabelPlacementMapper.cxx
ENDIF(VTK_USE_DISPLAY AND VTK_DATA_ROOT)
IF (VTK_USE_GLSL_SHADERS)
# Tests testing GLSL Shaders.
SET(RenderingTestsWithArguments
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment