From 2ad1182cb45924ae3a8559eb72214000502c8a86 Mon Sep 17 00:00:00 2001 From: PyAnsys CI Bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:09:41 +0200 Subject: [PATCH] sync: file sync performed by ansys-tools-repo-sync (#82) Co-authored-by: tfs_caslservice --- ansys/api/geometry/v0/bodies.proto | 28 ++++++++++++++++++++++++++++ ansys/api/geometry/v0/models.proto | 8 ++++++++ 2 files changed, 36 insertions(+) diff --git a/ansys/api/geometry/v0/bodies.proto b/ansys/api/geometry/v0/bodies.proto index 873c783..1ad6261 100644 --- a/ansys/api/geometry/v0/bodies.proto +++ b/ansys/api/geometry/v0/bodies.proto @@ -54,6 +54,12 @@ service Bodies rpc GetName(ansys.api.dbu.v0.EntityIdentifier) returns (GetNameResponse); + rpc SetName(SetNameRequest) returns (SetNameResponse); + + rpc GetFillStyle(ansys.api.dbu.v0.EntityIdentifier) returns (GetFillStyleResponse); + + rpc SetFillStyle(SetFillStyleRequest) returns (SetFillStyleResponse); + rpc Copy(CopyRequest) returns (Body); rpc GetUpdateState(ansys.api.dbu.v0.EntityIdentifier) returns (UpdateState); @@ -241,6 +247,28 @@ message GetNameResponse { string name=1; } +message SetNameRequest { + string body_id=1; + string name=2; +} + +message SetNameResponse { + bool result=1; +} + +message SetFillStyleRequest { + string body_id=1; + BodyFillStyle fill_style=2; +} + +message GetFillStyleResponse { + string name=1; +} + +message SetFillStyleResponse { + bool result=1; +} + message CopyRequest { string id=1; string parent=2; diff --git a/ansys/api/geometry/v0/models.proto b/ansys/api/geometry/v0/models.proto index af9a8ad..7174a76 100644 --- a/ansys/api/geometry/v0/models.proto +++ b/ansys/api/geometry/v0/models.proto @@ -40,6 +40,14 @@ enum CollisionType { COLLISIONTYPE_CONTAINEDTOUCH=4; } +// +// The fill style type for a body. +enum BodyFillStyle { + BODYFILLSTYLE_DEFAULT=0; + BODYFILLSTYLE_OPAQUE=1; + BODYFILLSTYLE_TRANSPARENT=2; +} + // // A design curve. message Curve{