Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Spiros Tsalikis
VTK
Commits
4628736a
Commit
4628736a
authored
1 month ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
vtkXMLUnstructuredDataWriter: remove unused function
parent
e2d374bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IO/XML/vtkXMLUnstructuredDataWriter.cxx
+0
-61
0 additions, 61 deletions
IO/XML/vtkXMLUnstructuredDataWriter.cxx
with
0 additions
and
61 deletions
IO/XML/vtkXMLUnstructuredDataWriter.cxx
+
0
−
61
View file @
4628736a
...
...
@@ -374,67 +374,6 @@ int vtkXMLUnstructuredDataWriter::WriteHeader()
return
1
;
}
namespace
{
struct
FaceStreamVisitor
{
// Insert full cell
template
<
typename
CellStateT
>
vtkIdType
operator
()(
CellStateT
&
state
,
vtkIdTypeArray
*
faceStream
)
{
vtkIdType
count
=
0
;
vtkIdType
NumberOfFaces
=
state
.
GetNumberOfCells
();
count
=
1
+
NumberOfFaces
;
faceStream
->
InsertNextValue
(
NumberOfFaces
);
for
(
vtkIdType
faceNum
=
0
;
faceNum
<
NumberOfFaces
;
++
faceNum
)
{
const
vtkIdType
beginOffset
=
state
.
GetBeginOffset
(
faceNum
);
const
vtkIdType
endOffset
=
state
.
GetEndOffset
(
faceNum
);
const
vtkIdType
nFaceVerts
=
endOffset
-
beginOffset
;
const
auto
facePoints
=
state
.
GetConnectivity
()
->
GetPointer
(
beginOffset
);
faceStream
->
InsertNextValue
(
nFaceVerts
);
count
+=
nFaceVerts
;
for
(
vtkIdType
j
=
0
;
j
<
nFaceVerts
;
++
j
)
{
faceStream
->
InsertNextValue
(
static_cast
<
vtkIdType
>
(
facePoints
[
j
]));
}
}
return
count
;
}
};
}
void
CreateFaceStream
(
vtkCellIterator
*
cellIter
,
vtkIdTypeArray
*
faceStream
,
vtkIdTypeArray
*
faceOffsets
)
{
vtkNew
<
vtkGenericCell
>
cell
;
faceStream
->
Reset
();
faceOffsets
->
Reset
();
vtkIdType
offset
(
0
);
for
(
cellIter
->
InitTraversal
();
!
cellIter
->
IsDoneWithTraversal
();
cellIter
->
GoToNextCell
())
{
vtkIdType
ct
=
cellIter
->
GetCellType
();
if
(
ct
!=
VTK_POLYHEDRON
)
{
faceOffsets
->
InsertNextValue
(
-
1
);
continue
;
}
cellIter
->
GetCell
(
cell
.
GetPointer
());
vtkCell
*
theCell
=
cell
->
GetRepresentativeCell
();
vtkPolyhedron
*
poly
=
vtkPolyhedron
::
SafeDownCast
(
theCell
);
if
(
!
poly
||
!
poly
->
GetNumberOfFaces
())
{
continue
;
}
vtkCellArray
*
faces
=
poly
->
GetCellFaces
();
// create offset in vtkUnstructuredGrid fashion, this will later be converted using ConvertFaces
faceOffsets
->
InsertNextValue
(
offset
);
offset
+=
faces
->
Visit
(
FaceStreamVisitor
{},
faceStream
);
}
}
void
CreatePolyFace
(
vtkCellIterator
*
cellIter
,
vtkCellArray
*
faceArray
,
vtkCellArray
*
polyhedronArray
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment