Class hierarchy   Compound list   File list   Compound Members   File Members  

Polygon Class Reference

Simply a polygon-class. More...

List of all members.

Public Members

Private Members


Detailed Description

Simply a polygon-class.


Member Function Documentation

Polygon::Polygon(Mesh *p, RV_Poly *d)

Polygon::Polygon(Mesh *, FILE *, bool is_IM, bool is_Instance)

Polygon::Polygon(Mesh *, Polygon *)

ctor.

creates an exact copy. Only difference is the parent pointer.

void Polygon::setTransparency(rvulong)

sets the transparency for the whole polygon, and sets the bits for alpha-channel based transparency

If argument is 255, disables transparency and clears the transparency-bits

void Polygon::setSurface(rvlong)

sets the surface type for the polygon

void Polygon::turnInvisible(void)

bool Polygon::isInvisible(void)

void Polygon::setNoColl(void)

bool Polygon::isNoColl(void)

int Polygon::numverts(void)

number of vertices for this polygon

Returns:
  • 3 if poly is a triangle
  • 4 if poly is a quad

void Polygon::setTEColor(rvulong)

void Polygon::write(FILE *, bool is_IM, bool is_Instance)

int Polygon::detTEPart(void)

obsolete

void Polygon::shiftVIndices(rvushort)

bool Polygon::isInTexture(rvshort page, rvfloat ulo, rvfloat uhi, rvfloat vlo, rvfloat vhi)

int Polygon::vertidx(int)

returns the vertex index indicated by the argument.

advantage is that it "wraps over": For a triangle, vertidx(0), vertidx(3) and vertidx(-3) return all the same

bool Polygon::teheur_BlueWall(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "blue wall". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_Lamp(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "ceiling lamps". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_Floor(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "green floor". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_Floor2(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "outside floor". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_RWall(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "room wall". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_Box(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "box pile". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_CarImage(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "car images". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_Pipe(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "pipe end". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_BCeil(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "bridge ceiling". Simply calls isInTexture().

For internal use only.

bool Polygon::teheur_BRail(void) [private]

hack: heuristic to detect whether the poly belongs to the lego part "bridge railing". Simply calls isInTexture().

For internal use only.


Member Data Documentation

Mesh* Polygon::parent

rvlong Polygon::surface

surface type as written to the .ncp file, or SURF_NOCOLL for non-solid polys

rvlong Polygon::ncp_type

extra bits to include in the .ncp file

EnvMapType Polygon::envmap

RVColor Polygon::env_color

RV_Poly Polygon::data


The documentation for this class was generated from the following files:
Generated at Wed May 31 21:08:20 2000 for Rvtmod/rvglue by doxygen  written by Dimitri van Heesch, © 1997-1998