mainpyFormex - Support: sr #109154, How to get x and y from...

 
 

sr #109154: How to get x and y from endPoints()?

Submitter:  Klaus Burkart <klausb>
Submitted:  Sat 01 Oct 2016 01:42:57 PM UTC
   
 
Category:  Open discussion Priority:  5 - Normal
Severity:  3 - Normal Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 01 Oct 2016 04:01:52 PM UTC, comment #1: 

You can use indexing: BE[0] gives the first point, BE[0][0] gives the x-coordinate of the point, etc.

Benedict Verhegghe <bverheg>
Group administrator
Sat 01 Oct 2016 01:42:57 PM UTC, original submission:  

I want to close an offset curve with an arc and it "works fine manually". The arc is defined by a starting, center and end point. To get the center point coordinates, I calculate x and y from the start and end point manually.

# Get endpoints of offset curve
BE = B.endPoints()
print(BE)

print out:

[[ 1.04550111  0.14438233  0.        ]
 [ 0.96917546 -0.14829652  0.        ]]

How can I extract the x and y values of the start and end point to compute the center point?

PSx = ?
PSy = ?
PEx = ?
PEy = ?


Klaus Burkart <klausb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by klausb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code