pub struct NetworkSurface;Expand description
Spans a face standing on its own through a network of curves, u_curves
crossing v_curves, for the operation N — see the module docs. The
curves are copied, the originals left as they are.
The face is named network(N). The copy of each outer curve X along
its border is network(N,X) — for a sketch’s curve X is K,c3 (see
[NamedCurve]) — and the corner where the u curve X
crosses the v curve Y is network(N,X,Y).
Trait Implementations§
Source§impl Clone for NetworkSurface
impl Clone for NetworkSurface
Source§fn clone(&self) -> NetworkSurface
fn clone(&self) -> NetworkSurface
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 NetworkSurface
Source§impl Debug for NetworkSurface
impl Debug for NetworkSurface
Source§impl Default for NetworkSurface
impl Default for NetworkSurface
Source§fn default() -> NetworkSurface
fn default() -> NetworkSurface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkSurface
impl<'de> Deserialize<'de> for NetworkSurface
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 NetworkSurface
impl Editable for NetworkSurface
const INFO: OperationInfo = <NetworkSurface as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<NetworkSurface as PartOperation>::Session>
type EditingState = FormState<<NetworkSurface 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 NetworkSurface
impl ModelOperation for NetworkSurface
Source§fn build(
model: &mut NamedModel,
reader: &Reader<'_>,
step: &str,
args: &NetworkSurfaceArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, reader: &Reader<'_>, step: &str, args: &NetworkSurfaceArgs, ) -> 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 NetworkSurface
impl Operation for NetworkSurface
Source§const KIND: &'static str = <NetworkSurface as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <NetworkSurface as ::geop_core_editor::part_operation::PartOperation>::KIND
The name programs store its steps under.
Source§type Args = <NetworkSurface as PartOperation>::Args
type Args = <NetworkSurface 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 NetworkSurface
impl PartOperation for NetworkSurface
Source§fn new_args(_: &Context<'_>) -> NetworkSurfaceArgs
fn new_args(_: &Context<'_>) -> NetworkSurfaceArgs
Nothing picked yet.
Source§fn form<'a>(
context: &'a Context<'a>,
args: &NetworkSurfaceArgs,
_: &FormState<()>,
) -> EditForm<'a, NetworkSurfaceArgs>
fn form<'a>( context: &'a Context<'a>, args: &NetworkSurfaceArgs, _: &FormState<()>, ) -> EditForm<'a, NetworkSurfaceArgs>
The curves of each direction, picked.
const INFO: OperationInfo
Source§type Args = NetworkSurfaceArgs
type Args = NetworkSurfaceArgs
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: &NetworkSurfaceArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &NetworkSurfaceArgs) -> 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 NetworkSurface
impl PartialEq for NetworkSurface
Source§impl Serialize for NetworkSurface
impl Serialize for NetworkSurface
impl StructuralPartialEq for NetworkSurface
Auto Trait Implementations§
impl Freeze for NetworkSurface
impl RefUnwindSafe for NetworkSurface
impl Send for NetworkSurface
impl Sync for NetworkSurface
impl Unpin for NetworkSurface
impl UnsafeUnpin for NetworkSurface
impl UnwindSafe for NetworkSurface
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