Panda3D

Public Member Functions | Public Attributes | List of all members
PhysxHeightFieldDesc Class Reference

Descriptor class for height fields. More...

`#include "physxHeightFieldDesc.h"`

## Public Member Functions
bool | is_valid () const
| Returns true if the descriptor is valid. More...
void | set_convex_edge_threshold (float threshold)
void | set_height (unsigned int row, unsigned int column, short height)
void | set_image (const PNMImage &image, unsigned short materialIndex=0)
void | set_material_index (unsigned int row, unsigned int column, unsigned short materialIndex0, unsigned short materialIndex1)
void | set_size (unsigned int num_rows, unsigned int num_columns)
void | set_tess_flag (unsigned int row, unsigned int column, unsigned short value)
void | set_thickness (float thickness)
void | set_to_default ()
| (re)sets the structure to the default. More...

## Public Attributes
NxHeightFieldDesc | _desc

## Detailed Description

Descriptor class for height fields.

The height field data is copied when a PhysxHeightField object is created from this descriptor. After the call the user may discard the original height data (e.g. release the PNGImage).

Definition at line 27 of file physxHeightFieldDesc.h.

## Member Function Documentation

## ◆ is_valid()

bool PhysxHeightFieldDesc::is_valid | ( |  | ) | const
| inline

Returns true if the descriptor is valid.

Definition at line 44 of file physxHeightFieldDesc.I.

## ◆ set_to_default()

void PhysxHeightFieldDesc::set_to_default | ( |  | ) |
| inline

(re)sets the structure to the default.

Definition at line 35 of file physxHeightFieldDesc.I.

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

- panda/src/physx/physxHeightFieldDesc.h
- panda/src/physx/physxHeightFieldDesc.cxx
- panda/src/physx/physxHeightFieldDesc.I