Skip to content

Unclear behavior #204

@AlBabr

Description

@AlBabr

I'm trying to recreate a fragments file out of a triangulated geometry through the following steps: source geometry -> json (according to fragments structure) -> .bin -> .frag
Per every triangle I create a profile in a corresponding mesh -> shells -> profiles section
But the way profile data is interpreted in the viewer is not 100% clear.
File attached contains the folloing block:
profiles: [
{
indices: [
65536, // 0x1 0000
196610, // 0x3 0002
3221356547 // 0xC002 0003
]
},
{
indices: [
262144, // 0x4 0000
327681, // 0x5 0001
3221291010 // 0xC001 0002
]
}
],
which I interpret as
profile 1 - from point 0 move along the edge 1; from point 2 movee along the adge 3; from point 3 move along the edge 2
profile 2 - from point 0 move along edge 4; from point 1 along edge 5; point 2 along edge 1;
edge 1 (points 0-2) is a common edge, so I expect these 2 triangles according to points coordinates to form a rectagle, but I get 2 perpendicular triangles with a ccommon edge, but it's not 0-2.

Playing around with edge numbers in a random manner I made it form a rectangle, but... I feel I'm loosing something of sight. Any help will be very much appreciated.

error.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions