Minor modifications.

This commit is contained in:
Viktor Kovacs 2023-10-22 18:11:18 +02:00
parent 1a4c3c128d
commit 757703a889

View File

@ -376,7 +376,7 @@ export function ConvertModelToThreeObject (model, conversionParams, conversionOu
return threeMesh; return threeMesh;
} }
function CreateThreeLineMesh (meshInstance, modelThreeMaterials) function CreateThreeLineMesh (meshInstance, materialHandler)
{ {
let mesh = meshInstance.mesh; let mesh = meshInstance.mesh;
let lineCount = mesh.LineCount (); let lineCount = mesh.LineCount ();
@ -421,18 +421,18 @@ export function ConvertModelToThreeObject (model, conversionParams, conversionOu
return threeLine; return threeLine;
} }
function ConvertMesh (threeObject, meshInstance, modelThreeMaterials) function ConvertMesh (threeObject, meshInstance, materialHandler)
{ {
if (IsEmptyMesh (meshInstance.mesh)) { if (IsEmptyMesh (meshInstance.mesh)) {
return; return;
} }
let triangleMesh = CreateThreeTriangleMesh (meshInstance, modelThreeMaterials); let triangleMesh = CreateThreeTriangleMesh (meshInstance, materialHandler);
if (triangleMesh !== null) { if (triangleMesh !== null) {
threeObject.add (triangleMesh); threeObject.add (triangleMesh);
} }
let lineMesh = CreateThreeLineMesh (meshInstance, modelThreeMaterials); let lineMesh = CreateThreeLineMesh (meshInstance, materialHandler);
if (lineMesh !== null) { if (lineMesh !== null) {
threeObject.add (lineMesh); threeObject.add (lineMesh);
} }