Skip to main content

StepParser

Struct StepParser 

Source
pub struct StepParser {
    pub build_spatial_tree: bool,
    pub extract_properties: bool,
}
Expand description

Main STEP/IFC parser implementing IfcParser trait

This is the entry point for parsing IFC files. It creates a ParsedModel that provides access to all IFC data through the trait interfaces.

Fields§

§build_spatial_tree: bool

Whether to build spatial tree during parsing

§extract_properties: bool

Whether to extract properties during parsing

Implementations§

Source§

impl StepParser

Source

pub fn new() -> Self

Create a new parser with default settings

Source

pub fn geometry_only() -> Self

Create a parser optimized for geometry-only access

Source

pub fn with_spatial_tree(self, enabled: bool) -> Self

Set whether to build spatial tree

Source

pub fn with_properties(self, enabled: bool) -> Self

Set whether to extract properties

Trait Implementations§

Source§

impl Default for StepParser

Source§

fn default() -> StepParser

Returns the “default value” for a type. Read more
Source§

impl IfcParser for StepParser

Source§

fn parse(&self, content: &str) -> Result<Arc<dyn IfcModel>>

Parse IFC content and return a model Read more
Source§

fn parse_with_progress( &self, content: &str, on_progress: ProgressCallback, ) -> Result<Arc<dyn IfcModel>>

Parse IFC content with progress reporting Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.