synthpic2.recipe.synth_chain
¶
Module for SynthChain and _SynthChainStep (sub-)classes.
Subpackages¶
synthpic2.recipe.synth_chain.feature_generation_steps
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.agglomerate
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.agglomerate_particles
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.agglomeration_simulation
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.bounding_box
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.collision_matrix
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.custom_collision_manager
synthpic2.recipe.synth_chain.feature_generation_steps.agglomeration.utilities
synthpic2.recipe.synth_chain.feature_generation_steps.base
synthpic2.recipe.synth_chain.feature_generation_steps.distribute_in_measurement_volume
synthpic2.recipe.synth_chain.feature_generation_steps.invocation
synthpic2.recipe.synth_chain.feature_generation_steps.relax_collisions
synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin
synthpic2.recipe.synth_chain.feature_generation_steps.state
synthpic2.recipe.synth_chain.feature_generation_steps.trigger_feature_update
synthpic2.recipe.synth_chain.rendering_steps
Submodules¶
Package Contents¶
Classes¶
SynthChainStep to invoke a set of blueprints. |
|
SynthChainStep to relax collisions between objects of a set, using Blenders |
|
SynthChainStep to update a feature of a set of objects according to a feature |
|
Class to handle blender states. |
|
Class to orchestrate the feature generation and the rendering. |
- class synthpic2.recipe.synth_chain.InvokeBlueprints¶
Bases:
synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin
,synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep
SynthChainStep to invoke a set of blueprints.
- __call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState ¶
NotImplemented
- class synthpic2.recipe.synth_chain.RelaxCollisions¶
Bases:
synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin
,synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep
SynthChainStep to relax collisions between objects of a set, using Blenders bullet physics engine.
- damping: float | None¶
- angular_damping: float | None¶
- linear_damping: float | None¶
- friction: float = 1¶
- restitution: float = 1¶
- mass: float = 1.0¶
- collision_shape: str = 'MESH'¶
- mesh_source: str = 'FINAL'¶
- num_frames: int = 100¶
- use_gravity: bool = False¶
- gravity: Tuple[float, float, float] = (0, 0)¶
- collision_margin: float = 1e-06¶
- time_scale: float = 1.0¶
- substeps_per_frame: int = 10¶
- solver_iterations: int = 10¶
- dry_run: bool = False¶
- __call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState ¶
NotImplemented
- class synthpic2.recipe.synth_chain.TriggerFeatureUpdate¶
Bases:
synthpic2.recipe.synth_chain.feature_generation_steps.set_based_mixin.SetBasedMixin
,synthpic2.recipe.synth_chain.feature_generation_steps.base.FeatureGenerationStep
SynthChainStep to update a feature of a set of objects according to a feature variability.
- feature_variability_name: str¶
- __attrs_post_init__() None ¶
- __call__(runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) synthpic2.recipe.synth_chain.state.RuntimeState ¶
NotImplemented
- class synthpic2.recipe.synth_chain.State¶
Bases:
synthpic2.recipe.registries.SelfRegisteringAttrsMixin
Class to handle blender states.
- property _registry: synthpic2.recipe.registries.Registry¶
- runtime_state: RuntimeState¶
- name: str | None¶
- file_root: synthpic2.custom_types.AnyPath | None¶
- __attrs_post_init__() None ¶
- save_to_disk() None ¶
- load_from_disk() None ¶
- delete() None ¶
- unregister() None ¶
- class synthpic2.recipe.synth_chain.SynthChain¶
Class to orchestrate the feature generation and the rendering.
- _target_: str = 'synthpic2.recipe.SynthChain'¶
- blender_log_file_name: str = 'blender.log'¶
- feature_generation_steps: List¶
- rendering_steps: List¶
- execute(initial_runtime_state: synthpic2.recipe.synth_chain.state.RuntimeState) None ¶