xml input data


i'm using occjava and viewer3D in my project and the input data is an xml file that describes cylindric and parallelpiped geometry with a floor and a ceiling not horizontale...vertex and slops are used.
so my question is: what's the best solution to wrappe this data with the data tacken in charge by opencascade. should i wrappe the xml file to an BRep or step file or should i only build the corresponding opencascade structures and which solution is the easiest one.

Bearloga's picture

In order to write a BREP file you should build a TopoDS_Shape object anyhow. After you have built the shape, writing to BREP is easy by BRepTools::Write(). So your main task is to build the shape from your XML file.