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
VTK
VTK
Commits
ad8b970c
Commit
ad8b970c
authored
Feb 13, 2003
by
Will Schroeder
Browse files
ERR:Reworked subdivision
parent
80ecb7a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Common/vtkQuadraticTetra.cxx
View file @
ad8b970c
...
...
@@ -25,7 +25,7 @@
#include
"vtkFloatArray.h"
#include
"vtkObjectFactory.h"
vtkCxxRevisionMacro
(
vtkQuadraticTetra
,
"1.1
1
"
);
vtkCxxRevisionMacro
(
vtkQuadraticTetra
,
"1.1
2
"
);
vtkStandardNewMacro
(
vtkQuadraticTetra
);
// Construct the line with two points.
...
...
@@ -63,9 +63,9 @@ static int TetraFace[4][6] = { {0,1,3,4,8,7}, {1,2,3,5,9,8},
{
2
,
0
,
3
,
6
,
7
,
9
},
{
0
,
2
,
1
,
6
,
5
,
4
}
};
//clip each of the four vertices; the remaining octahedron is
//divided into
two
tetrahedron.
static
int
Tetras
[
6
][
4
]
=
{
{
0
,
4
,
6
,
7
},
{
4
,
1
,
5
,
8
},
{
6
,
5
,
2
,
9
},
{
7
,
8
,
9
,
3
},
{
6
,
4
,
5
,
8
},
{
6
,
9
,
7
,
8
}
};
//divided into
four
tetrahedron.
static
int
Tetras
[
8
][
4
]
=
{
{
0
,
4
,
6
,
7
},
{
4
,
1
,
5
,
8
},
{
6
,
5
,
2
,
9
},
{
7
,
8
,
9
,
3
},
{
6
,
4
,
5
,
8
},
{
6
,
5
,
9
,
8
},
{
6
,
9
,
7
,
8
},
{
6
,
7
,
4
,
8
}
};
vtkCell
*
vtkQuadraticTetra
::
GetEdge
(
int
edgeId
)
{
...
...
@@ -267,7 +267,7 @@ void vtkQuadraticTetra::Contour(float value, vtkDataArray* cellScalars,
vtkCellData
*
inCd
,
vtkIdType
cellId
,
vtkCellData
*
outCd
)
{
for
(
int
i
=
0
;
i
<
6
;
i
++
)
//for each subdivided tetra
for
(
int
i
=
0
;
i
<
8
;
i
++
)
//for each subdivided tetra
{
for
(
int
j
=
0
;
j
<
4
;
j
++
)
//for each of the four vertices of the tetra
{
...
...
@@ -338,7 +338,7 @@ int vtkQuadraticTetra::Triangulate(int vtkNotUsed(index), vtkIdList *ptIds,
pts
->
Reset
();
ptIds
->
Reset
();
for
(
int
i
=
0
;
i
<
6
;
i
++
)
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
for
(
int
j
=
0
;
j
<
4
;
j
++
)
{
...
...
@@ -426,7 +426,7 @@ void vtkQuadraticTetra::Clip(float value, vtkDataArray* cellScalars,
vtkCellData
*
inCd
,
vtkIdType
cellId
,
vtkCellData
*
outCd
,
int
insideOut
)
{
for
(
int
i
=
0
;
i
<
6
;
i
++
)
//for each subdivided tetra
for
(
int
i
=
0
;
i
<
8
;
i
++
)
//for each subdivided tetra
{
for
(
int
j
=
0
;
j
<
4
;
j
++
)
//for each of the four vertices of the tetra
{
...
...
Write
Preview
Supports
Markdown
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