Skip to content

Georeferenced coordinates issue? #16

Open
@vinnividivicci

Description

@vinnividivicci

Hi,

Thanks for this great library, I see a lot of potential!

Right now, I'm trying to use the voxelization to show diffs (added/removed) of geometry between 2 IFC files.

So far, the following is working up until "removed":

file1 = parse("older_file.ifc")
file2 = parse("newer_file.ifc")
all_surfaces_file_1 = create_geometry(file1)
all_surfaces_file_2 = create_geometry(file2)
file1_voxels = voxelize(all_surfaces_file_1)
file2_voxels = voxelize(all_surfaces_file_2)
added = subtract(file2_voxels,file1_voxels)
removed = subtract(file1_voxels,file2_voxels)
export_ifc(file2, added, all_surfaces_file_2, "added.ifc")
export_ifc(file1, removed, all_surfaces_file_1, "removed.ifc")

Although the IFC does export (also tried OBJ and it exports) it ends up in the wrong spot vs the original IFC (both rotation and position are wrong).

Am I missing an option in the script, or does it simply not currently support georeferenced models?

My IFCs are exports from Revit. In my latest tests exported to "Internal Origin".

Thanks for your time,

Vincent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions