Regular API function

simApplyMilling

Description Applies changes made during milling operations to a cuttable object (e.g. a shape). This requires some calculation time. Once changes were applied, they cannot be reset anymore. If the milling operation milled away the whole object, then the object is removed from the scene. The calculation structure linked to the object is removed and an updated calculation structure might be calculated (might take some calculation time). See also simResetMilling, simHandleMill and simResetMill.
C synopsis simInt simApplyMilling(simInt objectHandle)
C parameters
objectHandle: handle of the cut object or sim_handle_all to apply changes to all cut objects.
C return value
-1 if operation was not successful, 0 if operation was successful but the object was removed from the scene (because entirely cut away) (only available when sim_handle_all is not specified), or 1 if operation was successful and the object still exists in the scene.
Lua synopsis number result=simApplyMilling(number objectHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page