-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
As you know, most of 3D applications in C# are using struct
for Vertex
or Vector
. Because it does not generate garbage at all in most cases.
However, In this situation, cannot access the member X, Y, Z with byte offset. Such as 0 for X, 1 for Y etc. If really need to access the member by index and must avoid switch
, use array instead even though it will be a garbage.
I wonder that, the MIConvexHull really need array for the vertex?
I can see the IVertex
interface. It should work as reference and a struct
will be boxed which has implemented the interface.
But, should avoid boxing/unboxing as well in performance critical situation.
I suggest that adding a struct Vertex
the MIConvexHull own, or use a single double
collection for whole vertices.
Metadata
Metadata
Assignees
Labels
No labels