Re: I want to help
Posted by Rallaz on Jan 28, 2014; 4:18pm
URL: https://forum.librecad.org/I-want-to-help-tp5709375p5709434.html
I Dongxu,
Sorry for the delay.
I use "info->list entities"
brief explanation:
pol1: 0,0; 100,0; 50,50; close
pol2 (fake closed): 0,0; 100,0; 50,50; 0,0
Round first & last segment by radius 5:
pol1:
Closed: Yes
Vertices:
in point: X=12.0711 Y=0
in point: X=100 Y=0
in point: X=50 Y=50
in point: X=8.5355 Y=8.5355
curvature: 0.6682
pol2 (bad bug present):
Closed: No
Vertices:
in point: X=12.0711 Y=0
in point: X=100 Y=0
curvature: 0.6682
in point: X=12.0711 Y=0
in point: X=50 Y=50
in point: X=8.5355 Y=8.5355
pol2 (patch aplied & correct pol):
Closed: No
Vertices:
in point: X=12.0711 Y=0
in point: X=100 Y=0
in point: X=50 Y=50
in point: X=8.5355 Y=8.5355
curvature: 0.6682
in point: X=12.0711 Y=0
Or directly read in dxf:
10 => x code
20 => y code
42 => bulge code