Jump to content

How can I draw straight line when drawing surface component?


---
 Share

Recommended Posts

Hi.

I just wondering how can I draw straight line (line composed right angle) when drawing surface component?

or Is there any method that can draw rectangle at once when drawing surface component?

 

SurfaceComponent.png

Link to comment
Share on other sites

Hi,

I don't know of an option to directly select a rectangle, but you could do the following:

  • Go to the script editor, create a new script, start recording
  • Create a surface component with a roughly rectangular selection, clicking a polygon with four corner points
  • Stop script recording. The creation of the surface component is recorded with its parameters, including the "selection_area" parameter
  • Modify the pixel coordinates for the polygon of that parameter to from a perfect rectangle
  • Delete the original surface component and execute this script

Note that this will only lead to a rectangle in 2D space on this image, so if you are using a 3D system with multiple cameras, and this primary camera does not look at the object in a 90° angle, the resulting 3D data will probably not be rectangular.

Hope that helps ^^

Link to comment
Share on other sites

 Share

×
×
  • Create New...