Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
05a01e2b
Commit
05a01e2b
authored
Mar 08, 1995
by
Will Schroeder
Browse files
*** empty log message ***
parent
6992bab7
Changes
6
Hide whitespace changes
Inline
Side-by-side
include/Cone.hh
View file @
05a01e2b
...
...
@@ -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
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
]);
void
Evaluate
Gradient
(
float
x
,
float
y
,
float
z
,
float
g
[
3
]);
vlSetVector3Macro
(
Apex
,
float
);
vlGetVectorMacro
(
Apex
,
float
,
3
);
...
...
include/Cylinder.hh
View file @
05a01e2b
...
...
@@ -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
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
]);
void
Evaluate
Gradient
(
float
x
,
float
y
,
float
z
,
float
g
[
3
]);
vlSetMacro
(
Radius
,
float
);
vlGetMacro
(
Radius
,
float
);
...
...
include/Quadric.hh
View file @
05a01e2b
...
...
@@ -33,7 +33,7 @@ public:
// ImplicitFunction interface
float
Evaluate
(
float
x
,
float
y
,
float
z
);
void
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
]);
void
Evaluate
Gradient
(
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
,
...
...
src/Cone.cc
View file @
05a01e2b
...
...
@@ -39,7 +39,7 @@ float vlCone::Evaluate(float x, float y, float z)
// Description
// Evaluate cone normal.
void
vlCone
::
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
])
void
vlCone
::
Evaluate
Gradient
(
float
x
,
float
y
,
float
z
,
float
g
[
3
])
{
}
...
...
src/Cylinder.cc
View file @
05a01e2b
...
...
@@ -38,8 +38,8 @@ float vlCylinder::Evaluate(float x, float y, float z)
}
// Description
// Evaluate cylinder
normal
.
void
vlCylinder
::
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
])
// Evaluate cylinder
function gradient
.
void
vlCylinder
::
Evaluate
Gradient
(
float
x
,
float
y
,
float
z
,
float
g
[
3
])
{
}
...
...
src/Quadric.cc
View file @
05a01e2b
...
...
@@ -61,8 +61,8 @@ void vlQuadric::SetCoefficients(float a[10])
}
// Description
// Evaluate the
normal
to the quadric equation.
void
vlQuadric
::
Evaluate
Normal
(
float
x
,
float
y
,
float
z
,
float
n
[
3
])
// Evaluate the
gradient
to the quadric equation.
void
vlQuadric
::
Evaluate
Gradient
(
float
x
,
float
y
,
float
z
,
float
n
[
3
])
{
float
*
a
=
this
->
Coefficients
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment