Skip to content

decompose returns unexpected result #94

Closed
@vk928

Description

@vk928

I wanted to mesh an arbitrary polygons from 3d points. But if provided points are in CW direction, mesh() returns empty or with missing geometry faces. I guess it's because decompose() function returns empty array:

tri_ccw = Point{3,Float64}[(0,0,0,), (1,0,0), (0,1,0)] # points in ccw direction
tri_cw = reverse(tri_ccw) # points in cw direction
@show length(decompose(TriangleFace{Int}, tri_ccw)) == 1 # <- as expected
@show length(decompose(TriangleFace{Int}, tri_cw )) == 1 # <- decompose returns with empty array

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