You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd24712
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/missing_compas_type.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,13 @@ This guide explains how to extend compas_pb with support for more COMPAS types.
9
9
10
10
### 1. Add a protobuf definition for the type you wish to add
11
11
12
-
Add a protobuf message definition for the new type to the unified `geometry.proto` file located at `src/compas_pb/protobuf_defs/compas_pb/generated/geometry.proto`.
12
+
Add a protobuf message definition for the new type to the appropriate proto file:
13
13
14
-
For example, to add a custom `CustomShape` type:
14
+
-**`geometry.proto`** - For geometry primitives (points, vectors, curves, surfaces, transformations)
15
+
-**`datastructures.proto`** - For COMPAS datastructures (mesh, polyhedron)
16
+
-**`message.proto`** - For serialization framework types (internal use only)
17
+
18
+
For example, to add a custom geometry type, add it to `src/compas_pb/protobuf_defs/compas_pb/generated/geometry.proto`:
All geometry types are now defined in a single `geometry.proto` file. This makes it easier to manage dependencies between types and see the full structure at a glance.
45
+
Proto definitions are organized to match COMPAS package structure:
0 commit comments