Class to manage a convex polyhedron.
|
__init__(self,
params,
center,
ref_face_idx,
ref_face_normal_along,
ref_edge_idx,
ref_edge_along)
Create an instance. |
|
|
|
updateShape(self,
vertices)
Update the shape object using the provided vertices. |
|
|
list
|
getVertices(self,
vertices,
scale=1.0)
Create vertex data for the polyhedron, including an option to scale
all vertices using a multiplicative factor. |
|
|
list
|
getFaces(self,
vertices,
all_indices,
num_unique)
Create face data for the polyhedron. |
|
|
|
translateVertices(self,
vertices,
vector)
Translate the vertices by adding the specified vector. |
|
|
float
|
getSurfaceArea(self,
faces)
Return the surface area of the polyhedron. |
|
|
list
|
getReferenceFaces(self,
faces,
num_unique)
Return a list containing the num_unique number of unique faces. |
|
|
list
|
alignPolyhedron(self,
vertices,
face_vector,
face_along,
edge_vector,
edge_along)
Return the polyhedron vertices rotated so as to align the face and
edge vectors. |
|
|
schrodinger.structure.Structure
|
|
|
addPointsToTemplate(self,
points)
Add the specified points to this convex polyhedron's template. |
|
|
|
addAlignmentAxesToTemplate(self)
Add unit vectors that mark the primary and secondary alignment axes
to the template. |
|
|
|
addNormalsToTemplate(self)
Add the normals of this convex polyhedron to its template. |
|
|
two lists of numpy.array
|
getSegmentPlaneIntersections(self,
line_start,
line_end)
Return a two lists (1) of points where the given line segment
intersects the planes containing this polyhedron's faces and (2) the
centers of the faces whose planes are being intersected. |
|
|
|
addSegmentPlaneIntersectionsToTemplate(self,
line_start,
line_end)
Add to this polyhedron's template the intersection points of the
specified line segment and the planes containing the faces. |
|
|
bool
|
pointInside(self,
point)
Return True if the query point is either on or inside of this convex
polyhedron. |
|
|
bool
|
allFacesIntersected(self)
Return True if all faces, not the planes containing those faces but
the actual faces, of this convex polyhedron have been intersected at
least once given all pointInside queries performed thus far. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|