displacement detection
[convexer.git] / __init__.py
index 6639af1c360efc78e70c9287c9dec072009b832c..0e4ddd283edf8fbbdf125f4f38b01793ee1dc2fe 100644 (file)
@@ -117,7 +117,8 @@ class cxr_polygon(Structure):
 
 class cxr_edge(Structure):
    _fields_ = [("i0",c_int32),
-               ("i1",c_int32)]
+               ("i1",c_int32),
+               ("freestyle",c_int32)]
 
 class cxr_material(Structure):
    _fields_ = [("res",c_int32 * 2),
@@ -850,6 +851,7 @@ def mesh_cxr_format(obj):
    for i, edge in enumerate(data.edges):
       edge_data[i].i0 = edge.vertices[0]
       edge_data[i].i1 = edge.vertices[1]
+      edge_data[i].freestyle = edge.use_freestyle_mark
 
    material_data = (cxr_material*len(obj.material_slots))()