Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | List of all members
GeometryPointCloud Class Reference

Class representing a point cloud. More...

Inheritance diagram for GeometryPointCloud:
CoreBaseType

Classes

class  SampleLoader
 
struct  SupportDeformedDescriptor
 

Public Types

typedef CoreSharedPointer
< SampleLoader
SampleLoaderPtr
 

Public Member Functions

 GeometryPointCloud (const unsigned int &point_count=0)
 
 GeometryPointCloud (const GeometryPointCloud &other, const bool &is_instance=false)
 
const Topology & get_topology () const
 
const Geometry & get_geometry () const
 
Topology & get_topology ()
 
Geometry & get_geometry ()
 
bool is_compatible_with (const GeometryPointCloud &other) const
 Tell if the current point cloud is compatible with another one.
 
size_t get_memory_size () const
 Get the memory size of the point cloud.
 
unsigned int get_point_count () const
 Get the number of points.
 
void get_sample (const unsigned int &point_index, GeometryPointSample &sample) const
 Get a geometry sample corresponding to a point.
 
bool has_support () const
 Tell if the points have support information, i.e. if the points have been generated by sampling a geometry.
 
bool has_positions () const
 Tell if points have positions.
 
bool has_normals () const
 Tell if points have normals.
 
bool has_velocities () const
 Tell if points have velocities.
 
bool has_sampling () const
 Tell if positions are sampled over the time.
 
bool is_animated () const
 Tell if the points are animated (with either velocities or sampling)
 
const GMathTimeSamplingget_sampling () const
 Return the time sampling for positions.
 
bool init (const unsigned int &point_count, const bool &has_positions, const bool &has_normals, const bool &has_velocities)
 Init the point cloud.
 
bool init (const unsigned int &point_count, const GMathVec3f *positions=0, const GMathVec3f *normals=0, const GMathVec3f *velocities=0)
 Init the point cloud.
 
bool init (const unsigned int &point_count, const GeometryDescriptor &support_geometry, const unsigned int *support_primitive_indices, const GMathVec2f *support_primitive_uv, const GMathVec3f *positions=0, const GMathVec3f *normals=0, const GMathVec3f *velocities=0)
 Init the point cloud.
 
bool init (const unsigned int &point_count, const GeometryDescriptor &support_geometry, const GeometryPrimitiveSampleDescriptor *support_primitive_samples, const GMathVec3f *positions=0, const GMathVec3f *normals=0, const GMathVec3f *velocities=0)
 Init the point cloud.
 
bool init (const unsigned int &point_count, const CoreArray< GeometryDescriptor > &support_geometries, const unsigned int *support_geometry_indices, const unsigned int *support_primitive_indices, const GMathVec2f *support_primitive_uv, const GMathVec3f *positions=0, const GMathVec3f *normals=0, const GMathVec3f *velocities=0)
 Init the point cloud.
 
bool init_support (GeometryDescriptor geometry, const unsigned int *primitive_indices, const GMathVec2f *primitive_uv)
 Init the support information of points.
 
bool init_support (GeometryDescriptor geometry, const GeometryPrimitiveSampleDescriptor *primitive_samples)
 Init the support information of points.
 
bool init_support (const CoreArray< GeometryDescriptor > &geometries, const unsigned int *geometry_indices, const unsigned int *primitive_indices, const GMathVec2f *primitive_uv)
 Init the support information of points.
 
void init_geometry (const bool &has_positions, const bool &has_normals, const bool &has_velocities)
 Init the geometry of the point cloud.
 
void init_geometry (const GMathVec3f *positions, const GMathVec3f *normals, const GMathVec3f *velocities)
 Init the geometry of the point cloud.
 
void init_geometry (const GMathVec3d *positions, const GMathVec3d *normals, const GMathVec3d *velocities)
 Init the geometry of the point cloud.
 
void init_geometry (const GMathVec3f *positions, const GMathVec3f *normals, const GMathVec3f *velocities, const CoreArray< GeometryDescriptor > &geometries)
 Init the geometry of the point cloud with its support geometries information.
 
