MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.IComputeToolDistance Class Reference
Inheritance diagram for meshlib.IComputeToolDistance:

Public Member Functions

 IComputeToolDistance (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
meshlib.Vector3i prepare (meshlib.Vector3i dims, meshlib.Polyline3 toolpath, meshlib.EndMillTool toolSpec)
meshlib.Vector3i prepare (meshlib.Vector3i dims, meshlib.Polyline3 toolpath, meshlib.Polyline2 toolProfile)
void computeToolDistance (meshlib.VoxelScalars output, meshlib.Vector3i dims, float voxelSize, meshlib.Vector3f origin, float padding)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Interface for custom tool distance computation implementations Generated from class MR::IComputeToolDistance. Derived classes: Direct: (non-virtual) MR::Cuda::ComputeToolDistance

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ IComputeToolDistance()

meshlib.IComputeToolDistance.IComputeToolDistance ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

Member Function Documentation

◆ computeToolDistance()

void meshlib.IComputeToolDistance.computeToolDistance ( meshlib.VoxelScalars output,
meshlib.Vector3i dims,
float voxelSize,
meshlib.Vector3f origin,
float padding )

Compute tool distance Generated from method MR::IComputeToolDistance::computeToolDistance.

Calls MR_IComputeToolDistance_computeToolDistance(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ prepare() [1/2]

meshlib.Vector3i meshlib.IComputeToolDistance.prepare ( meshlib.Vector3i dims,
meshlib.Polyline3 toolpath,
meshlib.EndMillTool toolSpec )

Prepare for a voxel grid of given dims and copy tool path and tool spec data

Returns
Maximum dimensions that can be processed at once (e.g. due to memory limits) Generated from method MR::IComputeToolDistance::prepare.

Calls MR_IComputeToolDistance_prepare_MR_EndMillTool(). The C++ function returns expected<MR::Vector3i, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ prepare() [2/2]

meshlib.Vector3i meshlib.IComputeToolDistance.prepare ( meshlib.Vector3i dims,
meshlib.Polyline3 toolpath,
meshlib.Polyline2 toolProfile )

Prepare for a voxel grid of given dims and copy tool path and tool spec data

Returns
Maximum dimensions that can be processed at once (e.g. due to memory limits) Generated from method MR::IComputeToolDistance::prepare.

Calls MR_IComputeToolDistance_prepare_MR_Polyline2(). The C++ function returns expected<MR::Vector3i, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


The documentation for this class was generated from the following file: