MCPcopy Create free account
hub / github.com/Kitware/VTK / CreateStructuredGrid

Function CreateStructuredGrid

IO/CatalystConduit/vtkConduitToDataObject.cxx:821–832  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

819
820//----------------------------------------------------------------------------
821vtkSmartPointer<vtkStructuredGrid> CreateStructuredGrid(
822 const conduit_cpp::Node& topology, const conduit_cpp::Node& coordset)
823{
824 auto sg = vtkSmartPointer<vtkStructuredGrid>::New();
825
826 sg->SetPoints(CreatePoints(coordset));
827 sg->SetDimensions(
828 topology.has_path("elements/dims/i") ? topology["elements/dims/i"].to_int32() + 1 : 1,
829 topology.has_path("elements/dims/j") ? topology["elements/dims/j"].to_int32() + 1 : 1,
830 topology.has_path("elements/dims/k") ? topology["elements/dims/k"].to_int32() + 1 : 1);
831 return sg;
832}
833
834//----------------------------------------------------------------------------
835vtkSmartPointer<vtkDataSet> CreateMonoShapedUnstructuredGrid(

Callers 1

CreateMeshFunction · 0.70

Calls 4

CreatePointsFunction · 0.70
NewFunction · 0.50
SetPointsMethod · 0.45
SetDimensionsMethod · 0.45

Tested by

no test coverage detected