Prevent hardcode enum
This commit is contained in:
@@ -200,8 +200,10 @@ def inflate_boundary(name: str, boundary: list[tuple[float, float]], delta: floa
|
|||||||
c_path[i] = xy[1]
|
c_path[i] = xy[1]
|
||||||
i += 1
|
i += 1
|
||||||
c_delta = ctypes.c_double(delta)
|
c_delta = ctypes.c_double(delta)
|
||||||
c_jt = ctypes.c_int(0)
|
JoinType_Square, JoinType_Round, JoinType_Miter = 0, 1, 2
|
||||||
c_et = ctypes.c_int(0)
|
c_jt = ctypes.c_int(JoinType_Square)
|
||||||
|
EndType_Polygon, EndType_Joined, EndType_Butt, EndType_Square, EndType_Round = 0, 1, 2, 3, 4
|
||||||
|
c_et = ctypes.c_int(EndType_Polygon)
|
||||||
c_miter_limit = ctypes.c_double(2.0)
|
c_miter_limit = ctypes.c_double(2.0)
|
||||||
c_precision = ctypes.c_int(2)
|
c_precision = ctypes.c_int(2)
|
||||||
c_arc_tolerance = ctypes.c_double(0.0)
|
c_arc_tolerance = ctypes.c_double(0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user