helppyFormex - Support: sr #108436, prop in Geometry, possible new...

 
 

sr #108436: prop in Geometry, possible new methods

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Fri 08 Nov 2013 11:06:41 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish 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.

 

Fri 08 Nov 2013 11:06:41 AM UTC, original submission:  

To expand the property functionality in Geometry,
it may be a good think to add the following methods in Geometry:

def propCentroids(self):
    """returns centroids of the prop regions"""
    return Coords([s.centroid() for s in self.splitProp()])

   

def propCenters(self):
    """returns centers of the prop regions"""
    return Coords([s.center() for s in self.splitProp()])

def propFirst(self):
    """returns first element of the prop regions"""
    return self.select(unique(self.prop, return_index=True)[1])

What do you think?

gianluca de santis <gianlucadesi>
Project Member

 

(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 gianlucadesi (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