cube/mesh library
Functions
-
loadObj(
String fileName, bool normalized, {bool isAsset = true}) → Future< List< Mesh> > - Loading mesh from Wavefront's object file (.obj). Reference:http://paulbourke.net/dataformats/obj/
-
normalizeMesh(
List< Mesh> meshes) → List<Mesh> - Scale the model size to 1
-
normalVector(
Vector3 a, Vector3 b, Vector3 c) → Vector3 - Calculate normal vector
-
packingTexture(
List< Mesh> meshes) → Future<Image?> - Reference:https://observablehq.com/@mourner/simple-rectangle-packing