blbllblbl
This commit is contained in:
parent
5cb78e0881
commit
dcc99754b6
18
src/main.cc
18
src/main.cc
@ -44,10 +44,10 @@ int main(int argc, char **argv) {
|
|||||||
vtkNew<DihedralAnglesFilter> dihedralAnglesFilter;
|
vtkNew<DihedralAnglesFilter> dihedralAnglesFilter;
|
||||||
dihedralAnglesFilter->SetInputConnection(tetMeshReader->GetOutputPort());
|
dihedralAnglesFilter->SetInputConnection(tetMeshReader->GetOutputPort());
|
||||||
|
|
||||||
vtkNew<vtkXMLPolyDataReader> polyMeshReader;
|
// vtkNew<vtkXMLPolyDataReader> polyMeshReader;
|
||||||
polyMeshReader->SetFileName(argv[2]);
|
|
||||||
// vtkNew<vtkOBJReader> polyMeshReader;
|
|
||||||
// polyMeshReader->SetFileName(argv[2]);
|
// polyMeshReader->SetFileName(argv[2]);
|
||||||
|
vtkNew<vtkOBJReader> polyMeshReader;
|
||||||
|
polyMeshReader->SetFileName(argv[2]);
|
||||||
|
|
||||||
vtkNew<RemoveExternalCellsFilter> removeExternalCellsFilter;
|
vtkNew<RemoveExternalCellsFilter> removeExternalCellsFilter;
|
||||||
removeExternalCellsFilter->SetInputConnection(0,
|
removeExternalCellsFilter->SetInputConnection(0,
|
||||||
@ -55,12 +55,16 @@ int main(int argc, char **argv) {
|
|||||||
removeExternalCellsFilter->SetInputConnection(1,
|
removeExternalCellsFilter->SetInputConnection(1,
|
||||||
polyMeshReader->GetOutputPort());
|
polyMeshReader->GetOutputPort());
|
||||||
|
|
||||||
// vtkNew<ProjectSurfacePointsOnPoly> project;
|
vtkNew<SurfacePointsFilter> surfacePointsFilter;
|
||||||
// project->SetInputConnection(0, removeExternalCellsFilter->GetOutputPort());
|
surfacePointsFilter->SetInputConnection(
|
||||||
// project->SetInputConnection(1, pdReader->GetOutputPort());
|
removeExternalCellsFilter->GetOutputPort());
|
||||||
|
|
||||||
|
vtkNew<ProjectSurfacePointsOnPoly> project;
|
||||||
|
project->SetInputConnection(0, surfacePointsFilter->GetOutputPort());
|
||||||
|
project->SetInputConnection(1, polyMeshReader->GetOutputPort());
|
||||||
|
|
||||||
vtkNew<vtkXMLUnstructuredGridWriter> writer;
|
vtkNew<vtkXMLUnstructuredGridWriter> writer;
|
||||||
writer->SetInputConnection(removeExternalCellsFilter->GetOutputPort());
|
writer->SetInputConnection(project->GetOutputPort());
|
||||||
writer->SetDataModeToAscii();
|
writer->SetDataModeToAscii();
|
||||||
writer->SetFileName("out.vtu");
|
writer->SetFileName("out.vtu");
|
||||||
writer->Write();
|
writer->Write();
|
||||||
|
Loading…
Reference in New Issue
Block a user