Panda3D
Public Types | Public Member Functions | Public Attributes | List of all members
CLwoPoints Class Reference

This class is a wrapper around LwoPoints and stores additional information useful during the conversion-to-egg process. More...

#include "cLwoPoints.h"

Public Types

typedef pmap< string, const LwoVertexMap * > VMap
 

Public Member Functions

 CLwoPoints (LwoToEggConverter *converter, const LwoPoints *points, CLwoLayer *layer)
 
void add_vmap (const LwoVertexMap *lwo_vmap)
 Associates the indicated VertexMap with the points set. More...
 
void connect_egg ()
 Connects all the egg structures together. More...
 
 CPT (LwoPoints) _points
 
bool get_uv (const string &uv_name, int n, LPoint2 &uv) const
 Returns true if there is a UV of the indicated name associated with the given vertex, false otherwise. More...
 
void make_egg ()
 Creates the egg structures associated with this Lightwave object. More...
 
 PT (EggVertexPool) _egg_vpool
 

Public Attributes

LwoToEggConverter_converter
 
CLwoLayer_layer
 
VMap _pick
 
VMap _txuv
 

Detailed Description

This class is a wrapper around LwoPoints and stores additional information useful during the conversion-to-egg process.

Definition at line 36 of file cLwoPoints.h.

Member Function Documentation

◆ add_vmap()

void CLwoPoints::add_vmap ( const LwoVertexMap lwo_vmap)

Associates the indicated VertexMap with the points set.

This may define such niceties as UV coordinates or per-vertex color.

Definition at line 31 of file cLwoPoints.cxx.

References get_uv().

Referenced by LwoToEggConverter::get_surface().

◆ connect_egg()

void CLwoPoints::connect_egg ( )

Connects all the egg structures together.

Definition at line 105 of file cLwoPoints.cxx.

Referenced by LwoToEggConverter::get_surface(), and make_egg().

◆ get_uv()

bool CLwoPoints::get_uv ( const string &  uv_name,
int  n,
LPoint2 uv 
) const

Returns true if there is a UV of the indicated name associated with the given vertex, false otherwise.

If true, fills in uv with the value.

Definition at line 62 of file cLwoPoints.cxx.

References LwoVertexMap::get_value(), LwoVertexMap::has_value(), and make_egg().

Referenced by add_vmap(), and CLwoPolygons::connect_egg().

◆ make_egg()

void CLwoPoints::make_egg ( )

Creates the egg structures associated with this Lightwave object.

Definition at line 92 of file cLwoPoints.cxx.

References connect_egg(), and CLwoLayer::get_number().

Referenced by LwoToEggConverter::get_surface(), and get_uv().


The documentation for this class was generated from the following files: