12 lines
238 B
Python
12 lines
238 B
Python
from __future__ import division
|
|
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)
|