void init_geometry (const GMathVec3d *positions, const GMathVec3d *normals, const GMathVec3d *velocities, const CoreArray< GeometryDescriptor > &geometries)
 Init the geometry of the point cloud with its support geometries information.
 
void init_geometry (const GMathVec3f *positions, const GMathVec3f *normals, const GMathVec3f *velocities, const CoreArray< SupportDeformedDescriptor > &geometries)
 Init the geometry of the point cloud with its support geometries information.
 
void init_geometry (const GMathVec3d *positions, const GMathVec3d *normals, const GMathVec3d *velocities, const CoreArray< SupportDeformedDescriptor > &geometries)
 Init the geometry of the point cloud with its support geometries information.
 
void init_positions (const GMathVec3f &default_position)
 Init the positions of points.
 
void init_positions (const GMathVec3f *positions)
 Init the positions of points.
 
void init_positions (const GMathVec3d *positions)
 Init the positions of points.
 
void init_normals (const GMathVec3f &default_normal)
 Init the normals of points.
 
void init_normals (const GMathVec3f *normals, const bool &is_normalized=false)
 Init the normals of points.
 
void init_normals (const GMathVec3d *normals, const bool &is_normalized=false)
 Init the normals of points.
 
void init_velocities (const GMathVec3f &default_velocity)
 Init the velocities of points.
 
void init_velocities (const GMathVec3f *velocities)
 Init the velocities of points.
 
void init_velocities (const GMathVec3d *velocities)
 Init the velocities of points.
 
void init_sampling (const GMathTimeSampling &time_sampling, SampleLoaderPtr loader)
 Init sampling of positions over the time.
 
GMathVec3f get_position (const unsigned int &index) const
 Get the position of a point.
 
CoreBasicArray< GMathVec3f > get_positions () const
 Get positions of points.
 
void get_positions (CoreArray< GMathVec3f > &positions) const
 Get positions of points.
 
void get_positions (GMathVec3f *positions) const
 
 
void get_positions (GMathVec3f *positions, const unsigned int &begin, const unsigned int &end) const
 Get positions of a range of points.
 
GeometryPositionArray get_positions_at (const double &time) const
 Get positions at a given time.
 
GMathVec3f get_normal (const unsigned int &index) const
 Get the normal of a point.
 
void get_normals (CoreArray< GMathVec3f > &normals) const
 Get normals of points.
 
void get_normals (GMathVec3f *normals) const
 
 
void get_normals (GMathVec3f *normals, const unsigned int &begin, const unsigned int &end) const
 Get normals of a range of points.
 
GMathVec3f get_velocity (const unsigned int &index) const
 Get the velocity of a point.
 
CoreBasicArray< GMathVec3f > get_velocities () const
 Get velocities of points.
 
void get_velocities (CoreArray< GMathVec3f > &velocities) const
 Get velocities of points.
 
void get_velocities (GMathVec3f *velocities) const
 
 
void get_velocities (GMathVec3f *velocities, const unsigned int &begin, const unsigned int &end) const
 Get velocities of a range of points.
 
void set_position (const GMathVec3f &position, const unsigned int &index)
 Set the position of a point.
 
void set_positions (const CoreBasicArray< GMathVec3f > &positions)
 Set positions of all points.
 
void set_positions (const GMathVec3f *positions)
 Set positions of all points.
 
void set_positions (const CoreBasicArray< GMathVec3f > &positions, const unsigned int &begin, const unsigned int &end)
 Set positions of a range of points.
 
void set_positions (const GMathVec3f *positions, const unsigned int &begin, const unsigned int &end)
 Set positions of a range of points.
 
void set_normal (const GMathVec3f &normal, const unsigned int &index)
 Set the normal of a point.
 
void set_normals (const GMathVec3f *normals)
 Set normals of all points.
 
void set_normals (const GMathVec3f *normals, const unsigned int &begin, const unsigned int &end)
 Set normals of a range of points.
 
void set_velocity (const GMathVec3f &velocity, const unsigned int &index)
 Set the velocity of a point.
 
void set_velocities (const GMathVec3f *velocities)
 Set velocities of all points.
 
