mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +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;
|
size_t num_created = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
|
|
||||||
IfcGeom::Element<real_t> *geom_object = context_iterator.get();
|
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)
|
if (is_tesselated)
|
||||||
{
|
{
|
||||||
serializer->write(static_cast<const IfcGeom::TriangulationElement<real_t>*>(geom_object));
|
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) {
|
void HdfSerializer::write(const IfcGeom::TriangulationElement<real_t>* o) {
|
||||||
|
|
||||||
std::string guid = o->guid();
|
std::string guid = o->guid();
|
||||||
|
|||||||
Reference in New Issue
Block a user