Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[CST-MWS] How to get data-points for 2D geometry?

Status
Not open for further replies.

kela3kela

Full Member level 4
Joined
Apr 30, 2009
Messages
191
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,298
Activity points
2,502
Dear Members
Good day to you.

I have the following elliptical shape in CST-MWS. How can I export the complete set of XY date-points for the design rather than the highlighted four points.

Ellipse.png

Awaiting your response,
Best Regards
 

To send only the outline:

1) Send a code which designates row 1.
2) Starting from the left, send column position of each pixel which is turned on.
3) Do the same until you reach the rightmost pixel which is turned on.
4) Your receiving software understands to turn on each pixel listed (not pixels in between).
5) Send a code which designates 'next row'.
6) Etc. Continue to last row of image.

To send the entire blue area:
1) Starting at row 1, send column position of leftmost pixel which is turned on.
2) Send column position of rightmost pixel which is turned on.
3) Your receiving routine 'understands' that all pixels in between are turned on.
4) Continue likewise for all rows.
 

you have the "vertices" of the ellipse - that is the four points

the major axis is the horizontal distance from the left point to the right point. (27)
the minor axis is the vertical distance from the top point to the bottom point. (13)

now it gets interesting:
the semi major axis and the semiminor axis are 1/2 respectively, or a = 13.5 and b = 6.5

the eccentricity is e = square root ( 1 - (b/a)^2 ) or 0.87645

go to this page:

https://en.wikipedia.org/wiki/Ellipse

look for da La Hires method of drawing ellipses

basically x = a cos (theta) and y = b sin (theta), for theta = 0 to 360 degrees
so you can construct the ellipse outline mathematically with as many points as you like
 

supplement:

a point x,y is inside the ellipse if y < b sin (tan inverse (y/x)) AND x < a cos (tan inverse (y/x))

if y = b sin (tan inverse (y/x)) AND x = a cos (tan inverse (y/x)) then x,y is on the ellipse

and if y > b sin (tan inverse (y/x)) OR x > a cos (tan inverse (y/x)) then x,y is outside the ellipse
 

Dear @wwfeldman and @Bradtherad
Thank you for your suggestions. They are indeed informative and knowledgeable.

But I am looking for a solution mostly related to the EM software CST -MWS.
Can you guys assist in this regard.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top