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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
yijin mao
VTK
Commits
c002e5ce
Commit
c002e5ce
authored
1 year ago
by
Dan Lipsa
Browse files
Options
Downloads
Patches
Plain Diff
We can have non-empty polydata with empty cell array.
This is a polydata that only has points and point arrays.
parent
108123a2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IO/CatalystConduit/vtkConduitSource.cxx
+2
-2
2 additions, 2 deletions
IO/CatalystConduit/vtkConduitSource.cxx
with
2 additions
and
2 deletions
IO/CatalystConduit/vtkConduitSource.cxx
+
2
−
2
View file @
c002e5ce
...
...
@@ -475,10 +475,10 @@ vtkSmartPointer<vtkDataSet> GetMesh(
conduit_cpp
::
Node
connectivity
=
topologyNode
[
"elements/connectivity"
];
const
conduit_cpp
::
DataType
dtype0
=
connectivity
.
dtype
();
const
auto
nb_cells
=
dtype0
.
number_of_elements
();
ug
->
SetPoints
(
CreatePoints
(
coords
));
const
auto
vtk_cell_type
=
GetCellType
(
topologyNode
[
"elements/shape"
].
as_string
());
if
(
nb_cells
>
0
)
{
ug
->
SetPoints
(
CreatePoints
(
coords
));
const
auto
vtk_cell_type
=
GetCellType
(
topologyNode
[
"elements/shape"
].
as_string
());
if
(
vtk_cell_type
==
VTK_POLYHEDRON
)
{
// polyhedra uses O2M and not M2C arrays, so need to process it
...
...
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