How is BREP visualized in VTK pipeline?

Cam

Looking around for some CAD
Dear Analysis Situs community,

I am a developer who uses VTK a lot. Recently, I started to think about how to visualize a BREP using VTK rendering pipeline and ended up finding Analysis Situs.
I already tried the binary and the rendering looks amazing! Before I dive into the source, I just want to understand the workflow of visualizing BREP in VTK at the high-level. There were some relevant work done before (https://github.com/Derek-yfqiu/OCCReader) to convert CAD solids into VTK Polydata.
Could someone provide more guideline on this topic? Or where should I start to look in the source code?

Thanks,
Cam
 

Quaoar

Administrator
Staff member
Hello @Cam and welcome here.

Some introduction notes about our pipelines are given here: http://analysissitus.org/features/features_architecture.html#feature-architecture-visualization

All data sources to create vtkPolyData from our domain-specific types, including TopoDS shapes, are here: https://gitlab.com/ssv/AnalysisSitus/-/tree/master/src/asiVisu/sources

To convert B-rep to VTK polygonal data, you only have to mesh the model first with BRepMesh and then map OpenCascade's triangles to VTK cells. The entry point to this functionality is here: https://gitlab.com/ssv/AnalysisSitu...su/sources/asiVisu_ShapeRobustTessellator.cpp

Feel free to ask if anything looks unclear.
 

Cam

Looking around for some CAD
Hello @Cam and welcome here.

Some introduction notes about our pipelines are given here: http://analysissitus.org/features/features_architecture.html#feature-architecture-visualization

All data sources to create vtkPolyData from our domain-specific types, including TopoDS shapes, are here: https://gitlab.com/ssv/AnalysisSitus/-/tree/master/src/asiVisu/sources

To convert B-rep to VTK polygonal data, you only have to mesh the model first with BRepMesh and then map OpenCascade's triangles to VTK cells. The entry point to this functionality is here: https://gitlab.com/ssv/AnalysisSitu...su/sources/asiVisu_ShapeRobustTessellator.cpp

Feel free to ask if anything looks unclear.
Thank you. This is very helpful.
 
Top