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

 
 

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

Submitted by:  Klaus Burkart <klausb>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5