mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
26 lines
796 B
Python
26 lines
796 B
Python
|
|
"""
|
|
NurbsCurveEvaluator-extensions module: contains methods to extend
|
|
functionality of the NurbsCurveEvaluator class
|
|
"""
|
|
|
|
def getKnots(self):
|
|
"""Returns the knot vector as a Python list of floats"""
|
|
knots = []
|
|
for i in range(self.getNumKnots()):
|
|
knots.append(self.getKnot(i))
|
|
return knots
|
|
|
|
def getVertices(self, relTo = None):
|
|
"""Returns the vertices as a Python list of Vec4's, relative
|
|
to the indicated space if given."""
|
|
|
|
verts = []
|
|
if relTo:
|
|
for i in range(self.getNumVertices()):
|
|
verts.append(self.getVertex(i, relTo))
|
|
else:
|
|
for i in range(self.getNumVertices()):
|
|
verts.append(self.getVertex(i))
|
|
return verts
|
|
|