beastapi/beastpointcloud.h File Reference

#include "beastapitypes.h"

File Description

The api for specifying point clouds in beast.

Functions

ILBStatus ILBAddPointCloudData (ILBPointCloudHandle pointCloud, const ILBVec3 *pointData, const ILBVec3 *normalData, int32 pointCount)
 
ILBStatus ILBCreatePointCloud (ILBSceneHandle scene, ILBConstString name, ILBPointCloudHandle *pointCloud)
 
ILBStatus ILBEndPointCloud (ILBPointCloudHandle pointCloud)
 

Function Documentation

ILBStatus ILBAddPointCloudData ( ILBPointCloudHandle  pointCloud,
const ILBVec3 pointData,
const ILBVec3 normalData,
int32  pointCount 
)

Adds a chunk of point data to a point cloud.

This can be called multiple times to keep temporary buffer bounded.

Parameters
pointCloudthe point cloud to add vertices to.
pointDataa pointer to an array of points
normalDataa pointer to an array of normals for the points
pointCountthe number of points and normals specified with this call. Behavior is undefined if vertexData or normalsData contains less than vertexCount vertices/normals
Returns
The result of the operation.
+ Examples:
ILBStatus ILBCreatePointCloud ( ILBSceneHandle  scene,
ILBConstString  name,
ILBPointCloudHandle pointCloud 
)

Begins creation of a Point Cloud.

Parameters
scenethe scene the point cloud should be a part of
namethe name of the point cloud, must be unique within the scene.
pointClouda pointer to a point cloud handle to store the result in.
Returns
The result of the operation.
+ Examples:
ILBStatus ILBEndPointCloud ( ILBPointCloudHandle  pointCloud)

Finalizes a point cloud.


After this call it's impossible to add more points and it's possible to use the point cloud in a baking.

Parameters
pointCloudthe point cloud to finalize
Returns
The result of the operation.
+ Examples:

Go to the source code of this file.