28 _vertices.push_back(v0);
29 _vertices.push_back(v1);
30 _vertices.push_back(v2);
31 _vertices.push_back(v3);
42 return _vertices.size();
52 nassertr(n >= 0 && n < (
int)_vertices.size(),
LPoint3::zero());
62 _double_sided = value;
83 _min_coverage = value;
void set_vertices(const LPoint3 &v0, const LPoint3 &v1, const LPoint3 &v2, const LPoint3 &v3)
Replaces the four vertices of the occluder polygon.
void set_min_coverage(PN_stdfloat value)
Minimum screen coverage needed before occluder used.
void set_double_sided(bool value)
If true, the back-face will also be used to occlude.
static const LPoint3f & zero()
Returns a zero-length point.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
int get_num_vertices() const
Returns the number of vertices in the occluder polygon.
PN_stdfloat get_min_coverage()
Returns the minimum screen coverage.
const LPoint3 & get_vertex(int n) const
Returns the nth vertex of the occluder polygon.
bool is_double_sided()
Is this occluder double-sided.