Jump to content

How can I draw straight line when drawing surface component?


Recommended Posts

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 ^^

×
×
  • Create New...