From a4dd6c7ce5b6238ef4b445ec6fccbc8f13683e82 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 22 Feb 2017 16:05:14 +0100 Subject: [PATCH] Added missing get_volume() method to the PrintObject Perl interface. --- xs/xsp/Model.xsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp index db6773cb3..91fc7a20b 100644 --- a/xs/xsp/Model.xsp +++ b/xs/xsp/Model.xsp @@ -142,6 +142,8 @@ ModelMaterial::attributes() void clear_volumes(); int volumes_count() %code%{ RETVAL = THIS->volumes.size(); %}; + Ref get_volume(int idx) + %code%{ RETVAL = THIS->volumes.at(idx); %}; %name{_add_instance} Ref add_instance(); Ref _add_instance_clone(ModelInstance* other)