void set_velocities (const GMathVec3f *velocities, const unsigned int &begin, const unsigned int &end)
 Set velocities of a range of points.
 
GeometryPointCloudoperator= (const GeometryPointCloud &other)
 
- Public Member Functions inherited from CoreBaseType
bool is_kindof (const CoreClassInfo &cinfo) const
 

Additional Inherited Members

- Static Public Member Functions inherited from CoreBaseType
static const CoreClassInfoclass_info ()
 Get the type descriptor of this instance.
 

Detailed Description

Class representing a point cloud.

This class is used internally by geometry objects to hold the vertex information. It can contain positions, normals, velocities and a support information that indicates if points have been generated by sampling a geometry.


Class Documentation

struct GeometryPointCloud::SupportDeformedDescriptor
Class Members
const GeometryObject * deformed_geometry
GMathMatrix4x4d matrix

Member Function Documentation

GMathVec3f GeometryPointCloud::get_normal ( const unsigned int &  index) const

Get the normal of a point.

Parameters
[in]indexthe index of the point to get
Returns
the normal of the point
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
void GeometryPointCloud::get_normals ( CoreArray< GMathVec3f > &  normals) const

Get normals of points.

Parameters
[out]normalsarray of normals for all points
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
void GeometryPointCloud::get_normals ( GMathVec3f *  normals) const

void GeometryPointCloud::get_normals ( GMathVec3f *  normals,
const unsigned int &  begin,
const unsigned int &  end 
) const

Get normals of a range of points.

Parameters
[out]normalsarray of normals for returned points
[in]beginthe index of the first normal to return
[in]endthe index following the last normal to return
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
GMathVec3f GeometryPointCloud::get_position ( const unsigned int &  index) const

Get the position of a point.

Parameters
[in]indexthe index of the point to get
Returns
the position of the point
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
CoreBasicArray< GMathVec3f > GeometryPointCloud::get_positions ( ) const

Get positions of points.

Returns
array of positions for all points
void GeometryPointCloud::get_positions ( CoreArray< GMathVec3f > &  positions) const

Get positions of points.

Parameters
[out]positionsarray of positions for all points
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::get_positions ( GMathVec3f *  positions) const

void GeometryPointCloud::get_positions ( GMathVec3f *  positions,
const unsigned int &  begin,
const unsigned int &  end 
) const

Get positions of a range of points.

Parameters
[out]positionsarray of positions for returned points
[in]beginthe index of the first position to return
[in]endthe index following the last position to return
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
GeometryPositionArray GeometryPointCloud::get_positions_at ( const double &  time) const

Get positions at a given time.

Parameters
[in]timetime at which the positions have to be evaluated
Returns
positions at the given time
void GeometryPointCloud::get_sample ( const unsigned int &  point_index,
GeometryPointSample sample 
) const

Get a geometry sample corresponding to a point.

Parameters
[in]point_indexthe index of the point
[out]samplethe sample on the geometry that is supporting the point
CoreBasicArray< GMathVec3f > GeometryPointCloud::get_velocities ( ) const

Get velocities of points.

Returns
array of velocities for all points
void GeometryPointCloud::get_velocities ( CoreArray< GMathVec3f > &  velocities) const

Get velocities of points.

Parameters
[out]velocitiesarray of velocities for all points
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.
void GeometryPointCloud::get_velocities ( GMathVec3f *  velocities) const

void GeometryPointCloud::get_velocities ( GMathVec3f *  velocities,
const unsigned int &  begin,
const unsigned int &  end 
) const

Get velocities of a range of points.

Parameters
[out]velocitiesarray of velocities for returned points
[in]beginthe index of the first velocity to return
[in]endthe index following the last velocity to return
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.
GMathVec3f GeometryPointCloud::get_velocity ( const unsigned int &  index) const

Get the velocity of a point.

Parameters
[in]indexthe index of the point to get
Returns
the velocity of the point
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.
bool GeometryPointCloud::init ( const unsigned int &  point_count,
const bool &  has_positions,
const bool &  has_normals,
const bool &  has_velocities 
)

