offsetBody

offsetBody(entità, oofset)

Funzione che in ingresso vuole un'entità 3d e un offset(numero). Sposta le facce in base all'offset passato( alcuni solidi potrebbero diventare invalidi). Ritorna true se l'operazione è avvenuta correttamente, altrimenti false.

Esempio 1. Esempio offsetBody

local a4 = CreateBox(40, 30, 20, Point(0, 0, 0))
local v0 = a4:getVolume()
a4:offsetBody(2)
print("\noffsetBody(2): volume " .. tostring(v0) .. " -> " .. tostring(a4:getVolume()))
a4:erase()

Created with the Personal Edition of HelpNDoc: Achieve Professional Documentation Results with a Help Authoring Tool