how to render the trimmed surface ?

which function is in charge of rendering trimmed surface? shall the trimmed surface be triangulated to mesh and show?
where i can find the algorithm of converting trimmed surface to the mesh?

Sharjith Naramparambath's picture

Create a Topological Face (BRepBuilderAPI_MakeFace) using the surface, create an AIS_Shape and display it in the AIS_InteractiveContext.