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
VTK
VTK
Commits
80cc1013
Commit
80cc1013
authored
Jun 13, 1994
by
Will Schroeder
Browse files
*** empty log message ***
parent
caa81019
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PolyData.cc
View file @
80cc1013
...
...
@@ -300,10 +300,6 @@ void vlPolyData::BuildCells()
vlCellArray
*
inLines
=
this
->
GetLines
();
vlCellArray
*
inPolys
=
this
->
GetPolys
();
vlCellArray
*
inStrips
=
this
->
GetStrips
();
vlCellArray
*
verts
=
NULL
;
vlCellArray
*
lines
=
NULL
;
vlCellArray
*
polys
=
NULL
;
vlCellArray
*
strips
=
NULL
;
int
i
,
j
;
int
npts
,
*
pts
;
vlIdList
outVerts
(
3
*
MAX_CELL_SIZE
);
...
...
@@ -335,27 +331,27 @@ void vlPolyData::BuildCells()
cells
->
InsertNextCell
(
vlPOINT
,
inVerts
->
GetLocation
(
npts
));
}
for
(
l
ines
->
InitTraversal
();
l
ines
->
GetNextCell
(
npts
,
pts
);
)
for
(
inL
ines
->
InitTraversal
();
inL
ines
->
GetNextCell
(
npts
,
pts
);
)
{
if
(
npts
>
2
)
cells
->
InsertNextCell
(
vlPOLY_LINE
,
l
ines
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlPOLY_LINE
,
inL
ines
->
GetLocation
(
npts
));
else
cells
->
InsertNextCell
(
vlLINE
,
l
ines
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlLINE
,
inL
ines
->
GetLocation
(
npts
));
}
for
(
p
olys
->
InitTraversal
();
p
olys
->
GetNextCell
(
npts
,
pts
);
)
for
(
inP
olys
->
InitTraversal
();
inP
olys
->
GetNextCell
(
npts
,
pts
);
)
{
if
(
npts
==
3
)
cells
->
InsertNextCell
(
vlTRIANGLE
,
p
olys
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlTRIANGLE
,
inP
olys
->
GetLocation
(
npts
));
else
if
(
npts
==
4
)
cells
->
InsertNextCell
(
vlQUAD
,
p
olys
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlQUAD
,
inP
olys
->
GetLocation
(
npts
));
else
cells
->
InsertNextCell
(
vlPOLYGON
,
p
olys
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlPOLYGON
,
inP
olys
->
GetLocation
(
npts
));
}
for
(
s
trips
->
InitTraversal
();
s
trips
->
GetNextCell
(
npts
,
pts
);
)
for
(
inS
trips
->
InitTraversal
();
inS
trips
->
GetNextCell
(
npts
,
pts
);
)
{
cells
->
InsertNextCell
(
vlTRIANGLE_STRIP
,
s
trips
->
GetLocation
(
npts
));
cells
->
InsertNextCell
(
vlTRIANGLE_STRIP
,
inS
trips
->
GetLocation
(
npts
));
}
}
...
...
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