|
|
|
@ -1389,6 +1389,17 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
|
|
|
|
|
return new Object3D().add(line, mesh);
|
|
|
|
|
}
|
|
|
|
|
else if (renderType === RenderType.Physical2)
|
|
|
|
|
{
|
|
|
|
|
let mesh = new Mesh(this.MeshGeometry, this.MeshMaterial);
|
|
|
|
|
mesh.castShadow = true;
|
|
|
|
|
mesh.receiveShadow = true;
|
|
|
|
|
|
|
|
|
|
return new Object3D().add(
|
|
|
|
|
mesh,
|
|
|
|
|
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
get UCGenerator()
|
|
|
|
|
{
|
|
|
|
@ -1679,6 +1690,17 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
else if (renderType === RenderType.Print)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
else if (renderType === RenderType.Physical2)
|
|
|
|
|
{
|
|
|
|
|
let mesh = new Mesh(this.MeshGeometry, this.MeshMaterial);
|
|
|
|
|
mesh.castShadow = true;
|
|
|
|
|
mesh.receiveShadow = true;
|
|
|
|
|
|
|
|
|
|
return obj.add(
|
|
|
|
|
mesh,
|
|
|
|
|
new LineSegments(this.EdgeGeometry, ColorMaterial.GetLineMaterial(7))
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UpdateDrawObjectMaterial(renderType: RenderType, obj: Object3D)
|
|
|
|
@ -1693,6 +1715,11 @@ export class ExtrudeSolid extends Entity
|
|
|
|
|
let mesh = obj.children[0] as Mesh;
|
|
|
|
|
mesh.material = ColorMaterial.GetConceptualMaterial(this.ColorIndex);
|
|
|
|
|
}
|
|
|
|
|
else if (renderType === RenderType.Physical2)
|
|
|
|
|
{
|
|
|
|
|
let mesh = obj.children[0] as Mesh;
|
|
|
|
|
mesh.material = this.MeshMaterial;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
let mesh = obj as Mesh;
|
|
|
|
|