set location to hole object from datum

This commit is contained in:
Val Erastov 2022-07-09 14:34:35 -07:00
parent ecf76324d9
commit 24ab2aaf18
2 changed files with 3 additions and 32 deletions

View file

@ -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[]);

View file

@ -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);
}