-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
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^)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels