Visualize SDK provides the Rcs2Visualize example that demonstrates how you can import and visualize RCS/RCP point clouds. The example implemented as an extension (.tx) module.
There are two main methods of the example:
OdTvDatabaseId OdTvVisualizeRcsFiler::loadFrom(const OdString& filePath, OdTvFilerTimeProfiling* pProfileRes, OdTvResult* rc) const;
— Loads point cloud data to a newly created Visualize database.OdTvModelId OdTvVisualizeRcsFiler::appendFrom(const OdTvDatabaseId& databaseId, const OdString& filePath, OdTvFilerTimeProfiling* pProfileRes, OdTvResult* rc) const;
— Appends point cloud data to the existing visualize database.Both methods use the RcsFileServices library from PointCloud SDK.
For additional info, see the Rcs2Visualize sample application (Visualize/Examples/Rcs2Visualize/ Rcs2Visualize.cpp
).
Using Visualize SDK you can also import and visualize point clouds in other formats.
Visualize SDK provides the PointCloud2Visualize that demonstrates how you can import any unstructured format using on-the-fly conversion to .rcs format. The application is implemented as an extension (.tx) module. It demonstrates usage of OdPointCloudDataSource
during the import of unstructured format like .pts or .xyz.
Right after the data source object is prepared you may use, for example, OdTvEntity::appendRcsPointCloud(OdPointCloudDataSourcePtr, OdString&, OdTvResult*)
method. In the case, a temporary .rcs file would be created on-the-fly while appending a corresponding type of geometry to visualize database.
This temporary .rcs file would be used during the rendering procedure to visualize your unstructured point cloud using all .rcs formats capabilities related to LOD usage.
There are two main methods of the example:
OdTvDatabaseId OdTvVisualizePointCloudFiler::loadFrom(const OdString& filePath, OdTvFilerTimeProfiling* pProfileRes, OdTvResult* rc) const;
OdTvModelId OdTvVisualizePointCloudFiler::appendFrom(const OdTvDatabaseId& databaseId, const OdString& filePath, OdTvFilerTimeProfiling* pProfileRes, OdTvResult* rc) const;
For additional info see the PointCloud2Visualize sample application (Visualize/Examples/PointCloud2Visualize/PointCloud2Visualize.cpp
).
Work with Point Clouds with Visualize SDK
Copyright © 2002 – 2021. Open Design Alliance. All rights reserved.
|