hello everyone i was working on a code to calculate volume of a 3D model:
model = Sketchup.active_model
group=model.entities.add_group(Sketchup.active_model.entities.to_a)
if (group)
vol=group.volume/61024UI.messagebox vol.round(2)
array = group.explode
group=model.entities.fill_from_mesh(array)else
UI.messagebox “Failure”
end
but it worked on the model “A” and it gave correct value but it didn’t work on the “B” model it gives 0.0 as volume value.
Does anyone have an idea why it doesn’t work for the “B” model ?
thnx a lot in advance.