-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Change the create object drawer so it can either create a point or an AOI.
-
Back
-
Create a blueprint in create that will include create/point (the existing one) and /create/aoi
-
Params: 1) name, 2) array of 4 point 2D (only X and Y), 3) Z coordinate, 4) optional id
-
Create an EdgedCurve3D and using its Builder add 4 points (X, Y, Z) and create 4 edges
-
Create a new Data entry or if the id is given, update the corresponding entry
-
Return the Data entry id
-
Front
-
Refactor drawer: add small square card to choose to create either single point or AOI
-
Create a form with: 1) the name, 2) 4 rows of 2 number field (for X and Y)
-
On mount: 1) get the bounding box of the front viewer, 2) extract the min and max X/Y to prefill the form (maybe +10%?), 3) get the middle Z coord (not to be displayed but used by the back)
-
On every change in the form, send the new geometry to back and update viewer