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

 
 

sr #108436: prop in Geometry, possible new methods

Submitter:  gianluca de santis <gianlucadesi>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

    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-f8d8.
    Corresponding source code