User Activity

  • Modified a comment on discussion Help on IfcOpenShell

    When trying to create a shape from IFC walls, from the attached IFC file, with a snippet like this one: walls = ifc_file.by_type("IfcWall") for wall in walls: print("\nnext wall: ", wall.id) shape_tup = ifcopenshell.geom.create_shape(settings, wall) toposhape = shape_tup.geometry time.sleep(2) I get the error next wall: <bound method entity_instance.id of #39533=IfcWall('0HX8g$B9MrGui5K4mG8N9a',#15,'WALL',$,$,#39520,#39530,'11848ABF-2C95-B543-8B05-504C10217264')> Traceback (most recent call last):...

  • Posted a comment on discussion Help on IfcOpenShell

    When trying to create a shape from IFC walls, from the attached IFC file, with a snippet like this one: walls = ifc_file.by_type("IfcWall") for wall in walls: print("\nnext wall: ", wall.id) shape_tup = ifcopenshell.geom.create_shape(settings, wall) toposhape = shape_tup.geometry time.sleep(2) I get the error next wall: <bound method entity_instance.id of #39533=IfcWall('0HX8g$B9MrGui5K4mG8N9a',#15,'WALL',$,$,#39520,#39530,'11848ABF-2C95-B543-8B05-504C10217264')> Traceback (most recent call last):...

  • Modified a comment on discussion Help on IfcOpenShell

    Hi, yes that helps, especially how to re-apply a transformation has helped! vertices.Value(i + 1).Transformed(trsf) or vertices.Value(i + 1).Transformed(trsf).X() and Y() and Z() Also, using the IfcOpenShell way worked, so I do now have two ways that work, nice! Thanks a lot! Attached is my current version of the mesh script, maybe it helps someone. Your code uses map but I do it the slow(?) way with a for loop, also I did not safeguard against empty handles.

  • Posted a comment on discussion Help on IfcOpenShell

    Hi, yes that helps, especially how to re-apply a transformation has helped! vertices.Value(i + 1).Transformed(trsf) or vertices.Value(i + 1).Transformed(trsf).X() and Y() and Z() Also, using the IfcOpenShell way worked, so I do now have two ways that work, nice! Thanks a lot!

  • Posted a comment on discussion Help on IfcOpenShell

    Hi Thomas, answering late, but still working on this, and I need some more help. I was first trying to solve this with pythonOCC, because we have set USE_PYTHONOCC in the rest of the project, but I am stuck in that direction... https://groups.google.com/forum/#!topic/pythonocc/nPSIpWPG4bQ So, instead, I would now try to get the mesh data without setting USE_PYTHONOCC. Getting the verts worked, but I would also need the indices of the triangles. faces is a list of indices, but that is not the triangles,...

  • Posted a comment on discussion Help on IfcOpenShell

    Hi, I need to mesh a shape (any shape I create from scratch, or e.g. a wall that was read from an ifc file) and was wondering what might be prepared in ifcopenshell-python and/or python-occ. So far, I found this example in python-occ: https://github.com/tpaviot/pythonocc-core/blob/master/examples/core_simple_mesh.py It does not have many comments, but with some adoption I was able to mesh any TopoDS_Shape and print out the values for the vertices and the indices of the triangles. Now I found another...

View All

Personal Data

Username:
smultron
Joined:
2003-02-04 18:54:06
Location:
Berlin / Germany / CEST
Gender:
Male

Projects

  • No projects to display.

Personal Tools