Skip to content

Per vertex metadata #99

@GalaMana

Description

@GalaMana

I find it weird how the meshes and polygons need to share the same metadata. It kinda forces you to have it wrapped in an Option<> which feels unnecessary. ( #31 ) I know I would find use in having separate generics. Maybe even one for vertices. I'm thinking like this: (Simplified)

struct Mesh<Metadata, PerPolygonMetadata, PerVertexMetadata> {
    polygons: Vec<PerPolygonMetadata, PerVertexMetadata>,
    metadata: Metadata,
}

struct Polygon<Metadata, PerVertexMetadata> {
    vertices: Vec<Vertex<PerVertexMetadata>>,
    metadata: Metadata,
}

(I'm new to github. I hope this was clear ^w^)

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