#include <meshgeometry.h>
Inherits W3DMPO, RefCountClass, and MultiListObjectClass.
Inherited by DynamicMeshModel, MeshModelClass, and ShdSubMeshClass.
|
| enum | FlagsType {
DIRTY_BOUNDS = 0x00000001
, DIRTY_PLANES = 0x00000002
, DIRTY_VNORMALS = 0x00000004
, SORT = 0x00000010
,
DISABLE_BOUNDING_BOX = 0x00000020
, DISABLE_BOUNDING_SPHERE = 0x00000040
, DISABLE_PLANE_EQ = 0x00000080
, TWO_SIDED = 0x00000100
,
ALIGNED = 0x00000200
, SKIN = 0x00000400
, ORIENTED = 0x00000800
, CAST_SHADOW = 0x00001000
,
PRELIT_MASK = 0x0000E000
, PRELIT_VERTEX = 0x00002000
, PRELIT_LIGHTMAP_MULTI_PASS = 0x00004000
, PRELIT_LIGHTMAP_MULTI_TEXTURE = 0x00008000
,
ALLOW_NPATCHES = 0x00010000
} |
| |
|
| | MeshGeometryClass (void) |
| |
| | MeshGeometryClass (const MeshGeometryClass &that) |
| |
| virtual | ~MeshGeometryClass (void) |
| |
| MeshGeometryClass & | operator= (const MeshGeometryClass &that) |
| |
| void | Reset_Geometry (int polycount, int vertcount) |
| |
| const char * | Get_Name (void) const |
| |
| void | Set_Name (const char *newname) |
| |
| const char * | Get_User_Text (void) |
| |
| void | Set_User_Text (char *usertext) |
| |
| void | Set_Flag (FlagsType flag, bool onoff) |
| |
| int | Get_Flag (FlagsType flag) |
| |
| void | Set_Sort_Level (int level) |
| |
| int | Get_Sort_Level (void) const |
| |
| int | Get_Polygon_Count (void) const |
| |
| int | Get_Vertex_Count (void) const |
| |
| const TriIndex * | Get_Polygon_Array (void) |
| |
| Vector3 * | Get_Vertex_Array (void) |
| |
| const Vector3 * | Get_Vertex_Normal_Array (void) |
| |
| const Vector4 * | Get_Plane_Array (bool create=true) |
| |
| void | Compute_Plane (int pidx, PlaneClass *set_plane) const |
| |
| const uint32 * | Get_Vertex_Shade_Index_Array (bool create=true) |
| |
| const uint16 * | Get_Vertex_Bone_Links (void) |
| |
| uint8 * | Get_Poly_Surface_Type_Array (void) |
| |
| uint8 | Get_Poly_Surface_Type (int poly_index) const |
| |
| void | Get_Bounding_Box (AABoxClass *set_box) |
| |
| void | Get_Bounding_Sphere (SphereClass *set_sphere) |
| |
| bool | Has_Cull_Tree (void) |
| |
| void | Generate_Rigid_APT (const Vector3 &view_dir, SimpleDynVecClass< uint32 > &apt) |
| |
| void | Generate_Rigid_APT (const OBBoxClass &local_box, SimpleDynVecClass< uint32 > &apt) |
| |
| void | Generate_Rigid_APT (const OBBoxClass &local_box, const Vector3 &view_dir, SimpleDynVecClass< uint32 > &apt) |
| |
| void | Generate_Skin_APT (const OBBoxClass &world_box, SimpleDynVecClass< uint32 > &apt, const Vector3 *world_vertex_locs) |
| |
| bool | Contains (const Vector3 &point) |
| |
| bool | Cast_Ray (RayCollisionTestClass &raytest) |
| |
| bool | Cast_AABox (AABoxCollisionTestClass &boxtest) |
| |
| bool | Cast_OBBox (OBBoxCollisionTestClass &boxtest) |
| |
| bool | Intersect_OBBox (OBBoxIntersectionTestClass &boxtest) |
| |
| bool | Cast_World_Space_AABox (AABoxCollisionTestClass &boxtest, const Matrix3D &transform) |
| |
| virtual WW3DErrorType | Load_W3D (ChunkLoadClass &cload) |
| |
| void | Scale (const Vector3 &sc) |
| |
| virtual | ~W3DMPO () |
| |
| | RefCountClass (void) |
| |
| | RefCountClass (const RefCountClass &) |
| |
| void | Add_Ref (void) const |
| |
| WWINLINE void | Release_Ref (void) const |
| |
| int | Num_Refs (void) const |
| |
| virtual void | Delete_This (void) |
| |
| | MultiListObjectClass (void) |
| |
| virtual | ~MultiListObjectClass (void) |
| |
| MultiListNodeClass * | Get_List_Node () const |
| |
| void | Set_List_Node (MultiListNodeClass *node) |
| |
|
| TriIndex * | get_polys (void) |
| |
| Vector3 * | get_vert_normals (void) |
| |
| uint32 * | get_shade_indices (bool create=true) |
| |
| Vector4 * | get_planes (bool create=true) |
| |
| uint16 * | get_bone_links (bool create=true) |
| |
| int | cast_semi_infinite_axis_aligned_ray (const Vector3 &start_point, int axis_dir, unsigned char &flags) |
| |
| bool | cast_aabox_identity (AABoxCollisionTestClass &boxtest, const Vector3 &trans) |
| |
| bool | cast_aabox_z90 (AABoxCollisionTestClass &boxtest, const Vector3 &trans) |
| |
| bool | cast_aabox_z180 (AABoxCollisionTestClass &boxtest, const Vector3 &trans) |
| |
| bool | cast_aabox_z270 (AABoxCollisionTestClass &boxtest, const Vector3 &trans) |
| |
| bool | intersect_obbox_brute_force (OBBoxIntersectionTestClass &localtest) |
| |
| bool | cast_ray_brute_force (RayCollisionTestClass &raytest) |
| |
| bool | cast_aabox_brute_force (AABoxCollisionTestClass &boxtest) |
| |
| bool | cast_obbox_brute_force (OBBoxCollisionTestClass &boxtest) |
| |
| virtual void | Compute_Plane_Equations (Vector4 *array) |
| |
| virtual void | Compute_Vertex_Normals (Vector3 *array) |
| |
| virtual void | Compute_Bounds (Vector3 *verts) |
| |
| void | Generate_Culling_Tree (void) |
| |
| WW3DErrorType | read_chunks (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_vertices (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_vertex_normals (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_triangles (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_user_text (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_vertex_influences (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_vertex_shade_indices (ChunkLoadClass &cload) |
| |
| WW3DErrorType | read_aabtree (ChunkLoadClass &cload) |
| |
| void | get_deformed_vertices (Vector3 *dst_vert, Vector3 *dst_norm, const HTreeClass *htree) |
| |
| void | get_deformed_vertices (Vector3 *dst_vert, const HTreeClass *htree) |
| |
| void | get_deformed_screenspace_vertices (Vector4 *dst_vert, const RenderInfoClass &rinfo, const Matrix3D &mesh_tm, const HTreeClass *htree) |
| |
| virtual int | glueEnforcer () const =0 |
| |
| virtual | ~RefCountClass (void) |
| |
MeshGeometryClass This class encapsulates the geometry data for a triangle mesh.
Definition at line 88 of file meshgeometry.h.
◆ FlagsType
| Enumerator |
|---|
| DIRTY_BOUNDS | |
| DIRTY_PLANES | |
| DIRTY_VNORMALS | |
| SORT | |
| DISABLE_BOUNDING_BOX | |
| DISABLE_BOUNDING_SPHERE | |
| DISABLE_PLANE_EQ | |
| TWO_SIDED | |
| ALIGNED | |
| SKIN | |
| ORIENTED | |
| CAST_SHADOW | |
| PRELIT_MASK | |
| PRELIT_VERTEX | |
| PRELIT_LIGHTMAP_MULTI_PASS | |
| PRELIT_LIGHTMAP_MULTI_TEXTURE | |
| ALLOW_NPATCHES | |
Definition at line 100 of file meshgeometry.h.
◆ MeshGeometryClass() [1/2]
| MeshGeometryClass::MeshGeometryClass |
( |
void | | ) |
|
◆ MeshGeometryClass() [2/2]
◆ ~MeshGeometryClass()
| MeshGeometryClass::~MeshGeometryClass |
( |
void | | ) |
|
|
virtual |
◆ Cast_AABox()
◆ cast_aabox_brute_force()
◆ cast_aabox_identity()
◆ cast_aabox_z180()
◆ cast_aabox_z270()
◆ cast_aabox_z90()
◆ Cast_OBBox()
◆ cast_obbox_brute_force()
◆ Cast_Ray()
◆ cast_ray_brute_force()
◆ cast_semi_infinite_axis_aligned_ray()
| int MeshGeometryClass::cast_semi_infinite_axis_aligned_ray |
( |
const Vector3 & | start_point, |
|
|
int | axis_dir, |
|
|
unsigned char & | flags ) |
|
protected |
◆ Cast_World_Space_AABox()
◆ Compute_Bounds()
| void MeshGeometryClass::Compute_Bounds |
( |
Vector3 * | verts | ) |
|
|
protectedvirtual |
◆ Compute_Plane()
| void MeshGeometryClass::Compute_Plane |
( |
int | pidx, |
|
|
PlaneClass * | set_plane ) const |
◆ Compute_Plane_Equations()
| void MeshGeometryClass::Compute_Plane_Equations |
( |
Vector4 * | array | ) |
|
|
protectedvirtual |
◆ Compute_Vertex_Normals()
| void MeshGeometryClass::Compute_Vertex_Normals |
( |
Vector3 * | array | ) |
|
|
protectedvirtual |
◆ Contains()
| bool MeshGeometryClass::Contains |
( |
const Vector3 & | point | ) |
|
◆ Generate_Culling_Tree()
| void MeshGeometryClass::Generate_Culling_Tree |
( |
void | | ) |
|
|
protected |
◆ Generate_Rigid_APT() [1/3]
◆ Generate_Rigid_APT() [2/3]
◆ Generate_Rigid_APT() [3/3]
◆ Generate_Skin_APT()
◆ get_bone_links()
◆ Get_Bounding_Box()
| void MeshGeometryClass::Get_Bounding_Box |
( |
AABoxClass * | set_box | ) |
|
◆ Get_Bounding_Sphere()
| void MeshGeometryClass::Get_Bounding_Sphere |
( |
SphereClass * | set_sphere | ) |
|
◆ get_deformed_screenspace_vertices()
◆ get_deformed_vertices() [1/2]
| void MeshGeometryClass::get_deformed_vertices |
( |
Vector3 * | dst_vert, |
|
|
const HTreeClass * | htree ) |
|
protected |
◆ get_deformed_vertices() [2/2]
◆ Get_Flag()
| int MeshGeometryClass::Get_Flag |
( |
FlagsType | flag | ) |
|
|
inline |
◆ Get_Name()
| const char * MeshGeometryClass::Get_Name |
( |
void | | ) |
const |
◆ Get_Plane_Array()
◆ get_planes()
◆ Get_Poly_Surface_Type()
| uint8 MeshGeometryClass::Get_Poly_Surface_Type |
( |
int | poly_index | ) |
const |
|
inline |
◆ Get_Poly_Surface_Type_Array()
| uint8 * MeshGeometryClass::Get_Poly_Surface_Type_Array |
( |
void | | ) |
|
|
inline |
◆ Get_Polygon_Array()
| const TriIndex * MeshGeometryClass::Get_Polygon_Array |
( |
void | | ) |
|
|
inline |
◆ Get_Polygon_Count()
| int MeshGeometryClass::Get_Polygon_Count |
( |
void | | ) |
const |
|
inline |
◆ get_polys()
| TriIndex * MeshGeometryClass::get_polys |
( |
void | | ) |
|
|
inlineprotected |
◆ get_shade_indices()
◆ Get_Sort_Level()
| int MeshGeometryClass::Get_Sort_Level |
( |
void | | ) |
const |
|
inline |
◆ Get_User_Text()
| const char * MeshGeometryClass::Get_User_Text |
( |
void | | ) |
|
◆ get_vert_normals()
| Vector3 * MeshGeometryClass::get_vert_normals |
( |
void | | ) |
|
|
protected |
◆ Get_Vertex_Array()
| Vector3 * MeshGeometryClass::Get_Vertex_Array |
( |
void | | ) |
|
|
inline |
◆ Get_Vertex_Bone_Links()
| const uint16 * MeshGeometryClass::Get_Vertex_Bone_Links |
( |
void | | ) |
|
|
inline |
◆ Get_Vertex_Count()
| int MeshGeometryClass::Get_Vertex_Count |
( |
void | | ) |
const |
|
inline |
◆ Get_Vertex_Normal_Array()
| const Vector3 * MeshGeometryClass::Get_Vertex_Normal_Array |
( |
void | | ) |
|
◆ Get_Vertex_Shade_Index_Array()
| const uint32 * MeshGeometryClass::Get_Vertex_Shade_Index_Array |
( |
bool | create = true | ) |
|
|
inline |
◆ Has_Cull_Tree()
| bool MeshGeometryClass::Has_Cull_Tree |
( |
void | | ) |
|
|
inline |
◆ Intersect_OBBox()
◆ intersect_obbox_brute_force()
◆ Load_W3D()
◆ operator=()
◆ read_aabtree()
◆ read_chunks()
◆ read_triangles()
◆ read_user_text()
◆ read_vertex_influences()
◆ read_vertex_normals()
◆ read_vertex_shade_indices()
◆ read_vertices()
◆ Reset_Geometry()
| void MeshGeometryClass::Reset_Geometry |
( |
int | polycount, |
|
|
int | vertcount ) |
◆ Scale()
| void MeshGeometryClass::Scale |
( |
const Vector3 & | sc | ) |
|
◆ Set_Flag()
◆ Set_Name()
| void MeshGeometryClass::Set_Name |
( |
const char * | newname | ) |
|
◆ Set_Sort_Level()
| void MeshGeometryClass::Set_Sort_Level |
( |
int | level | ) |
|
|
inline |
◆ Set_User_Text()
| void MeshGeometryClass::Set_User_Text |
( |
char * | usertext | ) |
|
◆ BoundBoxMax
| Vector3 MeshGeometryClass::BoundBoxMax |
|
protected |
◆ BoundBoxMin
| Vector3 MeshGeometryClass::BoundBoxMin |
|
protected |
◆ BoundSphereCenter
| Vector3 MeshGeometryClass::BoundSphereCenter |
|
protected |
◆ BoundSphereRadius
| float MeshGeometryClass::BoundSphereRadius |
|
protected |
◆ CullTree
◆ Flags
| int MeshGeometryClass::Flags |
|
protected |
◆ MeshName
◆ PlaneEq
◆ Poly
◆ PolyCount
| int MeshGeometryClass::PolyCount |
|
protected |
◆ PolySurfaceType
◆ SortLevel
| char MeshGeometryClass::SortLevel |
|
protected |
◆ UserText
◆ Vertex
◆ VertexBoneLink
◆ VertexCount
| int MeshGeometryClass::VertexCount |
|
protected |
◆ VertexNorm
◆ VertexShadeIdx
◆ W3dAttributes
| uint32 MeshGeometryClass::W3dAttributes |
|
protected |
The documentation for this class was generated from the following files: