Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modeling-cmds/src/def_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ define_modeling_cmd_enum! {
#[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
pub struct Export3d {
/// IDs of the entities to be exported. If this is empty, then all entities are exported.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The file format to export to.
pub format: OutputFormat3d,
Expand All @@ -597,6 +598,7 @@ define_modeling_cmd_enum! {
#[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
pub struct Export {
/// IDs of the entities to be exported. If this is empty, then all entities are exported.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The file format to export to.
pub format: OutputFormat3d,
Expand Down Expand Up @@ -1826,6 +1828,7 @@ define_modeling_cmd_enum! {
pub struct Mass {
/// IDs of the entities to get the mass of. If this is empty, then the default scene is included in
/// the mass.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The material density.
pub material_density: f64,
Expand All @@ -1844,6 +1847,7 @@ define_modeling_cmd_enum! {
pub struct Density {
/// IDs of the entities to get the density of. If this is empty, then the default scene is included in
/// the density.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The material mass.
pub material_mass: f64,
Expand All @@ -1862,6 +1866,7 @@ define_modeling_cmd_enum! {
pub struct Volume {
/// IDs of the entities to get the volume of. If this is empty, then the default scene is included in
/// the volume.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The output unit for the volume.
pub output_unit: units::UnitVolume,
Expand All @@ -1876,6 +1881,7 @@ define_modeling_cmd_enum! {
pub struct CenterOfMass {
/// IDs of the entities to get the center of mass of. If this is empty, then the default scene is included in
/// the center of mass.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The output unit for the center of mass.
pub output_unit: units::UnitLength,
Expand All @@ -1890,6 +1896,7 @@ define_modeling_cmd_enum! {
pub struct SurfaceArea {
/// IDs of the entities to get the surface area of. If this is empty, then the default scene is included in
/// the surface area.
#[builder(default)]
pub entity_ids: Vec<Uuid>,
/// The output unit for the surface area.
pub output_unit: units::UnitArea,
Expand Down