1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Insert a point in the middle of a diagonal constrained edge, trying to split
# that edge in two.
#
# p1--------p2
# | \ |
# | \ |
# | \ |
# | \ |
# p4--------p3
#
# there should be one split printed, pre and post
print_events yes
# create the initial square
init 0 0 1000 1000
ins_point p1 10 10
ins_point p2 900 10
ins_point p3 900 900
ins_point p4 10 900
# insert the diagonal constrained edge
ins_cedge p1 p3
# insert a point in the center
ins_point 455 455
dump_anim split_cedge.anim
print 1
free
|