pub struct OffsetFace;Expand description
Pushes or pulls the faces faces of a solid distance along their
outward normals — out of the solid for a positive distance, into it for
a negative one: each is put on its surface offset, and the solid
rebuilt around them. A face takes along the faces it runs smoothly
into, offset as far: the other pieces of a cylinder, a fillet. The
solid is consumed and the result named
offset_face(O) for the operation O; every face, edge and vertex
keeps its name.
Trait Implementations§
Source§impl Clone for OffsetFace
impl Clone for OffsetFace
Source§fn clone(&self) -> OffsetFace
fn clone(&self) -> OffsetFace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OffsetFace
Source§impl Debug for OffsetFace
impl Debug for OffsetFace
Source§impl Default for OffsetFace
impl Default for OffsetFace
Source§fn default() -> OffsetFace
fn default() -> OffsetFace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OffsetFace
impl<'de> Deserialize<'de> for OffsetFace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Editable for OffsetFace
impl Editable for OffsetFace
const INFO: OperationInfo = <OffsetFace as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<OffsetFace as PartOperation>::Session>
type EditingState = FormState<<OffsetFace as PartOperation>::Session>
What the editor keeps about a step while it is edited, beyond its
arguments, starting from the default whenever a step is opened.
Source§fn new_args(context: &Context<'_>) -> Self::Args
fn new_args(context: &Context<'_>) -> Self::Args
The arguments of a new step: sensible defaults, taking the part it
is inserted into into account.
Source§fn presentation(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
) -> Form
fn presentation( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, ) -> Form
What the editor shows while the step is edited. Never fails: an
editor needs the form most exactly when the arguments do not build,
so whatever is wrong is said in it.
Source§fn process_user_event(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
event: Event,
) -> (Self::Args, Self::EditingState)
fn process_user_event( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, event: Event, ) -> (Self::Args, Self::EditingState)
The step’s arguments and editing state after
event.Source§impl ModelOperation for OffsetFace
impl ModelOperation for OffsetFace
Source§fn build(
model: &mut NamedModel,
_: &Reader<'_>,
step: &str,
args: &OffsetFaceArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, _: &Reader<'_>, step: &str, args: &OffsetFaceArgs, ) -> GeopResult<()>
Builds the step
step — what everything it makes is named after —
into model, reading whatever else it builds on through reader,
so the step is rebuilt when that changes.Source§impl Operation for OffsetFace
impl Operation for OffsetFace
Source§const KIND: &'static str = <OffsetFace as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <OffsetFace as ::geop_core_editor::part_operation::PartOperation>::KIND
The name programs store its steps under.
Source§type Args = <OffsetFace as PartOperation>::Args
type Args = <OffsetFace as PartOperation>::Args
What a step of the operation is given. It is saved with the program,
so it names targets and elements, never holds their internal ids.
Source§fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
Declares what the step produces, through
ctx (see
StepContext::produce): cheap, since it runs in every run. What
takes work is done in the makes, which run only when what they read
changed.Source§impl PartOperation for OffsetFace
impl PartOperation for OffsetFace
Source§fn new_args(_: &Context<'_>) -> OffsetFaceArgs
fn new_args(_: &Context<'_>) -> OffsetFaceArgs
Nothing picked yet, pulled out by one.
Source§fn form<'a>(
context: &'a Context<'a>,
args: &OffsetFaceArgs,
_: &FormState<()>,
) -> EditForm<'a, OffsetFaceArgs>
fn form<'a>( context: &'a Context<'a>, args: &OffsetFaceArgs, _: &FormState<()>, ) -> EditForm<'a, OffsetFaceArgs>
The faces, picked, and the distance.
const INFO: OperationInfo
Source§type Args = OffsetFaceArgs
type Args = OffsetFaceArgs
What a step is given. It is saved with the program, so it names
targets and elements, never holds their internal ids.
Source§type Session = ()
type Session = ()
What the editor keeps while a step is edited besides its arguments
and the visuals selected:
() for most.Source§fn run(ctx: &mut StepContext<'_>, args: &OffsetFaceArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &OffsetFaceArgs) -> GeopResult<()>
Declares what the step produces, through
ctx (see
StepContext::produce).Source§fn begin_event(session: &mut Self::Session)
fn begin_event(session: &mut Self::Session)
What the session forgets at the start of every event, before the
event is handled: nothing, by default.
Source§impl PartialEq for OffsetFace
impl PartialEq for OffsetFace
Source§impl Serialize for OffsetFace
impl Serialize for OffsetFace
impl StructuralPartialEq for OffsetFace
Auto Trait Implementations§
impl Freeze for OffsetFace
impl RefUnwindSafe for OffsetFace
impl Send for OffsetFace
impl Sync for OffsetFace
impl Unpin for OffsetFace
impl UnsafeUnpin for OffsetFace
impl UnwindSafe for OffsetFace
Blanket Implementations§
Source§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
Mutably borrows from an owned value. Read more