Hi
How can I a draw a shape in xz plane using mouse clicks?
The scenario is I want to draw a shape using Shapes of three.js but from the top view on the 3D model (Like a roof of a building). Now shapes allows me to draw lines using THREE.Shape but I can pass only x and y as coordinates. I want it to be dynamic using mouse clicks and y will be constant where as x and z will define the shape.
Would be helpful if you can share a sample code as well.
@Ujwaldeep_Singh
Hi!
Why do you use THREE.Shape for drawing of lines?
Use that set of points from xz-plane in a geometry for THREE.Line or THREE.LineLoop.