Init the point cloud.

Parameters
[in]point_countthe number of points wanted
[in]positionstells whether the points have positions
[in]normalstells whether the points have normals
[in]velocitiestells whether the points have velocities
bool GeometryPointCloud::init ( const unsigned int &  point_count,
const GMathVec3f *  positions = 0,
const GMathVec3f *  normals = 0,
const GMathVec3f *  velocities = 0 
)

Init the point cloud.

Parameters
[in]point_countthe number of points wanted
[in]positionsarray of positions, one position per point
[in]normalsarray of normals, one normal per point
[in]velocitiesarray of velocities, one velocity per point
bool GeometryPointCloud::init ( const unsigned int &  point_count,
const GeometryDescriptor support_geometry,
const unsigned int *  support_primitive_indices,
const GMathVec2f *  support_primitive_uv,
const GMathVec3f *  positions = 0,
const GMathVec3f *  normals = 0,
const GMathVec3f *  velocities = 0 
)

Init the point cloud.

Parameters
[in]point_countthe number of points wanted
[in]support_geometrythe geometry on which the points have been generated
[in]support_primitive_indicesarray of primitives on which points have been generated, one per point
[in]support_primitive_uvarray of primitive UV coordinates at which points have been generated, one per point
[in]positionsarray of positions, one position per point
[in]normalsarray of normals, one normal per point
[in]velocitiesarray of velocities, one velocity per point
bool GeometryPointCloud::init ( const unsigned int &  point_count,
const GeometryDescriptor support_geometry,
const GeometryPrimitiveSampleDescriptor support_primitive_samples,
const GMathVec3f *  positions = 0,
const GMathVec3f *  normals = 0,
const GMathVec3f *  velocities = 0 
)

Init the point cloud.

Parameters
[in]point_countthe number of points wanted
[in]support_geometrythe geometry on which the points have been generated
[in]support_primitive_samplesarray of corresponding samples on the support geometry, one per point
[in]positionsarray of positions, one position per point
[in]normalsarray of normals, one normal per point
[in]velocitiesarray of velocities, one velocity per point
bool GeometryPointCloud::init ( const unsigned int &  point_count,
const CoreArray< GeometryDescriptor > &  support_geometries,
const unsigned int *  support_geometry_indices,
const unsigned int *  support_primitive_indices,
const GMathVec2f *  support_primitive_uv,
const GMathVec3f *  positions = 0,
const GMathVec3f *  normals = 0,
const GMathVec3f *  velocities = 0 
)

Init the point cloud.

Parameters
[in]point_countthe number of points wanted
[in]support_geometriesan array of support geometries
[in]support_geometry_indicesarray of geometry indices on which the points have been generated, one per point
[in]support_primitive_indicesarray of primitives on which points have been generated, one per point
[in]support_primitive_uvarray of primitive UV coordinates at which points have been generated, one per point
[in]positionsarray of positions, one position per point
[in]normalsarray of normals, one normal per point
[in]velocitiesarray of velocities, one velocity per point
void GeometryPointCloud::init_geometry ( const bool &  has_positions,
const bool &  has_normals,
const bool &  has_velocities 
)

Init the geometry of the point cloud.

Parameters
[in]has_positionstell if points have positions
[in]has_normalstell if points have normals
[in]has_velocitiestell if points have velocities
Note
This function only allocates or frees the data for positions, normals and velocities according to the given values.
void GeometryPointCloud::init_geometry ( const GMathVec3f *  positions,
const GMathVec3f *  normals,
const GMathVec3f *  velocities 
)

Init the geometry of the point cloud.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
Note
If needed, this function allocates or frees the data for positions, normals and velocities according to the given values.
void GeometryPointCloud::init_geometry ( const GMathVec3d *  positions,
const GMathVec3d *  normals,
const GMathVec3d *  velocities 
)

Init the geometry of the point cloud.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
Note
If needed, this function allocates or frees the data for positions, normals and velocities according to the given values.

void GeometryPointCloud::init_geometry ( const GMathVec3f *  positions,
const GMathVec3f *  normals,
const GMathVec3f *  velocities,
const CoreArray< GeometryDescriptor > &  geometries 
)

