Public Types | Public Member Functions | Public Attributes
FractureTools::FractureVoronoiDesc Struct Reference

#include <FractureTools.h>

List of all members.

Public Types

enum  NoiseMode {
  NoiseWavePlane = 0,
  NoisePerlin2D,
  NoisePerlin3D,
  NoiseModeCount
}

Public Member Functions

 FractureVoronoiDesc ()
void setToDefault ()

Public Attributes

unsigned siteCount
const physx::PxVec3 * sites
NoiseParameters faceNoise
bool instanceChunks
bool useDisplacementMaps
unsigned noiseMode
physx::NxFractureMaterialDesc materialDesc

Detailed Description

FractureVoronoiDesc

Descriptor for Voronoi decomposition fracturing.


Member Enumeration Documentation

Enum describing creation of displacement maps.

Enumerator:
NoiseWavePlane 
NoisePerlin2D 
NoisePerlin3D 
NoiseModeCount 

Constructor & Destructor Documentation

FractureTools::FractureVoronoiDesc::FractureVoronoiDesc ( ) [inline]

Constructor sets defaults


Member Function Documentation

void FractureTools::FractureVoronoiDesc::setToDefault ( ) [inline]

Sets the default values:

siteCount = 0; sites = NULL; faceNoise.setToDefault(); instanceChunks = false; useDisplacementMaps = false; noiseMode = NoiseWavePlane; materialDesc.setToDefault();


Member Data Documentation

Describes the characteristics of the interior surfaces. If the noise is 0, the cutting surface will smooth. Otherwise, there will be some variation, or roughness, to the surface.

Note: this noise is applied only to the graphics of the chunks. The chunks' collision volumes AND the chunks' children (if fractured further) will NOT be affected by this noise.

If instanceChunks is true, corresponding chunks in different destructible actors will be instanced.

physx::NxFractureMaterialDesc FractureTools::FractureVoronoiDesc::materialDesc

Material application descriptor used for each slice. Note: the U-direction and UV offset in the descriptor will be ignored - UV mapping is done in arbitrary orientation and translation on each chunk face.

The noise mode. If displacement maps are enabled, NoisePerlin3D will be used.

Number of cell sites in the sites array. Must be positive.

Array of cell sites. The length of this array is given by siteCount.

If true, slice geometry and noise will be stored in a separate displacement offset buffer.


The documentation for this struct was generated from the following file:

Generated on Mon Apr 28 2014 08:01:20

Copyright © 2012-2014 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.