T O P I C R E V I E W |
John |
Posted - Mar 16 2013 : 15:16:01 Hello
Both lines and angles can be drawn on a vector canvas via code.
Is there a mechanism to drawn an ellipse on a vector canvas via code by specifying 3 points?
TIA
John
|
3 L A T E S T R E P L I E S (Newest First) |
John |
Posted - Apr 13 2013 : 13:00:47 Hello Fabrizio
I will have the four points of the ellipse representing the intersection of the sides of the ellipse with a Cartesian axis.
I envision the process as follows:
a) The user will place 2 small landmark/ellipse annotations (similar to the imageEn marker demo) on the vector canvas. These will identify one axis of the ellipse that is to be drawn.
b) A third annotation marker will be placed to identify one end of the second axis of the ellipse to be drawn.
c) The fourth point will be derived by calculating a perpendicular line from the third annotation marker to the first axis and extending it an equal distance on the opposite side of first axis.
d) I would then feed these four coordinates to ImageEn to draw the ellipse represented by the coordinates.
I appreciate your efforts and await your reply
John |
fab |
Posted - Apr 12 2013 : 12:04:45 quote: ... can ImageEn draw an ellipse in code given 4 points?
Which points of the ellipse do you have? |
John |
Posted - Apr 08 2013 : 21:48:53 I did not mistype 3, since given 3 of the 4 coordinates of a rectangle, the 4th can be derived. However, let me propose the simpler question - can ImageEn draw an ellipse in code given 4 points?
I am hopeful that this is possible given that: a) ImageEn already has the capability to draw an ellipse as an annotation at run time.
b) The ellipse is drawn on a rectangular background that displays the 4 points representing the corners of the rectangular background.
c) The annotation background also displays the four points of the ellipse representing the intersection of the sides of the ellipse with a Cartesian axis.
Which of these two 4 point groups would be utilized in the drawing function is another question
TIA
John |