3dPrinting :

- gestione regioni con numero diverso di passate.
This commit is contained in:
SaraP
2022-08-12 12:27:41 +02:00
parent ffd86bd009
commit ff84fd21c3
9 changed files with 784 additions and 271 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ local function CreateSolidFromCurve( nCrvId, nSolidGrp, LayerParams)
local Color = EgtStdColor( 'GRAY')
if nType == TYPE.OUTER_SHELL then
Color = EgtStdColor( 'TEAL')
elseif nType == TYPE.INNER_SHELL then
elseif nType == TYPE.INNER_SHELL or nType == TYPE.EXTRA_SHELL then
Color = EgtStdColor( 'ORANGE')
elseif nType == TYPE.LINK then
Color = EgtStdColor( 'GRAY')
@@ -151,7 +151,7 @@ local function CreateSolidFromCurve( nCrvId, nSolidGrp, LayerParams)
local bOk = true
for nInd = 0, nParts - 1 do
local nGuideId = nId + nInd
local nSrfId = CreateSolid( nGuideId, nSolidGrp, LayerParams.dStrand, LayerParams.dLayHeight, LayerParams.vtSlicing)
local nSrfId = CreateSolid( nGuideId, nSolidGrp, LayerParams.dStrand - 2 * GEO.EPS_SMALL, LayerParams.dLayHeight, LayerParams.vtSlicing)
if not nSrfId then
-- ritento con sezione leggermente modificata