Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
invisig0th committed Nov 6, 2024
1 parent d91d321 commit 0188681
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 181 deletions.
27 changes: 14 additions & 13 deletions synapse/models/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,26 @@ def getModelDefs(self):
),

'interfaces': (
('mat:physical', {

('phys:object', {
'doc': 'Properties common to all physical objects.',
'template': {'phys:item': 'physical object'},
'template': {'phys:object': 'object'},
'props': (
# TODO created / unmade / period?
('mass', ('mass', {}), {
'doc': 'The mass of the {phys:item}.'}),

('volume', ('geo:dist', {}), {
'doc': 'The cubed volume of the {phys:item}.'}),
('phys:mass', ('mass', {}), {
'doc': 'The mass of the {phys:object}.'}),

('phys:volume', ('geo:dist', {}), {
'doc': 'The cubed volume of the {phys:object}.'}),

('dimensions:length', ('geo:dist', {}), {
'doc': 'The length of the {phys:item}'}),
('phys:length', ('geo:dist', {}), {
'doc': 'The length of the {phys:object}'}),

('dimensions:width', ('geo:dist', {}), {
'doc': 'The width of the {phys:item}'}),
('phys:width', ('geo:dist', {}), {
'doc': 'The width of the {phys:object}'}),

('dimensions:height', ('geo:dist', {}), {
'doc': 'The height of the {phys:item}'}),
('phys:height', ('geo:dist', {}), {
'doc': 'The height of the {phys:object}'}),
),
),
),
Expand Down
Loading

0 comments on commit 0188681

Please sign in to comment.