mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 12:53:52 +01:00
set location to hole object from datum
This commit is contained in:
parent
ecf76324d9
commit
24ab2aaf18
2 changed files with 3 additions and 32 deletions
2
web/app/cad/craft/e0/interact.d.ts
vendored
2
web/app/cad/craft/e0/interact.d.ts
vendored
|
|
@ -16,4 +16,4 @@ export function IsEdgesOverlap(e1Ptr: number, e2Ptr: number, tol: number): boole
|
|||
|
||||
export function UpdateTessellation(shapePtr: number, deflection: number): number;
|
||||
|
||||
export function SetLocation(shapeName: string, matrixArray: number[]);
|
||||
export function SetLocation(shapePtr: number, matrixArray: number[]);
|
||||
|
|
|
|||
|
|
@ -63,35 +63,6 @@ export function UpdateTessellation(shapePtr, deflection) {
|
|||
return Module._UpdateTessellation(shapePtr, deflection);
|
||||
}
|
||||
|
||||
export function SetLocation(shapeName, matrixArray) {
|
||||
const shapeNamePtr = toCString(shapeName);
|
||||
const [
|
||||
mx0,
|
||||
mx1,
|
||||
mx2,
|
||||
mx3,
|
||||
mx4,
|
||||
mx5,
|
||||
mx6,
|
||||
mx7,
|
||||
mx8,
|
||||
mx9,
|
||||
mx10,
|
||||
mx11
|
||||
] = matrixArray;
|
||||
Module._SetLocation(shapeNamePtr,
|
||||
mx0,
|
||||
mx1,
|
||||
mx2,
|
||||
mx3,
|
||||
mx4,
|
||||
mx5,
|
||||
mx6,
|
||||
mx7,
|
||||
mx8,
|
||||
mx9,
|
||||
mx10,
|
||||
mx11
|
||||
);
|
||||
_free(shapeNamePtr);
|
||||
export function SetLocation(shapePtr, matrixArray) {
|
||||
return Module._SetLocation(shapePtr, ...matrixArray);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue