APEX Destructible Module: FractureTools::SliceParameters Struct Reference

NVIDIA APEX

FractureTools::SliceParameters Struct Reference

#include <FractureToolsStructs.h>

List of all members.

Public Types

enum  Order {
  XYZ,
  YZX,
  ZXY,
  ZYX,
  YXZ,
  XZY,
  Through
}

Public Member Functions

 SliceParameters ()
void setToDefault ()

Public Attributes

unsigned order
unsigned splitsPerPass [3]
float linearVariation [3]
float angularVariation [3]
NoiseParameters noise [3]

Detailed Description

SliceParameters

The slicing parameters for X, Y, and Z slicing of a mesh.


Member Enumeration Documentation

Which axis order to slice the mesh. This only matters if there is randomness in the slice surface.

Enumerator:
XYZ 
YZX 
ZXY 
ZYX 
YXZ 
XZY 
Through 

Constructor & Destructor Documentation

FractureTools::SliceParameters::SliceParameters ( ) [inline]

Constructor sets defaults


Member Function Documentation

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

Sets all NoiseParameters to their defaults: order = XYZ; splitsPerPass[0] = splitsPerPass[1] = splitsPerPass[2] = 1; linearVariation[0] = linearVariation[1] = linearVariation[2] = 0.1f; angularVariation[0] = angularVariation[1] = angularVariation[2] = 20.0f*3.1415927f/180.0f; noise[0].setToDefault(); noise[1].setToDefault(); noise[2].setToDefault();


Member Data Documentation

Variation in the slice surface angle along each axis. 0 variation means the slice surfaces are axis-aligned. Otherwise, the surface normal will be varied randomly, with angle to the axis somewhere within the given variation (in radians).

Variation in slice position along each axis. This is a relative quantity. linearVariation[axis] = 0 means the slicing offsets are evenly spaced across the mesh along the axis. linearVariation[axis] = 1 means the slicing offsets are randomly chosen in a range of width 1/(splitsPerPass[axis]+1) times the width of the mesh along the axis.

The noise for each slicing direction

The slicing order (see the Order enum)

How many times to slice along each axis


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

Generated on Fri Dec 15 2017 13:58:22

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