InfiniteGeometry
A metatype for representing a geometry of infinite extension.
Attributes
Name | Type | Description |
---|---|---|
medium | Medium | The filling medium. |
Constructor
The InfiniteGeometry wraps a simulation Medium. It takes a single mandatory argument: the medium.
Synopsis
pumas.InfiniteGeometry(medium)
Arguments
Name | Type | Description |
---|---|---|
medium | Medium or string |
The filling medium. If a string is provided it must reference a TabulatedMaterial. Then a UniformMedium is implicitly created and filled with the corresponding material. |
See also
InfiniteGeometry.insert
Insert a daughter geometry into the InfiniteGeometry.
This method behaves as the table.insert
Lua function. If no index is specified
the daughter geometry is appended as the last element.
Synopsis
InfiniteGeometry:insert(daughter)
InfiniteGeometry:insert(index, daughter)
Arguments
Name | Type | Description |
---|---|---|
index | number |
Table index of the inserted geometry. |
daughter | Geometry | Daughter geometry to insert. |
Returns
nil
See also
InfiniteGeometry.remove
Remove a daughter geometry from the InfiniteGeometry
given its index. If no index is provided the last daughter geometry is removed.
This method behaves as the table.remove
Lua function.
Synopsis
InfiniteGeometry:remove((index))
Arguments
Name | Type | Description |
---|---|---|
(index) | number |
Table index of the daughter geometry to remove. |
Returns
Type | Description |
---|---|
Geometry | The removed geometry. |