Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
parent
410893ad0f
commit
45af29da80
243 changed files with 1400 additions and 662 deletions
|
|
@ -41,7 +41,7 @@ private:
|
|||
static RTCDevice embree_device;
|
||||
RTCScene embree_scene;
|
||||
|
||||
RBSet<int> filter_meshes;
|
||||
HashSet<int> filter_meshes;
|
||||
|
||||
public:
|
||||
virtual bool intersect(Ray &p_ray) override;
|
||||
|
|
@ -50,7 +50,7 @@ public:
|
|||
virtual void add_mesh(const PackedVector3Array &p_vertices, const PackedInt32Array &p_indices, unsigned int p_id) override;
|
||||
virtual void commit() override;
|
||||
|
||||
virtual void set_mesh_filter(const RBSet<int> &p_mesh_ids) override;
|
||||
virtual void set_mesh_filter(const HashSet<int> &p_mesh_ids) override;
|
||||
virtual void clear_mesh_filter() override;
|
||||
|
||||
static StaticRaycaster *create_embree_raycaster();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue