Skip to main content

GenerateContext

Struct GenerateContext 

Source
pub struct GenerateContext<'a> {
Show 13 fields pub resolved_planar: Option<(&'a OperationId, &'a PlanarInput)>, pub chain_geometry: Option<&'a dyn ChainGeometry>, pub machine: Option<&'a Machine>, pub flow_faces: &'a [&'a dyn ParametricFace], pub source: Option<&'a OperationInput>, pub source_operation: Option<&'a Operation>, pub available: &'a [OperationInput], pub rest_stock: Option<&'a DexelGrid>, pub rough_stock: Option<&'a ResolvedStock>, pub rough_reference_tool: Option<&'a ToolId>, pub turning: Option<&'a TurningInput<'a>>, pub mill_turn: Option<&'a MillTurnInput<'a>>, pub pre_op_stock: Option<&'a StockEnvelope>,
}
Expand description

Additional model data that cannot be reconstructed safely from triangles. The worker resolves these by identity; no arbitrary previous path is chosen.

Fields§

§resolved_planar: Option<(&'a OperationId, &'a PlanarInput)>

Exact machine-space geometry from recognition/planning, bound to its operation.

§chain_geometry: Option<&'a dyn ChainGeometry>§machine: Option<&'a Machine>§flow_faces: &'a [&'a dyn ParametricFace]§source: Option<&'a OperationInput>

Explicit inner operation, in machine coordinates (unwrapped for RotaryWrap).

§source_operation: Option<&'a Operation>

MultiAxisFinish source definition to generate on this mesh when no cached path is supplied. Only self-contained three-axis finishing strategies qualify.

§available: &'a [OperationInput]

Resolved pattern sources, with their original tool/setup identities.

§rest_stock: Option<&'a DexelGrid>§rough_stock: Option<&'a ResolvedStock>

Adapter-resolved stock in machine coordinates (required for FromSolid).

§rough_reference_tool: Option<&'a ToolId>

Explicit larger reference tool for Pocket3D rest roughing. The roughing model currently has no reference-tool id; never choose one implicitly.

§turning: Option<&'a TurningInput<'a>>§mill_turn: Option<&'a MillTurnInput<'a>>§pre_op_stock: Option<&'a StockEnvelope>

The stock as it stands before this operation (lane C7, stock_sim::job), in the setup’s machine frame: the linkers’ in-process stock seed. None: the linkers keep above the conservative material top.

Trait Implementations§

Source§

impl<'a> Default for GenerateContext<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for GenerateContext<'a>

§

impl<'a> !Send for GenerateContext<'a>

§

impl<'a> !Sync for GenerateContext<'a>

§

impl<'a> !UnwindSafe for GenerateContext<'a>

§

impl<'a> Forget for GenerateContext<'a>

§

impl<'a> Freeze for GenerateContext<'a>

§

impl<'a> Move for GenerateContext<'a>

§

impl<'a> Unpin for GenerateContext<'a>

§

impl<'a> UnsafeUnpin for GenerateContext<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.