From 85840c7fa9fd63a80e12e0aead3539159b024499 Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Thu, 17 Aug 2023 15:11:47 +0200 Subject: [PATCH] Add draping attributes to OSS and Modeling Ply --- src/ansys/api/acp/v0/modeling_ply.proto | 16 ++++++++++++++-- .../api/acp/v0/oriented_selection_set.proto | 11 ++++++++++- src/ansys/api/acp/v0/ply_material.proto | 8 ++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/src/ansys/api/acp/v0/modeling_ply.proto b/src/ansys/api/acp/v0/modeling_ply.proto index bb52d88..246aae4 100644 --- a/src/ansys/api/acp/v0/modeling_ply.proto +++ b/src/ansys/api/acp/v0/modeling_ply.proto @@ -3,6 +3,8 @@ package ansys.api.acp.v0.modeling_ply; import "ansys/api/acp/v0/base.proto"; import "ansys/api/acp/v0/enum_types.proto"; +import "ansys/api/acp/v0/array_types.proto"; +import "ansys/api/acp/v0/ply_material.proto"; import "ansys/api/acp/v0/linked_selection_rule.proto"; message Properties { @@ -13,8 +15,18 @@ message Properties { int64 number_of_layers = 5; bool active = 6; int64 global_ply_nr = 7; - // TODO: draping - repeated linked_selection_rule.LinkedSelectionRule selection_rules = 8; + + // draping-related properties + ply_material.DrapingType draping = 8; + array_types.DoubleArray draping_seed_point = 9; + bool auto_draping_direction = 10; + array_types.DoubleArray draping_direction = 11; + double draping_mesh_size = 12; + bool draping_thickness_correction = 13; + base.ResourcePath draping_angle_1_field = 14; + base.ResourcePath draping_angle_2_field = 15; + + repeated linked_selection_rule.LinkedSelectionRule selection_rules = 16; // TODO: variable thickness // TODO: taper edges } diff --git a/src/ansys/api/acp/v0/oriented_selection_set.proto b/src/ansys/api/acp/v0/oriented_selection_set.proto index c7a575a..65cbfaa 100644 --- a/src/ansys/api/acp/v0/oriented_selection_set.proto +++ b/src/ansys/api/acp/v0/oriented_selection_set.proto @@ -4,6 +4,7 @@ package ansys.api.acp.v0.oriented_selection_set; import "ansys/api/acp/v0/base.proto"; import "ansys/api/acp/v0/enum_types.proto"; import "ansys/api/acp/v0/array_types.proto"; +import "ansys/api/acp/v0/ply_material.proto"; message Properties { enum_types.StatusType status = 1; @@ -14,7 +15,15 @@ message Properties { enum_types.RosetteSelectionMethod rosette_selection_method = 6; // TODO: tabular values repeated base.ResourcePath selection_rules = 7; - // TODO: draping + + // draping-related properties + bool draping = 8; + array_types.DoubleArray draping_seed_point = 9; + bool auto_draping_direction = 10; + array_types.DoubleArray draping_direction = 11; + double draping_mesh_size = 12; + ply_material.DrapingMaterialType draping_material_model = 13; + double draping_ud_coefficient = 14; } message ObjectInfo { diff --git a/src/ansys/api/acp/v0/ply_material.proto b/src/ansys/api/acp/v0/ply_material.proto index 2d80152..01d0900 100644 --- a/src/ansys/api/acp/v0/ply_material.proto +++ b/src/ansys/api/acp/v0/ply_material.proto @@ -1,6 +1,14 @@ syntax = "proto3"; package ansys.api.acp.v0.ply_material; +// defines how draping is computed (none, using the draping algorithm, +// or using tabular values) +enum DrapingType { + NO_DRAPING = 0; + INTERNAL_DRAPING = 1; + TABULAR_VALUES = 2; +} + // defines the draping model (algorithm) enum DrapingMaterialType { WOVEN = 0;