File: split_cedge.cdt

package info (click to toggle)
pcb-rnd 3.1.7b-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,108 kB
  • sloc: ansic: 213,400; yacc: 6,241; sh: 4,698; awk: 3,016; makefile: 2,254; lex: 1,166; python: 519; xml: 261; lisp: 154; tcl: 67; perl: 34; javascript: 6; ruby: 5
file content (31 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (6)
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