Init the geometry of the point cloud with its support geometries information.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
[in]geometriesarray of the support geometries used to generate the point cloud
void GeometryPointCloud::init_geometry ( const GMathVec3d *  positions,
const GMathVec3d *  normals,
const GMathVec3d *  velocities,
const CoreArray< GeometryDescriptor > &  geometries 
)

Init the geometry of the point cloud with its support geometries information.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
[in]geometriesarray of the support geometries used to generate the point cloud

void GeometryPointCloud::init_geometry ( const GMathVec3f *  positions,
const GMathVec3f *  normals,
const GMathVec3f *  velocities,
const CoreArray< SupportDeformedDescriptor > &  geometries 
)

Init the geometry of the point cloud with its support geometries information.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
[in]geometriesarray of the support geometries used to generate the point cloud
void GeometryPointCloud::init_geometry ( const GMathVec3d *  positions,
const GMathVec3d *  normals,
const GMathVec3d *  velocities,
const CoreArray< SupportDeformedDescriptor > &  geometries 
)

Init the geometry of the point cloud with its support geometries information.

Parameters
[in]positionsarray of positions, one per point
[in]normalsarray of normals, one per point
[in]velocitiesarray of velocities, one per point
[in]geometriesarray of the support geometries used to generate the point cloud

void GeometryPointCloud::init_normals ( const GMathVec3f &  default_normal)

Init the normals of points.

Parameters
[in]default_normalthe normal value to affect to all points
Note
If needed, this function allocates the data for normals.
void GeometryPointCloud::init_normals ( const GMathVec3f *  normals,
const bool &  is_normalized = false 
)

Init the normals of points.

Parameters
[in]normalsarray of normals, one per point
Note
If needed, this function allocates or frees the data for normals according to the value of the pointer.
void GeometryPointCloud::init_normals ( const GMathVec3d *  normals,
const bool &  is_normalized = false 
)

Init the normals of points.

Parameters
[in]normalsarray of normals, one per point
Note
If needed, this function allocates or frees the data for normals according to the value of the pointer.

void GeometryPointCloud::init_positions ( const GMathVec3f &  default_position)

Init the positions of points.

Parameters
[in]default_positionthe position value to affect to all points
Note
If needed, this function allocates the data for positions.
void GeometryPointCloud::init_positions ( const GMathVec3f *  positions)

Init the positions of points.

Parameters
[in]positionsarray of positions, one per point
Note
If needed, this function allocates or frees the data for positions according to the value of the pointer.
void GeometryPointCloud::init_positions ( const GMathVec3d *  positions)

Init the positions of points.

Parameters
[in]positionsarray of positions, one per point
Note
If needed, this function allocates or frees the data for positions according to the value of the pointer.

void GeometryPointCloud::init_sampling ( const GMathTimeSampling time_sampling,
SampleLoaderPtr  loader 
)

Init sampling of positions over the time.

Parameters
[in]time_samplingthe repartition of samples over the time
[in]loaderthe loader that will be used to load the positions samples on demand
bool GeometryPointCloud::init_support ( GeometryDescriptor  geometry,
const unsigned int *  primitive_indices,
const GMathVec2f *  primitive_uv 
)

Init the support information of points.

Parameters
[in]geometrythe geometry on which the points have been generated
[in]primitive_indicesarray of primitives on which points have been generated, one per point
[in]primitive_uvarray of primitive UV coordinates at which points have been generated, one per point
bool GeometryPointCloud::init_support ( GeometryDescriptor  geometry,
const GeometryPrimitiveSampleDescriptor primitive_samples 
)

Init the support information of points.

Parameters
[in]geometrythe geometry on which the points have been generated
[in]primitive_samplesarray of corresponding samples on the support geometry, one per point
bool GeometryPointCloud::init_support ( const CoreArray< GeometryDescriptor > &  geometries,
const unsigned int *  geometry_indices,
const unsigned int *  primitive_indices,
const GMathVec2f *  primitive_uv 
)

Init the support information of points.

