Skip to main content

read_iges_file

Function read_iges_file 

Source
pub fn read_iges_file(path: &Path, tol: Tolerances) -> OgeomResult<IgesImport>
Expand description

Read an IGES file’s geometry from disk, as read_iges reads a deck, with its external references (416) resolved against the files in the same directory.

A reference names its file by the identifier the file gives itself as its fourth global parameter (IGES 5.3, section 3.6.4); the file is looked for under that identifier’s last component, in the directory path is in, and nowhere else. A reference to a definition (form 0) takes the entity the referenced file’s index (402, form 12) lists under its symbolic name, and a reference to a whole file (form 1) takes every shape that file reads as, both at that file’s own coordinates and units, for the instance that names the reference to place. Files refer on to files the same way. A missing file, one that names itself otherwise, a name its index does not list, a logical reference (form 2) and a reference to a definition the receiving system keeps natively (forms 3 and 4) are each refused by name, and the instance placing it with them.

§Errors

OgeomError::Construction if path cannot be read as text, and as read_iges.