Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
21038f2a
Commit
21038f2a
authored
Apr 08, 2004
by
Ken Martin
Browse files
fix warning remove some unused vars
parent
e429b0ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkPyramid.cxx
View file @
21038f2a
...
...
@@ -25,7 +25,7 @@
#include
"vtkTriangle.h"
#include
"vtkUnstructuredGrid.h"
vtkCxxRevisionMacro
(
vtkPyramid
,
"1.3
7
"
);
vtkCxxRevisionMacro
(
vtkPyramid
,
"1.3
8
"
);
vtkStandardNewMacro
(
vtkPyramid
);
static
const
double
VTK_DIVERGED
=
1.e6
;
...
...
@@ -550,7 +550,7 @@ int vtkPyramid::IntersectWithLine(double p1[3], double p2[3], double tol, double
//----------------------------------------------------------------------------
int
vtkPyramid
::
Triangulate
(
int
vtkNotUsed
(
index
),
vtkIdList
*
ptIds
,
vtkPoints
*
pts
)
{
int
p
[
4
],
i
;
int
i
;
ptIds
->
Reset
();
pts
->
Reset
();
...
...
@@ -567,13 +567,11 @@ int vtkPyramid::Triangulate(int vtkNotUsed(index), vtkIdList *ptIds, vtkPoints *
if
(
diagonal1
<
diagonal2
)
{
p
[
0
]
=
0
;
p
[
1
]
=
1
;
p
[
2
]
=
2
;
p
[
3
]
=
4
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
ptIds
->
InsertId
(
i
,
this
->
PointIds
->
GetId
(
i
));
pts
->
InsertPoint
(
i
,
this
->
Points
->
GetPoint
(
i
));
}
p
[
0
]
=
0
;
p
[
1
]
=
2
;
p
[
2
]
=
3
;
p
[
3
]
=
4
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
ptIds
->
InsertId
(
i
,
this
->
PointIds
->
GetId
(
i
));
...
...
@@ -582,13 +580,11 @@ int vtkPyramid::Triangulate(int vtkNotUsed(index), vtkIdList *ptIds, vtkPoints *
}
else
{
p
[
0
]
=
0
;
p
[
1
]
=
1
;
p
[
2
]
=
3
;
p
[
3
]
=
4
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
ptIds
->
InsertId
(
i
,
this
->
PointIds
->
GetId
(
i
));
pts
->
InsertPoint
(
i
,
this
->
Points
->
GetPoint
(
i
));
}
p
[
0
]
=
1
;
p
[
1
]
=
2
;
p
[
2
]
=
3
;
p
[
3
]
=
4
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
ptIds
->
InsertId
(
i
,
this
->
PointIds
->
GetId
(
i
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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