pub struct DeleteFace;Expand description
Takes the faces faces out of their solid, and leaves the gap as
heal says: healed over by the faces around it — a hole, a boss or a
pocket filled in, a chamfer or a fillet taken back to its sharp edge, a
cut-off corner restored — or open, the rest of the solid a sheet. The
solid is consumed; what is left is named delete_face(D) for the
operation D, a sheet not at all, and every face, edge and vertex that
stays keeps its name.
Trait Implementations§
Source§impl Clone for DeleteFace
impl Clone for DeleteFace
Source§fn clone(&self) -> DeleteFace
fn clone(&self) -> DeleteFace
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 DeleteFace
Source§impl Debug for DeleteFace
impl Debug for DeleteFace
Source§impl Default for DeleteFace
impl Default for DeleteFace
Source§fn default() -> DeleteFace
fn default() -> DeleteFace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeleteFace
impl<'de> Deserialize<'de> for DeleteFace
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 DeleteFace
impl Editable for DeleteFace
const INFO: OperationInfo = <DeleteFace as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<DeleteFace as PartOperation>::Session>
type EditingState = FormState<<DeleteFace 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 DeleteFace
impl ModelOperation for DeleteFace
Source§fn build(
model: &mut NamedModel,
_: &Reader<'_>,
step: &str,
args: &DeleteFaceArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, _: &Reader<'_>, step: &str, args: &DeleteFaceArgs, ) -> 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 DeleteFace
impl Operation for DeleteFace
Source§const KIND: &'static str = <DeleteFace as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <DeleteFace as ::geop_core_editor::part_operation::PartOperation>::KIND
The name programs store its steps under.
Source§type Args = <DeleteFace as PartOperation>::Args
type Args = <DeleteFace 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 DeleteFace
impl PartOperation for DeleteFace
Source§fn new_args(_: &Context<'_>) -> DeleteFaceArgs
fn new_args(_: &Context<'_>) -> DeleteFaceArgs
Nothing picked yet, healed over.
Source§fn form<'a>(
context: &'a Context<'a>,
args: &DeleteFaceArgs,
_: &FormState<()>,
) -> EditForm<'a, DeleteFaceArgs>
fn form<'a>( context: &'a Context<'a>, args: &DeleteFaceArgs, _: &FormState<()>, ) -> EditForm<'a, DeleteFaceArgs>
The faces, picked, and what to leave.
const INFO: OperationInfo
Source§type Args = DeleteFaceArgs
type Args = DeleteFaceArgs
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: &DeleteFaceArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &DeleteFaceArgs) -> 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 DeleteFace
impl PartialEq for DeleteFace
Source§impl Serialize for DeleteFace
impl Serialize for DeleteFace
impl StructuralPartialEq for DeleteFace
Auto Trait Implementations§
impl Freeze for DeleteFace
impl RefUnwindSafe for DeleteFace
impl Send for DeleteFace
impl Sync for DeleteFace
impl Unpin for DeleteFace
impl UnsafeUnpin for DeleteFace
impl UnwindSafe for DeleteFace
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