Skip to content

Commit

Permalink
chore: Build Models (#47)
Browse files Browse the repository at this point in the history
* chore: Build Models

* chore: Autoformat code

---------

Co-authored-by: dbirman <[email protected]>
Co-authored-by: kjy5 <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2024
1 parent f224c27 commit 213b135
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions models/csharp/PinpointModels.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
using UnityEngine;
using System;

[Serializable]
public struct AffineTransformModel
{
public Vector3 Scaling;
public Vector3 Rotation;

public AffineTransformModel(Vector3 scaling, Vector3 rotation)
{
Scaling = scaling;
Rotation = rotation;
}
}

[Serializable]
public struct CraniotomyGroup
{
Expand Down
1 change: 1 addition & 0 deletions models/schemas/pinpoint/AffineTransformModel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"$defs": {"Vector3": {"properties": {"x": {"default": 0.0, "title": "X", "type": "number"}, "y": {"default": 0.0, "title": "Y", "type": "number"}, "z": {"default": 0.0, "title": "Z", "type": "number"}}, "title": "Vector3", "type": "object"}}, "properties": {"Scaling": {"$ref": "#/$defs/Vector3"}, "Rotation": {"$ref": "#/$defs/Vector3"}}, "required": ["Scaling", "Rotation"], "title": "AffineTransformModel", "type": "object"}
4 changes: 2 additions & 2 deletions src/vbl_aquarium/models/pinpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class CraniotomyGroup(VBLBaseModel):
data: list[CraniotomyModel]



# TRANSFORM


class AffineTransformModel(VBLBaseModel):
scaling: Vector3
rotation: Vector3
rotation: Vector3

0 comments on commit 213b135

Please sign in to comment.