Fix 3mf trmat - wrong reload

This commit is contained in:
Filip Sykala 2022-04-04 09:57:19 +02:00
parent 5632c21dec
commit 447e58254d
4 changed files with 187 additions and 90 deletions

View file

@ -86,6 +86,17 @@ public:
bool skip(const size_t &model_volume_id) const override { return model_volume_id == volume_id; }
};
class AllowVolumes: public ISkip
{
std::vector<size_t> allowed_id;
public:
AllowVolumes(std::vector<size_t> allowed_id) : allowed_id(allowed_id) {}
bool skip(const size_t &model_volume_id) const override {
auto it = std::find(allowed_id.begin(), allowed_id.end(), model_volume_id);
return it == allowed_id.end();
}
};
/// <summary>
/// Unproject on mesh by Mesh raycasters
/// Note: Function use current camera position from wxGetApp()