MeshLib C Docs
Loading...
Searching...
No Matches
MRCudaSweptVolume.h File Reference
#include <MRCCuda/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Cuda_ComputeToolDistance MR_Cuda_ComputeToolDistance

Functions

MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_DefaultConstruct (void)
MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_DefaultConstructArray (size_t num_elems)
MRC_CUDA_API const MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_OffsetPtr (const MR_Cuda_ComputeToolDistance *ptr, ptrdiff_t i)
MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_OffsetMutablePtr (MR_Cuda_ComputeToolDistance *ptr, ptrdiff_t i)
MRC_CUDA_API const MR_IComputeToolDistanceMR_Cuda_ComputeToolDistance_UpcastTo_MR_IComputeToolDistance (const MR_Cuda_ComputeToolDistance *object)
MRC_CUDA_API MR_IComputeToolDistanceMR_Cuda_ComputeToolDistance_MutableUpcastTo_MR_IComputeToolDistance (MR_Cuda_ComputeToolDistance *object)
MRC_CUDA_API const MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_StaticDowncastFrom_MR_IComputeToolDistance (const MR_IComputeToolDistance *object)
MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_MutableStaticDowncastFrom_MR_IComputeToolDistance (MR_IComputeToolDistance *object)
MRC_CUDA_API const MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_DynamicDowncastFrom_MR_IComputeToolDistance (const MR_IComputeToolDistance *object)
MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_MutableDynamicDowncastFrom_MR_IComputeToolDistance (MR_IComputeToolDistance *object)
MRC_CUDA_API const MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_DynamicDowncastFromOrFail_MR_IComputeToolDistance (const MR_IComputeToolDistance *object)
MRC_CUDA_API MR_Cuda_ComputeToolDistanceMR_Cuda_ComputeToolDistance_MutableDynamicDowncastFromOrFail_MR_IComputeToolDistance (MR_IComputeToolDistance *object)
MRC_CUDA_API void MR_Cuda_ComputeToolDistance_Destroy (const MR_Cuda_ComputeToolDistance *_this)
 Destroys a heap-allocated instance of MR_Cuda_ComputeToolDistance. Does nothing if the pointer is null.
MRC_CUDA_API void MR_Cuda_ComputeToolDistance_DestroyArray (const MR_Cuda_ComputeToolDistance *_this)
 Destroys a heap-allocated array of MR_Cuda_ComputeToolDistance. Does nothing if the pointer is null.
MRC_CUDA_API MR_expected_MR_Vector3i_std_stringMR_Cuda_ComputeToolDistance_prepare_MR_EndMillTool (MR_Cuda_ComputeToolDistance *_this, const MR_Vector3i *dims, const MR_Polyline3 *toolpath, const MR_EndMillTool *toolSpec)
MRC_CUDA_API MR_expected_MR_Vector3i_std_stringMR_Cuda_ComputeToolDistance_prepare_MR_Polyline2 (MR_Cuda_ComputeToolDistance *_this, const MR_Vector3i *dims, const MR_Polyline3 *toolpath, const MR_Polyline2 *toolProfile)
MRC_CUDA_API MR_expected_void_std_stringMR_Cuda_ComputeToolDistance_computeToolDistance (const MR_Cuda_ComputeToolDistance *_this, MR_std_vector_float *output, const MR_Vector3i *dims, float voxelSize, const MR_Vector3f *origin, float padding)

Typedef Documentation

◆ MR_Cuda_ComputeToolDistance

