Skip to content

How to read position coordinates of a non-manifold mesh #503

@afabri

Description

@afabri

In this gist I read a drc file and I want to write the xyz coordinates of the vertices of the first face. The output looks correct for a 2-manifold mesh encoded as .drc file, but the output is wrong for a non-manifold mesh (I produced it with the encoder that converts a ply to a drc file, giving it three triangles that share an edge).

For the two .drc files in drcFiles.zip the output is:

afabri@malevich /cygdrive/c/cgal/git/BGL/test/BGL
$ ./VC2017/draco.exe data/nonmanifold.drc
6.10352e-05 1.00006 0
6.10352e-05 0 0
6.10352e-05 0 1.00006
afabri@malevich /cygdrive/c/cgal/git/BGL/test/BGL
$ ./VC2017/draco.exe data/opentet.drc
0 0 0
0 0 1
0 1 0

I would be glad if anybody could point out what I am doing wrong.

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