Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
catalyst
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Community
catalyst
Commits
de0f98f4
Commit
de0f98f4
authored
Feb 15, 2019
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
STYLE: use vtk::Tools::Vertices() method
parent
478eeaed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
29 deletions
+2
-29
src/catalyst/cloud/foamVtkCloudAdaptor.C
src/catalyst/cloud/foamVtkCloudAdaptor.C
+2
-29
No files found.
src/catalyst/cloud/foamVtkCloudAdaptor.C
View file @
de0f98f4
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018
-2019
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -46,33 +46,6 @@ namespace vtk
}
// End namespace Foam
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
vtkSmartPointer
<
vtkPolyData
>
Foam
::
vtk
::
cloudAdaptor
::
startLagrangian
(
const
pointField
&
points
)
{
auto
vtkmesh
=
vtkSmartPointer
<
vtkPolyData
>::
New
();
auto
vtkpoints
=
vtkSmartPointer
<
vtkPoints
>::
New
();
vtkpoints
->
SetNumberOfPoints
(
points
.
size
());
vtkIdType
particleId
=
0
;
for
(
const
vector
&
p
:
points
)
{
vtkpoints
->
SetPoint
(
particleId
,
p
.
v_
);
++
particleId
;
}
vtkmesh
->
SetPoints
(
vtkpoints
);
vtkmesh
->
SetVerts
(
vtk
::
Tools
::
identityVertices
(
points
.
size
()));
return
vtkmesh
;
}
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template
<
class
UnaryMatchPredicate
>
...
...
@@ -124,7 +97,7 @@ Foam::vtk::cloudAdaptor::getCloudImpl
vtkSmartPointer
<
vtkPolyData
>
vtkmesh
;
if
(
pointsPtr
)
{
vtkmesh
=
startLagrangian
(
*
pointsPtr
);
vtkmesh
=
vtk
::
Tools
::
Vertices
(
*
pointsPtr
);
// Prevent any possible conversion of positions as a field
obrTmp
.
filterKeys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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