exit_openings¶
Python reference for nagasim.appearance.exit_openings. Provisional: it may change between minor versions, see Appearance.
The gaps a piece's side exits cut in its guides, which the file never stores.
One gap per divert, on its side, and one per merge, on the side its feeder ends (by the
feeder's end point, else its heading). Each is centred on the exit's point and as long as
the exit crosses the side: the piece's own width for a divert, the feeder's for a merge, over
the sine of their angle. Draw the guides with look_of's openings plus these.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
document
|
ModelDocument
|
The model, |
required |
name
|
str
|
The CONVEYOR block's name. |
required |
Returns:
| Type | Description |
|---|---|
list of dict
|
|
See Also
nagasim.appearance.look_of : The stored openings and the rest of the look. nagasim.appearance.guide_runs : The guide runs between the openings.
Examples:
>>> from nagasim.appearance import exit_openings
>>> from nagasim.appearance import ModelDocument
>>> exit_openings(ModelDocument(), "missing")
[]