Closed karldd closed 3 years ago
Add support for reconstructing a single profile from a json data in the dataset
reconstruct_profile(sketch_data, sketch_name, profile_id, scale, translate, rotate)
sketch_data
sketch_name
add_sketch()
profile_id
scale
{"x": 0.5, "y": 0.5, "z": 0.5}
translate
{"x": 1, "y": 1, "z":0}
rotate
{"x": 0, "y": 0, "z": 90}
FYI @RodgerLuo
Add support for reconstructing a single profile from a json data in the dataset
API Call
reconstruct_profile(sketch_data, sketch_name, profile_id, scale, translate, rotate)
: Reconstruct a single profile from the provided sketch datasketch_data
: is the sketch entity data structure from the json datasketch_name
: is the name of the sketch to draw the curve in, typically returned fromadd_sketch()
profile_id
: the uuid of the profile to be drawnscale
(optional): scale to apply to the sketch e.g.{"x": 0.5, "y": 0.5, "z": 0.5}
translate
(optional): translation to apply to the sketch e.g.{"x": 1, "y": 1, "z":0}
rotate
(optional): rotation to apply to the sketch in degrees e.g.{"x": 0, "y": 0, "z": 90}
FYI @RodgerLuo