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
Erik Palmer
VTK
Commits
dedc2eaa
Commit
dedc2eaa
authored
10 years ago
by
Robert Maynard
Browse files
Options
Downloads
Patches
Plain Diff
Correct an issue with converting dax data to vtk polydata.
Change-Id: I6b56a2b3f643be8e726b30444c5c103c9d717925
parent
c5333aac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Accelerators/Dax/daxToVtk/DataSetConverters.h
+6
-5
6 additions, 5 deletions
Accelerators/Dax/daxToVtk/DataSetConverters.h
with
6 additions
and
5 deletions
Accelerators/Dax/daxToVtk/DataSetConverters.h
+
6
−
5
View file @
dedc2eaa
...
...
@@ -111,18 +111,19 @@ void convertCells(ContainerTag, GridType& grid, OutputType* output)
//get the portal from the grid.
typedef
typename
GridType
::
CellConnectionsType
::
PortalConstControl
DaxPortalType
;
DaxPortalType
daxPortal
=
grid
.
GetCellConnections
.
GetPortalConstControl
();
DaxPortalType
daxPortal
=
grid
.
GetCellConnections
()
.
GetPortalConstControl
();
//ask the vtkToDax allocator to make us memory
::
vtkToDax
::
vtkAlloc
<
vtkCellArray
,
CellType
::
NUM_POINTS
>
alloc
;
vtkCellArray
*
cells
=
alloc
.
allocate
(
num_cells
+
alloc_size
);
vtkIdType
*
cellPointer
=
cells
->
GetPointer
();
vtkIdType
index
=
0
;
for
(
vtkIdType
i
=
0
;
i
<
num_cells
;
++
i
)
{
*
cellPointer
=
CellType
::
NUM_POINTS
;
++
cellPointer
;
for
(
vtkIdType
j
=
0
;
j
<
CellType
::
NUM_POINTS
;
++
j
,
++
cellPointer
)
for
(
vtkIdType
j
=
0
;
j
<
CellType
::
NUM_POINTS
;
++
j
,
++
cellPointer
,
++
index
)
{
*
cellPointer
=
daxPortal
.
Get
(
index
);
}
...
...
@@ -174,10 +175,10 @@ void convertPoints(ContainerTag, GridType& grid, OutputType* output)
//get the coord portal from the grid.
typedef
typename
GridType
::
PointCoordinatesType
::
PortalConstControl
DaxPortalType
;
DaxPortalType
daxPortal
=
grid
.
GetPointCoordinates
.
GetPortalConstControl
();
DaxPortalType
daxPortal
=
grid
.
GetPointCoordinates
()
.
GetPortalConstControl
();
std
::
copy
(
daxPortal
.
Get
Begin
Iterator
(),
daxPortal
.
Get
End
Iterator
(),
std
::
copy
(
daxPortal
.
GetIterator
Begin
(),
daxPortal
.
GetIterator
End
(),
raw_pts
);
output
->
SetPoints
(
points
);
...
...
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