Menu

How to extract vertices points (x, y, z) from Ifc file ( BIM Model )?

Help
Mansour
2017-04-17
2020-12-20
  • Mansour

    Mansour - 2017-04-17

    Hi all,

    I am facing a problem in extracting vertices points for a BIM model? could anyone help me in finding coordinates?

     
  • Thomas Krijnen

    Thomas Krijnen - 2017-04-19

    Hi,

    Assuming you want to use Python. You have three options, depending on what you want to accomplish:

    • Extract the raw coordinates, with ifcopenshell.open(...).by_type("IfcCartesianPoint") these will be mostly incoherent and in the coordinate systems of the individual elements.
    • Use PythonOCC and extract vertices using TopExp_Explorer [1]
    • Use the triangulated coordinates from ifcopenshell.geom.create_shape(...).geometry.verts

    [1] http://academy.ifcopenshell.org/using-ifcopenshell-and-pythonocc-to-construct-new-geometry/

    Hope that helps,

    Kind regards,
    Thomas

     
    • Hamid Kiavarz

      Hamid Kiavarz - 2020-12-11

      Hi Thomas, I need the vertix or points) of Ifcwall. I tried to follow your attached link but it is not availabe. Please direct me

      Regards,
      Hamid

       
      • Thomas Krijnen

        Thomas Krijnen - 2020-12-20

        The link is working now. If you have more detailed questions let me know.

         

Log in to post a comment.