mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Get OCCT data
This commit is contained in:
@@ -1031,10 +1031,16 @@ int main(int argc, char** argv) {
|
||||
size_t num_created = 0;
|
||||
|
||||
do {
|
||||
|
||||
|
||||
IfcGeom::Element<real_t> *geom_object = context_iterator.get();
|
||||
|
||||
IfcGeom::Element<real_t> *open_object = context_iterator.get_native();
|
||||
IfcGeom::BRepElement<real_t>*elem = static_cast<IfcGeom::BRepElement<real_t>*>(open_object);
|
||||
const IfcGeom::Representation::BRep& brepmesh = elem->geometry();
|
||||
const IfcGeom::Representation::Serialization *serialization = new IfcGeom::Representation::Serialization(brepmesh);
|
||||
std::string dat = serialization->brep_data();
|
||||
|
||||
|
||||
if (is_tesselated)
|
||||
{
|
||||
serializer->write(static_cast<const IfcGeom::TriangulationElement<real_t>*>(geom_object));
|
||||
|
||||
@@ -93,7 +93,6 @@ void HdfSerializer::writeHeader() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
void HdfSerializer::write(const IfcGeom::TriangulationElement<real_t>* o) {
|
||||
|
||||
std::string guid = o->guid();
|
||||
|
||||
Reference in New Issue
Block a user