surfaces/test/test01.py
2012-03-19 22:18:02 -06:00

11 lines
208 B
Python

from surf.geometry import Vertex
v1 = Vertex(0.5, 0.25, 1 / 3.0)
v2 = Vertex(1, 1, 1)
print v1, v2, (v1 + v2) / 2
print v1, v2, (v1 + v2) / 2.0
v = sum((v1, v2), Vertex()) / len((v1, v2))
print v, type(v)