Skip to content
This repository was archived by the owner on Aug 14, 2022. It is now read-only.
This repository was archived by the owner on Aug 14, 2022. It is now read-only.

[Research] Normalize mesh with a reference point as origin #30

@LexSong

Description

@LexSong

In my testing fork, I add two scripts to handle mesh normalization.

In normalize_obj.py, the script normalize the mesh with a reference XYZ point instead of the mesh center. Therefore we could normalize several meshes with the same origin and keep their relative position. The script also rotate the mesh with latitude and longitude of the reference point, to align north/south and east/west axes.

To find the reference point, in another script find_obj_mid_point.py, I compute the mesh midpoint by convert mesh vertices to latitude/longitude/altitude and calculate the midpoint's location. The trick here is that we don't have to calculate the midpoint of high resolution mesh. We should use a low resolution mesh instead to avoid unnecessary computation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions