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
14a14075
Commit
14a14075
authored
Mar 03, 1995
by
Will Schroeder
Browse files
*** empty log message ***
parent
38e36868
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/StrData.cc
View file @
14a14075
...
...
@@ -288,7 +288,7 @@ void vlStructuredData::_GetPointCells(int ptId, vlIdList& cellIds)
{
int
ptDim
[
3
],
cellDim
[
3
];
int
ptLoc
[
3
],
cellLoc
[
3
];
int
i
,
j
,
cellId
,
add
;
int
i
,
j
,
cellId
;
static
int
offset
[
8
][
3
]
=
{{
-
1
,
0
,
0
},
{
-
1
,
-
1
,
0
},
{
-
1
,
-
1
,
-
1
},
{
-
1
,
0
,
-
1
},
{
0
,
0
,
0
},
{
0
,
-
1
,
0
},
{
0
,
-
1
,
-
1
},
{
0
,
0
,
-
1
}};
...
...
@@ -311,16 +311,13 @@ void vlStructuredData::_GetPointCells(int ptId, vlIdList& cellIds)
for
(
j
=
0
;
j
<
8
;
j
++
)
{
for
(
add
=
1
,
i
=
0
;
i
<
3
;
i
++
)
for
(
i
=
0
;
i
<
3
;
i
++
)
{
cellLoc
[
i
]
=
ptLoc
[
i
]
+
offset
[
j
][
i
];
if
(
cellLoc
[
i
]
<
0
||
cellLoc
[
i
]
>=
cellDim
[
i
]
)
{
add
=
0
;
break
;
}
}
if
(
add
)
if
(
i
>=
3
)
//add cell
{
cellId
=
cellLoc
[
0
]
+
cellLoc
[
1
]
*
cellDim
[
0
]
+
cellLoc
[
2
]
*
cellDim
[
0
]
*
cellDim
[
1
];
...
...
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