Skip to content

Using faces to index into point vectors no longer produces point vectors #247

Closed
@Kevin-Mattheus-Moerman

Description

@Kevin-Mattheus-Moerman

When for verion >=5.0 we have:

V = Point{3, Float64}[[-1.0, -1.0, -1.0], [-1.0, 1.0, -1.0], [1.0, 1.0, -1.0], [1.0, -1.0, -1.0]]
f = QuadFace{Int64}(1,2,3,4)

Then requesting:

V[f]

Now produces:
Quadrilateral([-1.0, -1.0, -1.0], [-1.0, 1.0, -1.0], [1.0, 1.0, -1.0], [1.0, -1.0, -1.0])

The original (when my compat read: GeometryBasics = "0.3, 0.4") and expected behaviour should return:

4-element StaticArraysCore.SVector{4, Point{3, Float64}} with indices SOneTo(4):
 [-1.0, -1.0, -1.0]
 [-1.0, 1.0, -1.0]
 [1.0, 1.0, -1.0]
 [1.0, -1.0, -1.0]

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