Open ginkxo opened 4 years ago
Good idea! Unfortunately there's not any functionality for scaling or positioning the triangle soups right now; however, there are a couple ways to achieve what you want:
read_json.h
and perform the necessary operations when importing the triangle corners. See how sphere->center = parse_Vector3d(jobj["center"]);
is used, then apply to tri->corners
.
from the various resources given in A3, if I wanted to do something like place the skull on top of the mirror, or make the skull enormous, is there .json structure e.g. corresponding to scaling or position coordinates for each object? All I can see in the .json files for the "triangle soup" objects is just that they read in .stl files, without specifying anything of where in "space" the resulting triangle mesh version of the .stl object appears