pub fn delete_deleted_proxies_and_endpoints_after_subregion_removal(
        &mut self,
        proxies: &SAPProxies,
        existing_proxies: &mut BitVec,
        layer_depth: i8,
    ) -> usize {
        let mut num_subproper_proxies_deleted = 0;

        self.endpoints.retain(|endpt| {
            if !endpt.is_sentinel() {
                let proxy = &proxies[endpt.proxy()];

                if proxy.aabb.mins.x == DELETED_AABB_VALUE {
                    if existing_proxies.get(endpt.proxy() as usize) == Some(true) {
                        existing_proxies.set(endpt.proxy() as usize, false);

                        if proxy.layer_depth <= layer_depth {
                            num_subproper_proxies_deleted += 1;
                        }
                    }

                    return false;
                }
            }

            true
        });

        num_subproper_proxies_deleted
    }
/// Removes from this axis all the endpoints corresponding to a proxy with an AABB mins/maxs values
/// equal to DELETED_AABB_VALUE, indicating that the endpoints should be deleted.
///
/// Returns the number of deleted proxies such that `proxy.layer_depth <= layer_depth`.
Removes from this axis all the endpoints corresponding to a proxy with an AABB mins/maxs values
equal to DELETED_AABB_VALUE, indicating that the endpoints should be deleted.

Returns the number of deleted proxies such that `proxy.layer_depth <= layer_depth`.
Removes from this axis all the endpoints corresponding to a proxy with an AABB mins / maxs values equal to DELETED_AABB_VALUE indicating that the endpoints should be deleted . Returns the number of deleted proxies such that ` proxy . layer_depth < = layer_depth ` .
pub fn delete_deleted_proxies_and_endpoints_after_subregion_removal(
        &mut self,
        proxies: &SAPProxies,
        existing_proxies: &mut BitVec,
        layer_depth: i8,
    ) -> usize {
        let mut num_subproper_proxies_deleted = 0;
        self.endpoints.retain(|endpt| {
            if !endpt.is_sentinel() {
                let proxy = &proxies[endpt.proxy()];
                if proxy.aabb.mins.x == DELETED_AABB_VALUE {
                    if existing_proxies.get(endpt.proxy() as usize) == Some(true) {
                        existing_proxies.set(endpt.proxy() as usize, false);
                        if proxy.layer_depth <= layer_depth {
                            num_subproper_proxies_deleted += 1;
                        }
                    }
                    return false;
                }
            }
            true
        });
        num_subproper_proxies_deleted
    }
pub fn delete_deleted_proxies_and_endpoints_after_subregion_removal ( & mut self , proxies : & SAPProxies , existing_proxies : & mut BitVec , layer_depth : i8 , ) -> usize { let mut num_subproper_proxies_deleted = 0 ; self . endpoints . retain ( | endpt | { if ! endpt . is_sentinel ( ) { let proxy = & proxies [ endpt . proxy ( ) ] ; if proxy . aabb . mins . x == DELETED_AABB_VALUE { if existing_proxies . get ( endpt . proxy ( ) as usize ) == Some ( true ) { existing_proxies . set ( endpt . proxy ( ) as usize , false ) ; if proxy . layer_depth <= layer_depth { num_subproper_proxies_deleted += 1 ; } } return false ; } } true } ) ; num_subproper_proxies_deleted }
Removes from this axis all the endpoints corresponding to a proxy with an AABB mins/maxs values
equal to DELETED_AABB_VALUE, indicating that the endpoints should be deleted.
Removes from this axis all the endpoints corresponding to a proxy with an AABB mins / maxs values equal to DELETED_AABB_VALUE indicating that the endpoints should be deleted .
&mut self
proxies
&SAPProxies
existing_proxies
&mut BitVec
layer_depth
i8