mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 04:45:06 +01:00
fix nurbs to circle reconciliation for boundaries
This commit is contained in:
parent
d5e30734c5
commit
7b01e228ff
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ export function getSketchBoundaries(sceneFace) {
|
|||
let mA = vec.normalize(DA);
|
||||
|
||||
if (veqXYZ(A[0], A[1], 0, B[0], B[1], 0)) {
|
||||
let c = vec.mul(mA, arcRadius);
|
||||
let centripetal = perpXY(vec.mul(mA, arcRadius));
|
||||
let c = vec._add(centripetal, A);
|
||||
boundary.circles.push({
|
||||
c: {x: c[0], y: c[1]},
|
||||
r: arcRadius
|
||||
|
|
@ -231,4 +232,5 @@ function perpXY(v) {
|
|||
|
||||
v[0] = - y;
|
||||
v[1] = x;
|
||||
return v;
|
||||
}
|
||||
Loading…
Reference in a new issue