#include <MRCCuda/exports.h>#include <MRCMesh/MRId.h>#include <MRCMisc/common.h>#include <stddef.h>Go to the source code of this file.
Typedefs | |
| typedef struct MR_Cuda_FastWindingNumber | MR_Cuda_FastWindingNumber |
| typedef struct MR_Cuda_FastWindingNumber MR_Cuda_FastWindingNumber |
the class for fast approximate computation of winding number for a mesh (using its AABB tree) Generated from class MR::Cuda::FastWindingNumber. Base classes: Direct: (non-virtual) MR::IFastWindingNumber MR::IFastWindingNumberByParts Supported MR_PassBy modes: MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcFromGrid | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_std_vector_float * | res, | ||
| const MR_Vector3i * | dims, | ||
| const MR_AffineXf3f * | gridToMeshXf, | ||
| float | beta, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcFromGrid. Parameter _this can not be null. It is a single object. Parameter res can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter gridToMeshXf can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcFromGridByParts | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_PassBy | resFunc_pass_by, | ||
| MR_std_function_expected_void_std_string_from_std_vector_float_rvalue_ref_const_MR_Vector3i_ref_int * | resFunc, | ||
| const MR_Vector3i * | dims, | ||
| const MR_AffineXf3f * | gridToMeshXf, | ||
| float | beta, | ||
| int | layerOverlap, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcFromGridByParts. Parameter _this can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter gridToMeshXf can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcFromGridWithDistances | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_std_vector_float * | res, | ||
| const MR_Vector3i * | dims, | ||
| const MR_AffineXf3f * | gridToMeshXf, | ||
| const MR_DistanceToMeshOptions * | options, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcFromGridWithDistances. Parameter _this can not be null. It is a single object. Parameter res can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter gridToMeshXf can not be null. It is a single object. Parameter options can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcFromGridWithDistancesByParts | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_PassBy | resFunc_pass_by, | ||
| MR_std_function_expected_void_std_string_from_std_vector_float_rvalue_ref_const_MR_Vector3i_ref_int * | resFunc, | ||
| const MR_Vector3i * | dims, | ||
| const MR_AffineXf3f * | gridToMeshXf, | ||
| const MR_DistanceToMeshOptions * | options, | ||
| int | layerOverlap, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcFromGridWithDistancesByParts. Parameter _this can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter gridToMeshXf can not be null. It is a single object. Parameter options can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcFromVector | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_std_vector_float * | res, | ||
| const MR_std_vector_MR_Vector3f * | points, | ||
| float | beta, | ||
| MR_FaceId | skipFace, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcFromVector. Parameter _this can not be null. It is a single object. Parameter res can not be null. It is a single object. Parameter points can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_FastWindingNumber_calcSelfIntersections | ( | MR_Cuda_FastWindingNumber * | _this, |
| MR_FaceBitSet * | res, | ||
| float | beta, | ||
| const MR_std_function_bool_from_float * | cb ) |
Generated from method MR::Cuda::FastWindingNumber::calcSelfIntersections. Parameter _this can not be null. It is a single object. Parameter res can not be null. It is a single object. Parameter cb can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_Construct | ( | const MR_Mesh * | mesh | ) |
constructs this from AABB tree of given mesh; Generated from constructor MR::Cuda::FastWindingNumber::FastWindingNumber. Parameter mesh can not be null. It is a single object. The reference to the parameter mesh might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Cuda_FastWindingNumber_Destroy() to free it when you're done using it.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_Cuda_FastWindingNumber * | _other ) |
Generated from constructor MR::Cuda::FastWindingNumber::FastWindingNumber. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Cuda_FastWindingNumber_Destroy() to free it when you're done using it.
| MRC_CUDA_API void MR_Cuda_FastWindingNumber_Destroy | ( | const MR_Cuda_FastWindingNumber * | _this | ) |
Destroys a heap-allocated instance of MR_Cuda_FastWindingNumber. Does nothing if the pointer is null.
| MRC_CUDA_API void MR_Cuda_FastWindingNumber_DestroyArray | ( | const MR_Cuda_FastWindingNumber * | _this | ) |
Destroys a heap-allocated array of MR_Cuda_FastWindingNumber. Does nothing if the pointer is null.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_DynamicDowncastFrom_MR_IFastWindingNumber | ( | const MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_DynamicDowncastFrom_MR_IFastWindingNumberByParts | ( | const MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_DynamicDowncastFromOrFail_MR_IFastWindingNumber | ( | const MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. This version is acting on mutable pointers. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_DynamicDowncastFromOrFail_MR_IFastWindingNumberByParts | ( | const MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. This version is acting on mutable pointers. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableDynamicDowncastFrom_MR_IFastWindingNumber | ( | MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableDynamicDowncastFrom_MR_IFastWindingNumberByParts | ( | MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will return zero if the target type is wrong. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableDynamicDowncastFromOrFail_MR_IFastWindingNumber | ( | MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableDynamicDowncastFromOrFail_MR_IFastWindingNumberByParts | ( | MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a dynamic downcast, it checks the type before casting. This version will throw if the target type is wrong. Parameter object can not be null. It is a single object. The reference to the parameter object might be preserved in the return value. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableStaticDowncastFrom_MR_IFastWindingNumber | ( | MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_MutableStaticDowncastFrom_MR_IFastWindingNumberByParts | ( | MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_IFastWindingNumber * MR_Cuda_FastWindingNumber_MutableUpcastTo_MR_IFastWindingNumber | ( | MR_Cuda_FastWindingNumber * | object | ) |
Upcasts an instance of MR::Cuda::FastWindingNumber to its base class MR::IFastWindingNumber. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_IFastWindingNumberByParts * MR_Cuda_FastWindingNumber_MutableUpcastTo_MR_IFastWindingNumberByParts | ( | MR_Cuda_FastWindingNumber * | object | ) |
Upcasts an instance of MR::Cuda::FastWindingNumber to its base class MR::IFastWindingNumberByParts. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_OffsetMutablePtr | ( | MR_Cuda_FastWindingNumber * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_OffsetPtr | ( | const MR_Cuda_FastWindingNumber * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_StaticDowncastFrom_MR_IFastWindingNumber | ( | const MR_IFastWindingNumber * | object | ) |
Downcasts an instance of MR::IFastWindingNumber to a derived class MR::Cuda::FastWindingNumber. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API const MR_Cuda_FastWindingNumber * MR_Cuda_FastWindingNumber_StaticDowncastFrom_MR_IFastWindingNumberByParts | ( | const MR_IFastWindingNumberByParts * | object | ) |
Downcasts an instance of MR::IFastWindingNumberByParts to a derived class MR::Cuda::FastWindingNumber. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API const MR_IFastWindingNumber * MR_Cuda_FastWindingNumber_UpcastTo_MR_IFastWindingNumber | ( | const MR_Cuda_FastWindingNumber * | object | ) |
Upcasts an instance of MR::Cuda::FastWindingNumber to its base class MR::IFastWindingNumber. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| MRC_CUDA_API const MR_IFastWindingNumberByParts * MR_Cuda_FastWindingNumber_UpcastTo_MR_IFastWindingNumberByParts | ( | const MR_Cuda_FastWindingNumber * | object | ) |
Upcasts an instance of MR::Cuda::FastWindingNumber to its base class MR::IFastWindingNumberByParts. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.