Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 853 Bytes

cube_emitter.md

File metadata and controls

34 lines (19 loc) · 853 Bytes

CubeEmitter

from tdw.obi_data.fluids.cube_emitter import CubeEmitter

A cube-shaped Obi fluid emitter.


Fields

  • size The size of the cube in meters. If None, defaults to {"x": 0.1, "y": 0.1, "z": 0.1}.

  • sampling_method The EmitterSamplingMethod.


Functions

__init__

CubeEmitter()

CubeEmitter(size=None, sampling_method=EmitterSamplingMethod.volume)

Parameter Type Default Description
size Dict[str, float] None The size of the cube in meters. If None, defaults to {"x": 0.1, "y": 0.1, "z": 0.1}.
sampling_method EmitterSamplingMethod EmitterSamplingMethod.volume The EmitterSamplingMethod.

to_dict

self.to_dict()

Returns: A JSON dictionary of this object.