pub enum KernelCommand {
Show 19 variants
AbiVersion,
Capabilities,
SweepBegin {
session: u64,
format: u32,
length: u32,
loops: u32,
segments: u32,
},
SweepChunk {
session: u64,
upload: u64,
offset: u32,
bytes: Vec<u8>,
},
SweepCommit {
session: u64,
upload: u64,
},
CopyTransform {
session: u64,
solid: WireHandle,
column_major: [f64; 16],
},
CopyAffine {
session: u64,
solid: WireHandle,
column_major: [f64; 16],
},
CreateSession,
DestroySession {
session: u64,
},
Box {
session: u64,
origin: [f64; 3],
size: [f64; 3],
},
Cylinder {
session: u64,
origin: [f64; 3],
radius: f64,
height: f64,
},
Boolean {
session: u64,
left: WireHandle,
right: WireHandle,
operation: BooleanOperation,
},
Volume {
session: u64,
solid: WireHandle,
relative_accuracy: f64,
},
Manifold {
session: u64,
solid: WireHandle,
},
IsEmpty {
session: u64,
solid: WireHandle,
},
Release {
session: u64,
object: WireHandle,
},
Tessellate {
session: u64,
solid: WireHandle,
chord_metres: f64,
angle_degrees: f64,
},
MeshInfo {
session: u64,
mesh: WireHandle,
},
MeshRead {
session: u64,
mesh: WireHandle,
stream: MeshStream,
offset: u32,
count: u32,
},
}Expand description
Numerical commands, independent of scheduling or IFC interpretation. Box/cylinder coordinates are evaluation metres; tolerances are explicit.
Variants§
AbiVersion
Capabilities
Additive capability negotiation; v1 commands stay unchanged.
SweepBegin
Declare one staged authored recipe (formats 1 and 2, see the C ABI).
SweepChunk
Next sequential recipe bytes at offset.
SweepCommit
Consume the upload and publish its validated solid. The ABI’s abort (opcode 16) is not needed: a rejected chunk already discards the upload.
CopyTransform
Copy then apply a proper rigid column-major metre transform.
CopyAffine
Bounded general affine copy into a generic rational BRep (opcode 18, capability bit 16). Replies with the new handle and its certificate.
CreateSession
DestroySession
Box
Cylinder
Boolean
Volume
Manifold
IsEmpty
Semantic emptiness of the actual retained solid (opcode 19, capability bit 32): boundary topology and known-void regions, not mesh or volume.
Release
Tessellate
MeshInfo
MeshRead
Trait Implementations§
Source§impl Clone for KernelCommand
impl Clone for KernelCommand
Source§fn clone(&self) -> KernelCommand
fn clone(&self) -> KernelCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for KernelCommand
impl RefUnwindSafe for KernelCommand
impl Send for KernelCommand
impl Sync for KernelCommand
impl Unpin for KernelCommand
impl UnwindSafe for KernelCommand
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.