3ds Max C++ API Reference
Loading...
Searching...
No Matches
IFloatFieldSampler Class Reference

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/IFieldHelper.h>

Public Member Functions

 IFloatFieldSampler ()
virtual ~IFloatFieldSampler ()=default
virtual bool Sample (const Point3 &pos, float &valueOut, float &strengthOut)
 Sample a point in the IFieldHelper's local space and obtain a float value.

Constructor & Destructor Documentation

◆ IFloatFieldSampler()

IFloatFieldSampler ( )
inline
52{}

◆ ~IFloatFieldSampler()

virtual ~IFloatFieldSampler ( )
virtualdefault

Member Function Documentation

◆ Sample()

virtual bool Sample ( const Point3 & pos,
float & valueOut,
float & strengthOut )
inlinevirtual

Sample a point in the IFieldHelper's local space and obtain a float value.

Samples a point in space. If the point is located within the field, the method returns 'true' and fills in the 'valueOut' with the value of the field at that location and 'strengthOut' with a strength value in the range [0,1]

Parameters
[in]pos: The position to be sampled, in the local space of the IFieldHelper
[out]valueOutThe value of the point in space, if the point being sampled lies within the field bounds. Can be any value, determined by the field.
[out]strengthOut: The strength of the field at the given point in space, if the point being sampled lies within the field bounds. Range is [0,1]
Returns
'true' if the point being sampled lies within the field; otherwise 'false'
72 {
73 return false;
74 }