Skip to content

Commit

Permalink
WIP: definition of domain's objects in json
Browse files Browse the repository at this point in the history
  • Loading branch information
andijcr committed Apr 16, 2013
1 parent 1481fe3 commit 7a8feaa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
Thumbs.db
*.sublime-project
*.sublime-workspace

4 changes: 0 additions & 4 deletions Pianificazione Inizio Progetto/clusters_relations

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
A Cluster describe a set of contiguous cells not shared with other clusters. No Cluster intersecate with another Cluster (they do not share vertices)

Cluster -> {
"id": //text, key generated by the spatial partitioner to describe the spatial position of this cluster
Expand Down Expand Up @@ -30,6 +31,8 @@ Cluster -> {
"interdomain_clusters": [ //0° interdomain_cluster id, //1° interdomain_cluster id , .., //last interdomain cluster id] // this attribute exists to describe the cells that lie between two or more clusters
}

InterDomain_Cluster describe those cells that are shared between Clusters (each cell has at least one vertex in each one of the parent clusters). Vertices an v_attributes are emebedded in this document for ease of representation

InterDomain_Cluster mod A-> {
"id": //text, key generated by the spatial partitioner to describe the parents of this cluster
"type": "inter_cluster"// "cluster" or "inter_cluster" - value to differentiate between schema
Expand Down Expand Up @@ -60,8 +63,7 @@ InterDomain_Cluster mod A-> {

}


example of a valid cluster, describing a tetrahedron
This is an example of a valid cluster, describing a single tetrahedron
{
"id": "0000001";
"type": "cluster";
Expand All @@ -74,7 +76,7 @@ example of a valid cluster, describing a tetrahedron
[−2.,−2., 2.],
[−2., 2.,−2.],
[ 2.,−2.,−2.]
];
];
"v_attributes":[
[0.5, 0.8],
[28.44, 3.],
Expand All @@ -86,4 +88,17 @@ example of a valid cluster, describing a tetrahedron
];
"adjacent_clusters": [];
"interdomain_clusters": []
}

Clusters' Relationships describe how a model is divided in different clusters. It emebeds a tree representation of how the space is divided, where only the leaf are Cluster's

Clusters' Relationships -> {
"id": "cluster_tree";
"tree": //recursively: tree:= leaf | '[' tree* ']' ; leaf:= cluster id
}

Model

Mode -> {

}

0 comments on commit 7a8feaa

Please sign in to comment.