pub struct ImportStep;Expand description
Adds every body of the STEP file file — its solids, and its sheets of
faces — to the part, where the file has them: the parts of an assembly
each where it is placed, in millimetres.
Named import(I,sK) for the K-th body of the file and the operation
I, what it is made of import(I,sK,X) after its entity X in the
file: vN, eN, fN for the file’s N-th vertex, edge and face,
counted as the body has them. A face going all the way round an axis
is cut into sectors fN,qM, along meridians fN,mM — one going round
a torus’ tube likewise into pieces fN,qM along parallels fN,mM, and a
whole torus first into bands fN,bK along parallels fN,mK starting at
fN,mK,v, and a strip turning more than once into pieces fN,qM along
meridians fN,mM; an edge split where a cut crosses it, or because it
closes on itself, into pieces eN,pM at the vertices eN,cM.
The file’s bodies, as read, are the step’s target imported: read
once, and again only when the file changes. Where the file disagrees
with itself further than the kernel can carry as one point or curve,
what is rebuilt from its surfaces — and how far it moved — is kept with
its body there (ImportedBody::healed) and shown in the dialog.
Trait Implementations§
Source§impl Clone for ImportStep
impl Clone for ImportStep
Source§fn clone(&self) -> ImportStep
fn clone(&self) -> ImportStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImportStep
Source§impl Debug for ImportStep
impl Debug for ImportStep
Source§impl Default for ImportStep
impl Default for ImportStep
Source§fn default() -> ImportStep
fn default() -> ImportStep
Source§impl<'de> Deserialize<'de> for ImportStep
impl<'de> Deserialize<'de> for ImportStep
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>,
Source§impl Editable for ImportStep
impl Editable for ImportStep
const INFO: OperationInfo = <ImportStep as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<ImportStep as PartOperation>::Session>
type EditingState = FormState<<ImportStep as PartOperation>::Session>
Source§fn new_args(context: &Context<'_>) -> Self::Args
fn new_args(context: &Context<'_>) -> Self::Args
Source§fn presentation(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
) -> Form
fn presentation( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, ) -> Form
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)
event.Source§impl ModelOperation for ImportStep
impl ModelOperation for ImportStep
Source§fn build(
model: &mut NamedModel,
reader: &Reader<'_>,
step: &str,
_: &ImportStepArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, reader: &Reader<'_>, step: &str, _: &ImportStepArgs, ) -> GeopResult<()>
Adds the bodies the step read (see imported).
Source§impl Operation for ImportStep
impl Operation for ImportStep
Source§const KIND: &'static str = <ImportStep as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <ImportStep as ::geop_core_editor::part_operation::PartOperation>::KIND
Source§type Args = <ImportStep as PartOperation>::Args
type Args = <ImportStep as PartOperation>::Args
Source§fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
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 ImportStep
impl PartOperation for ImportStep
Source§fn new_args(_: &Context<'_>) -> ImportStepArgs
fn new_args(_: &Context<'_>) -> ImportStepArgs
No file yet.
Source§fn run(ctx: &mut StepContext<'_>, args: &ImportStepArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &ImportStepArgs) -> GeopResult<()>
Reads the file, then adds its bodies.
Source§fn form<'a>(
context: &'a Context<'a>,
args: &ImportStepArgs,
_: &FormState<()>,
) -> EditForm<'a, ImportStepArgs>
fn form<'a>( context: &'a Context<'a>, args: &ImportStepArgs, _: &FormState<()>, ) -> EditForm<'a, ImportStepArgs>
The file: a STEP file of the workspace, chosen in its explorer, or one the user adds from elsewhere, which the front end stores next to the program — and what the import rebuilt, body by body, as the step last read them.
const INFO: OperationInfo
Source§type Args = ImportStepArgs
type Args = ImportStepArgs
Source§type Session = ()
type Session = ()
() for most.