Commit 05a01e2b authored by Will Schroeder's avatar Will Schroeder
Browse files

*** empty log message ***

parent 6992bab7
......@@ -15,7 +15,7 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
// .NAME vlCone - implicit function for a cone
// .SECTION Description
// vlCone computes the implicit function and surface normal for a cone.
// vlCone computes the implicit function and function gradient for a cone.
// vlCone is a concrete implementation of vlImplicitFunction.
#ifndef __vlCone_h
......@@ -32,7 +32,7 @@ public:
// ImplicitFunction interface
float Evaluate(float x, float y, float z);
void EvaluateNormal(float x, float y, float z, float n[3]);
void EvaluateGradient(float x, float y, float z, float g[3]);
vlSetVector3Macro(Apex,float);
vlGetVectorMacro(Apex,float,3);
......
......@@ -15,8 +15,8 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
=========================================================================*/
// .NAME vlCylinder - implicit function for a cylinder
// .SECTION Description
// vlCylinder computes the implicit function and surface normal for a cylinder.
// vlCylinder is a concrete implementation of vlImplicitFunction.
// vlCylinder computes the implicit function and function gradient for
// a cylinder. vlCylinder is a concrete implementation of vlImplicitFunction.
#ifndef __vlCylinder_h
#define __vlCylinder_h
......@@ -32,7 +32,7 @@ public:
// ImplicitFunction interface
float Evaluate(float x, float y, float z);
void EvaluateNormal(float x, float y, float z, float n[3]);
void EvaluateGradient(float x, float y, float z, float g[3]);
vlSetMacro(Radius,float);
vlGetMacro(Radius,float);
......
......@@ -33,7 +33,7 @@ public:
// ImplicitFunction interface
float Evaluate(float x, float y, float z);
void EvaluateNormal(float x, float y, float z, float n[3]);
void EvaluateGradient(float x, float y, float z, float g[3]);
void SetCoefficients(float a[10]);
void SetCoefficients(float a0, float a1, float a2, float a3, float a4,
......
......@@ -39,7 +39,7 @@ float vlCone::Evaluate(float x, float y, float z)
// Description
// Evaluate cone normal.
void vlCone::EvaluateNormal(float x, float y, float z, float n[3])
void vlCone::EvaluateGradient(float x, float y, float z, float g[3])
{
}
......
......@@ -38,8 +38,8 @@ float vlCylinder::Evaluate(float x, float y, float z)
}
// Description
// Evaluate cylinder normal.
void vlCylinder::EvaluateNormal(float x, float y, float z, float n[3])
// Evaluate cylinder function gradient.
void vlCylinder::EvaluateGradient(float x, float y, float z, float g[3])
{
}
......
......@@ -61,8 +61,8 @@ void vlQuadric::SetCoefficients(float a[10])
}
// Description
// Evaluate the normal to the quadric equation.
void vlQuadric::EvaluateNormal(float x, float y, float z, float n[3])
// Evaluate the gradient to the quadric equation.
void vlQuadric::EvaluateGradient(float x, float y, float z, float n[3])
{
float *a=this->Coefficients;
......
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