+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Full Member level 3
    Points: 2,569, Level: 11
    Achievements:
    7 years registered

    Join Date
    Apr 2009
    Posts
    185
    Helped
    4 / 4
    Points
    2,569
    Level
    11

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

    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.

    Click image for larger version. 

Name:	Ellipse.png 
Views:	4 
Size:	7.1 KB 
ID:	153135

    Awaiting your response,
    Best Regards

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 51,696, Level: 55

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,690
    Helped
    2524 / 2524
    Points
    51,696
    Level
    55

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

    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.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 4
    Points: 1,140, Level: 7

    Join Date
    Jan 2019
    Posts
    229
    Helped
    46 / 46
    Points
    1,140
    Level
    7

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

    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



    •   AltAdvertisement

        
       

  4. #4
    Full Member level 4
    Points: 1,140, Level: 7

    Join Date
    Jan 2019
    Posts
    229
    Helped
    46 / 46
    Points
    1,140
    Level
    7

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

    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



  5. #5
    Full Member level 3
    Points: 2,569, Level: 11
    Achievements:
    7 years registered

    Join Date
    Apr 2009
    Posts
    185
    Helped
    4 / 4
    Points
    2,569
    Level
    11

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

    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.



--[[ ]]--