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
Andrew Bauer
VTK
Commits
63d2efef
Commit
63d2efef
authored
Sep 09, 1994
by
Will Schroeder
Browse files
ERR: Fixed memory allocation problem.
parent
8bace968
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/TriF.hh
View file @
63d2efef
...
...
@@ -27,7 +27,7 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
class
vlTriangleFilter
:
public
vlPolyToPolyFilter
{
public:
vlTriangleFilter
()
:
PassVerts
(
0
),
PassLines
(
0
)
{};
vlTriangleFilter
()
:
PassVerts
(
1
),
PassLines
(
1
)
{};
~
vlTriangleFilter
()
{};
char
*
GetClassName
()
{
return
"vlTriangleFilter"
;};
void
PrintSelf
(
ostream
&
os
,
vlIndent
indent
);
...
...
src/TriF.cc
View file @
63d2efef
...
...
@@ -35,7 +35,7 @@ void vlTriangleFilter::Execute()
newPolys
=
new
vlCellArray
();
// approximation
numCells
=
this
->
GetNumberOfPolys
()
+
this
->
GetNumberOfStrips
();
numCells
=
this
->
Input
->
GetNumberOfPolys
()
+
this
->
Input
->
GetNumberOfStrips
();
newPolys
->
Allocate
(
newPolys
->
EstimateSize
(
numCells
,
3
),
3
*
numCells
);
// pass through triangles; triangulate polygons if necessary
...
...
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