I have a problem closing the corners of a "square" of four splines in a script for Qcad. The coordinates of the hitpoints for the splines a the results of a measuring tool; they will become variable in a later stadium.
Code: Select all
//coordinaten voor de raakpunten van de splines
//links
var l=[];
l.push([100,100]);
l.push([105,500]);
l.push([102,1000]);
//boven
var b=[];
b.push([120,1050]);
b.push([500,1060]);
b.push([800,1040]);
//rechts
var r=[];
r.push([900,900]);
r.push([890,600]);
r.push([920,110]);
//onder
var o=[];
o.push([800,75]);
o.push([400,90]);
o.push([130,80]);
// teken fitpoint splines met bovenstaande coordinaten
SplineObjL = addSpline(l, false); // NOTclosed periodic
SplineObjB = addSpline(b, false); // NOTclosed periodic
SplineObjR = addSpline(r, false); // NOTclosed periodic
SplineObjO = addSpline(o, false); // NOTclosed periodic
Using Qcad professional 3.25.2.0 and Windows 10
Does anybody have an idea?