Parameters
[in]geometriesan array of support geometries
[in]geometry_indicesarray of geometry indices on which the points have been generated, one per point
[in]primitive_indicesarray of primitives on which points have been generated, one per point
[in]primitive_uvarray of primitive UV coordinates at which points have been generated, one per point
void GeometryPointCloud::init_velocities ( const GMathVec3f &  default_velocity)

Init the velocities of points.

Parameters
[in]default_velocitythe velocity value to affect to all points
Note
If needed, this function allocates the data for velocities.
void GeometryPointCloud::init_velocities ( const GMathVec3f *  velocities)

Init the velocities of points.

Parameters
[in]velocitiesarray of velocities, one per point
Note
If needed, this function allocates or frees the data for velocities according to the value of the pointer.
void GeometryPointCloud::init_velocities ( const GMathVec3d *  velocities)

Init the velocities of points.

Parameters
[in]velocitiesarray of velocities, one per point
Note
If needed, this function allocates or frees the data for velocities according to the value of the pointer.

bool GeometryPointCloud::is_compatible_with ( const GeometryPointCloud other) const
inline

Tell if the current point cloud is compatible with another one.

Parameters
[in]otherthe point cloud to test
Returns
true if the point cloud is compatible
Note
In order to be compatible, 2 point clouds must have the same topology.
void GeometryPointCloud::set_normal ( const GMathVec3f &  normal,
const unsigned int &  index 
)

Set the normal of a point.

Parameters
[in]normalthe new normal value
[in]indexthe index of the point
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
void GeometryPointCloud::set_normals ( const GMathVec3f *  normals)

Set normals of all points.

Parameters
[in]normalsthe array of new normal values, one per point
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
void GeometryPointCloud::set_normals ( const GMathVec3f *  normals,
const unsigned int &  begin,
const unsigned int &  end 
)

Set normals of a range of points.

Parameters
[in]normalsthe array of new normal values, one per point in the range
[in]beginthe index of the first normal to set
[in]endthe index following the last normal to set
Note
This function doesn't check if normals are available, it must be checked with has_normals() first.
void GeometryPointCloud::set_position ( const GMathVec3f &  position,
const unsigned int &  index 
)

Set the position of a point.

Parameters
[in]positionthe new position value
[in]indexthe index of the point
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::set_positions ( const CoreBasicArray< GMathVec3f > &  positions)

Set positions of all points.

Parameters
[in]positionsthe array of new position values, one per point
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::set_positions ( const GMathVec3f *  positions)

Set positions of all points.

Parameters
[in]positionsthe array of new position values, one per point
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::set_positions ( const CoreBasicArray< GMathVec3f > &  positions,
const unsigned int &  begin,
const unsigned int &  end 
)

Set positions of a range of points.

Parameters
[in]positionsthe array of new position values, one per point in the range
[in]beginthe index of the first position to set
[in]endthe index following the last position to set
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::set_positions ( const GMathVec3f *  positions,
const unsigned int &  begin,
const unsigned int &  end 
)

Set positions of a range of points.

Parameters
[in]positionsthe array of new position values, one per point in the range
[in]beginthe index of the first position to set
[in]endthe index following the last position to set
Note
This function doesn't check if positions are available, it must be checked with has_positions() first.
void GeometryPointCloud::set_velocities ( const GMathVec3f *  velocities)

Set velocities of all points.

Parameters
[in]velocitiesthe array of new velocity values, one per point
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.
void GeometryPointCloud::set_velocities ( const GMathVec3f *  velocities,
const unsigned int &  begin,
const unsigned int &  end 
)

Set velocities of a range of points.

Parameters
[in]velocitiesthe array of new velocity values, one per point in the range
[in]beginthe index of the first velocity to set
[in]endthe index following the last velocity to set
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.
void GeometryPointCloud::set_velocity ( const GMathVec3f &  velocity,
const unsigned int &  index 
)

Set the velocity of a point.

Parameters
[in]velocitythe new velocity value
[in]indexthe index of the point
Note
This function doesn't check if velocities are available, it must be checked with has_velocities() first.