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

Static Public Member Functions

static void init ()
 
static void destroy ()
 
static void generate_halton_samples (CoreBasicArray< double > &samples, unsigned int dim, unsigned int seed)
 
static void generate_halton_samples (CoreBasicArray< GMathVec2d > &samples, unsigned int u_dim, unsigned int v_dim, unsigned int seed)
 
static void generate_golden_samples (CoreBasicArray< double > &samples, unsigned int seed)
 
static void generate_hammersley_samples (CoreBasicArray< GMathVec2d > &samples, unsigned int seed)
 
static void generate_random_samples (CoreBasicArray< GMathVec2d > &samples, unsigned int seed)
 
static bool surface_uniform (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, const bool &stratified_jitter, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, const CoreBasicArray< unsigned int > &shading_groups, GeometrySubdivision *subdivision, double previous_geometry_cdf, const long &seed=0)
 
static bool surface_blue_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, const CoreBasicArray< unsigned int > &shading_groups, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_uniform (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, const bool &stratified_jitter, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, unsigned int sg_index=-1, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_random_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_count (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const unsigned int &sample_count, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static bool surface_blue_noise_density (const CtxEval &eval_ctx, const GeometryObject &geometry, const GMathMatrix4x4d &xform, const double &density_per_area_unit, CoreArray< GeometryPrimitiveSampleDescriptor > &samples, CoreArray< GMathVec3d > &positions, CoreArray< GMathVec3d > &geom_normals, CoreArray< GMathVec3d > &smooth_normals, double &sample_radius, unsigned int sg_index=-1, const long &seed=0, AppProgressBar *progress_bar=0)
 
static void disk_uniform (CoreArray< GMathVec2d > &samples, const unsigned int &diameter_count)
 
static void grid_uniform (CoreArray< GMathVec2d > &samples, const unsigned int &side_count, const GMathVec2d &min=GMathVec2d(0.0, 0.0), const GMathVec2d &max=GMathVec2d(1.0, 1.0))
 
static unsigned int shuffle_index (const unsigned int &i, const unsigned int &range)
 
template<class T , class R >
static void shuffle (T *values, unsigned int count, R &rng)
 
template<class T , class R >
static void shuffle (CoreBasicArray< T > &array, R &rng)
 
static double compute_power_heuristic (const double &f, const double &g)