1
$\begingroup$

Is there a way to create a plane by click dragging in the view port? I'm trying to defining the plane using 2 corners interactively.

$\endgroup$
2

1 Answer 1

-3
$\begingroup$

So, are you wanting to draw a diagonal line and it generate a rectangle? You'll have to write a script for that by using the Pythagorean theorem. But you can't determine a rectangle knowing it's diagonal length only. You must also know the width to length ratio because one diagonal length can have infinite variations of a rectangle. So, unless you want a hard coded width to length ratio, every time you draw your line you'll have to employ the extra step of determining the ratio by determining the slope of the line on an XY coordinate.

Example:

(X,Y)+(X౽,Y౽)= diagonal line

(X౽,Y౽-Y) = Other X vertex

(X౽-X,Y౽)= Other Y vertex

(X,Y)+(X౽,Y౽)+(X౽,Y౽-Y)+(X౽-X,Y౽)= rectangle

$\endgroup$
5
  • $\begingroup$ Could you give more concrete indications? This is of no help regarding the question. $\endgroup$
    – lemon
    Commented Apr 22, 2017 at 16:47
  • $\begingroup$ First of all, his question was simply asking if you can make a plane by drawing a line. I answered it by stating he needs to write a script for that. If​ anything his question is a candidate for deletion for being vague and yet I went above and beyond to show him the math behind solving the problem. Should I develop the script for him too? You​ are not using the down vote as intended. $\endgroup$ Commented Apr 22, 2017 at 18:47
  • $\begingroup$ @LetTheWritersWrite to be clear I DVed your answer, because it is plane wrong. You are not thinking of it the same way the OP is. Look at how sketchup does it as an example. $\endgroup$
    – David
    Commented Apr 28, 2017 at 12:49
  • 2
    $\begingroup$ @David "plane" wrong? Intended pun? ;-) $\endgroup$ Commented Apr 29, 2017 at 2:15
  • $\begingroup$ "plane" wrong you guys kill me... sorry for the unclear wording, but yes the sketchup / Modo way of dragging out a plane is what I am looking for. $\endgroup$ Commented Jun 6, 2017 at 3:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .