forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2743bea
commit adab9ac
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
drake/perception/estimators/dev/test/tmp_vtk_io_xml_test.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <vtkPolyData.h> | ||
#include <vtkSmartPointer.h> | ||
#include <vtkXMLPolyDataReader.h> | ||
|
||
// Read a point cloud. | ||
// Derived from VTK examples, VTK/Examples/Cxx/...: | ||
// * IO/ReadPolyData | ||
// * IO/WriteVTP | ||
// * PolyData/PointSource | ||
|
||
int main() { | ||
// Read a file that was generated with a random point cloud. | ||
const char* filename = "tmp_vtk_io_xml_test.vtp"; | ||
vtkSmartPointer<vtkXMLPolyDataReader> reader = | ||
vtkSmartPointer<vtkXMLPolyDataReader>::New(); | ||
reader->SetFileName(filename); | ||
reader->Update(); | ||
return 0; | ||
} |
33 changes: 33 additions & 0 deletions
33
drake/perception/estimators/dev/test/tmp_vtk_io_xml_test.vtp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor"> | ||
<PolyData> | ||
<Piece NumberOfPoints="50" NumberOfVerts="1" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0" > | ||
<PointData> | ||
</PointData> | ||
<CellData> | ||
</CellData> | ||
<Points> | ||
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="1.4376629654" RangeMax="4.9799350443" offset="0" /> | ||
</Points> | ||
<Verts> | ||
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="840" /> | ||
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="988" /> | ||
</Verts> | ||
<Lines> | ||
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="1028" /> | ||
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="1044" /> | ||
</Lines> | ||
<Strips> | ||
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="1060" /> | ||
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="1076" /> | ||
</Strips> | ||
<Polys> | ||
<DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="1092" /> | ||
<DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="1108" /> | ||
</Polys> | ||
</Piece> | ||
</PolyData> | ||
<AppendedData encoding="base64"> | ||
_AQAAAACAAABYAgAAYwIAAA==eJwBWAKn/S2VA78RUDs/fP+SQCwhqr5KEb6/JTisv59Jrr/rfo2+ZSe9PhaUvr9Q8fs/wCoqQLtG0z+Nf1m/DmeAQMMOkUBu9ug/uj3XPji3OMBDTitAOJH2P1CuAkCtpgBAG0uDPyFagz0lSLI/AcMiwHSMpL9MMnZA1I6yv7hI/D8gdqa/zrl+Pliamb//QwhAH8snwNqJRcBjPns/SwZFv6F1CL9H/wU+dkKRQGm4EkAQ5G/A0QgivxHKlb9NFGVAWc/GvjsQIT//6oY/A2CFwChWfcDJldy/H1L/P1o8GMAiFiTAQ4VhwPeXDL84+iBASU1bvpUK4b8fDV/Ad/olwGmtMMDYgt4/kWY9vERwf8Ba5u6+bdYSQAnS6D/gjgRAL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