OpenVDB: AX Code Examples

OpenVDB 8.1.0

AX Code Examples

# AX Code Examples

  This page demonstrates a range of examples which use AX to manipulate OpenVDB point and volume data and can be used as a quick start demonstration on the capabilities of the software. These examples are constantly being updated but do not cover all aspects of AX!

# Contents

- Points Examples
  - Basic point attributes
  - axexamplepointdelete
  - axexamplepointdrag
  - axexamplepointcurlnoise
  - axexamplepointtransforms
- axexamplevolumes
  - axexamplevolumeclamp
  - axexamplevolumevel
  - axexamplevolumeblend

# Points Examples

  These examples demonstrate how to use AX on OpenVDB points grids.

## Basic point attributes

  Below is a small example which demonstrates working with a few point attributes. The @ symbol is the identifier for an AX attribute. The type of each attribute is specified before the @ symbol and the name is specified afterwards. For example: `int@count` would imply an integer attribute called count.

  In this example there are three point attributes: a float attribute speed, a vec3f float attribute velocity and a vec3f float attribute colour.

  This snippet uses the functions length and fit to give points a colour between black and white based on their speed.