Skip to content

Commit

Permalink
chore: Build Models
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman authored and github-actions[bot] committed Sep 7, 2024
1 parent f224c27 commit d453a17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 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"}

0 comments on commit d453a17

Please sign in to comment.