CUDA implementation of tool distance computation Generated from class MR::Cuda::ComputeToolDistance. Base classes: Direct: (non-virtual) MR::IComputeToolDistance Supported MR_PassBy modes: MR_PassBy_DefaultConstruct (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_Cuda_ComputeToolDistance_computeToolDistance()

MRC_CUDA_API MR_expected_void_std_string * MR_Cuda_ComputeToolDistance_computeToolDistance ( const MR_Cuda_ComputeToolDistance * _this,
MR_std_vector_float * output,
const MR_Vector3i * dims,
float voxelSize,
const MR_Vector3f * origin,
float padding )

Generated from method MR::Cuda::ComputeToolDistance::computeToolDistance. Parameter _this can not be null. It is a single object. Parameter output can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter origin 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.

◆ MR_Cuda_ComputeToolDistance_DefaultConstruct()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Cuda_ComputeToolDistance_Destroy() to free it when you're done using it.

◆ MR_Cuda_ComputeToolDistance_DefaultConstructArray()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Cuda_ComputeToolDistance_DestroyArray(). Use MR_Cuda_ComputeToolDistance_OffsetMutablePtr() and MR_Cuda_ComputeToolDistance_OffsetPtr() to access the array elements.

◆ MR_Cuda_ComputeToolDistance_Destroy()

MRC_CUDA_API void MR_Cuda_ComputeToolDistance_Destroy ( const MR_Cuda_ComputeToolDistance * _this)

Destroys a heap-allocated instance of MR_Cuda_ComputeToolDistance. Does nothing if the pointer is null.

◆ MR_Cuda_ComputeToolDistance_DestroyArray()

MRC_CUDA_API void MR_Cuda_ComputeToolDistance_DestroyArray ( const MR_Cuda_ComputeToolDistance * _this)

Destroys a heap-allocated array of MR_Cuda_ComputeToolDistance. Does nothing if the pointer is null.

◆ MR_Cuda_ComputeToolDistance_DynamicDowncastFrom_MR_IComputeToolDistance()

MRC_CUDA_API const MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_DynamicDowncastFrom_MR_IComputeToolDistance ( const MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_DynamicDowncastFromOrFail_MR_IComputeToolDistance()

MRC_CUDA_API const MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_DynamicDowncastFromOrFail_MR_IComputeToolDistance ( const MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_MutableDynamicDowncastFrom_MR_IComputeToolDistance()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_MutableDynamicDowncastFrom_MR_IComputeToolDistance ( MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_MutableDynamicDowncastFromOrFail_MR_IComputeToolDistance()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_MutableDynamicDowncastFromOrFail_MR_IComputeToolDistance ( MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_MutableStaticDowncastFrom_MR_IComputeToolDistance()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_MutableStaticDowncastFrom_MR_IComputeToolDistance ( MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_MutableUpcastTo_MR_IComputeToolDistance()

MRC_CUDA_API MR_IComputeToolDistance * MR_Cuda_ComputeToolDistance_MutableUpcastTo_MR_IComputeToolDistance ( MR_Cuda_ComputeToolDistance * object)

Upcasts an instance of MR::Cuda::ComputeToolDistance to its base class MR::IComputeToolDistance. The reference to the parameter object might be preserved in the return value.

◆ MR_Cuda_ComputeToolDistance_OffsetMutablePtr()

MRC_CUDA_API MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_OffsetMutablePtr ( MR_Cuda_ComputeToolDistance * 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.

◆ MR_Cuda_ComputeToolDistance_OffsetPtr()

MRC_CUDA_API const MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_OffsetPtr ( const MR_Cuda_ComputeToolDistance * 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.

◆ MR_Cuda_ComputeToolDistance_prepare_MR_EndMillTool()

MRC_CUDA_API MR_expected_MR_Vector3i_std_string * MR_Cuda_ComputeToolDistance_prepare_MR_EndMillTool ( MR_Cuda_ComputeToolDistance * _this,
const MR_Vector3i * dims,
const MR_Polyline3 * toolpath,
const MR_EndMillTool * toolSpec )

Generated from method MR::Cuda::ComputeToolDistance::prepare. Parameter _this can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter toolpath can not be null. It is a single object. Parameter toolSpec can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Vector3i_std_string_Destroy() to free it when you're done using it.

◆ MR_Cuda_ComputeToolDistance_prepare_MR_Polyline2()

MRC_CUDA_API MR_expected_MR_Vector3i_std_string * MR_Cuda_ComputeToolDistance_prepare_MR_Polyline2 ( MR_Cuda_ComputeToolDistance * _this,
const MR_Vector3i * dims,
const MR_Polyline3 * toolpath,
const MR_Polyline2 * toolProfile )

Generated from method MR::Cuda::ComputeToolDistance::prepare. Parameter _this can not be null. It is a single object. Parameter dims can not be null. It is a single object. Parameter toolpath can not be null. It is a single object. Parameter toolProfile can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Vector3i_std_string_Destroy() to free it when you're done using it.

◆ MR_Cuda_ComputeToolDistance_StaticDowncastFrom_MR_IComputeToolDistance()

MRC_CUDA_API const MR_Cuda_ComputeToolDistance * MR_Cuda_ComputeToolDistance_StaticDowncastFrom_MR_IComputeToolDistance ( const MR_IComputeToolDistance * object)

Downcasts an instance of MR::IComputeToolDistance to a derived class MR::Cuda::ComputeToolDistance. 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.

◆ MR_Cuda_ComputeToolDistance_UpcastTo_MR_IComputeToolDistance()

MRC_CUDA_API const MR_IComputeToolDistance * MR_Cuda_ComputeToolDistance_UpcastTo_MR_IComputeToolDistance ( const MR_Cuda_ComputeToolDistance * object)

Upcasts an instance of MR::Cuda::ComputeToolDistance to its base class MR::IComputeToolDistance. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.