nicklockwood / Euclid

A Swift library for creating and manipulating 3D geometry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I convert my own obj/stl file to Mesh

jinxin1203 opened this issue · comments

How can I convert my own obj file to Mesh

If you're using macOS or iOS you can use:

let url = URL(fileURLWithPath: "path/to/mymesh.obj")
let mesh = try Mesh(url: URL, ignoringTransforms: false)