topologicpy 0.7.55__py3-none-any.whl → 0.7.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
topologicpy/Graph.py CHANGED
@@ -2382,7 +2382,7 @@ class Graph:
2382
2382
  toOutposts: bool = False,
2383
2383
  idKey: str = "TOPOLOGIC_ID",
2384
2384
  outpostsKey: str = "outposts",
2385
- nodeTypeKey: str = "node_type",
2385
+ vertexCategoryKey: str = "category",
2386
2386
  useInternalVertex: bool =True,
2387
2387
  storeBREP: bool =False,
2388
2388
  mantissa: int = 6,
@@ -2414,7 +2414,7 @@ class Graph:
2414
2414
  The key to use to find outpost by ID. It is case insensitive. The default is "TOPOLOGIC_ID".
2415
2415
  outpostsKey : str , optional
2416
2416
  The key to use to find the list of outposts. It is case insensitive. The default is "outposts".
2417
- nodeTypeKey : str , optional
2417
+ vertexCategoryKey : str , optional
2418
2418
  The key under which to store the node type. Node types are:
2419
2419
  0 : main topology
2420
2420
  1 : shared topology
@@ -2607,7 +2607,7 @@ class Graph:
2607
2607
  if len(apList) > 0:
2608
2608
  apTopList = []
2609
2609
  for ap in apList:
2610
- apTopList.append(ap.Topology())
2610
+ apTopList.append(ap)
2611
2611
  apertureExists = True
2612
2612
  break
2613
2613
  if apertureExists:
@@ -2645,7 +2645,7 @@ class Graph:
2645
2645
  vop = Topology.CenterOfMass(outpost)
2646
2646
  vcc = Topology.CenterOfMass(topology)
2647
2647
  d1 = Topology.Dictionary(vcc)
2648
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
2648
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
2649
2649
  if storeBREP:
2650
2650
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
2651
2651
  d3 = mergeDictionaries2([d1, d2])
@@ -2653,7 +2653,7 @@ class Graph:
2653
2653
  else:
2654
2654
  _ = vcc.SetDictionary(d1)
2655
2655
  d1 = Topology.Dictionary(vop)
2656
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 6) # outpost
2656
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 6) # outpost
2657
2657
  if storeBREP:
2658
2658
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(outpost), Topology.Type(outpost), Topology.TypeAsString(outpost)])
2659
2659
  d3 = mergeDictionaries2([d1, d2])
@@ -2663,7 +2663,7 @@ class Graph:
2663
2663
  vertices.append(vcc)
2664
2664
  vertices.append(vop)
2665
2665
  tempe = Edge.ByStartVertexEndVertex(vcc, vop, tolerance=tolerance)
2666
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
2666
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
2667
2667
  _ = tempe.SetDictionary(tempd)
2668
2668
  edges.append(tempe)
2669
2669
 
@@ -2704,7 +2704,7 @@ class Graph:
2704
2704
  else:
2705
2705
  vst = sharedTopology.CenterOfMass()
2706
2706
  d1 = sharedTopology.GetDictionary()
2707
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 1) # shared topology
2707
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 1) # shared topology
2708
2708
  if storeBREP:
2709
2709
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedTopology), Topology.Type(sharedTopology), Topology.TypeAsString(sharedTopology)])
2710
2710
  d3 = mergeDictionaries2([d1, d2])
@@ -2713,7 +2713,7 @@ class Graph:
2713
2713
  _ = vst.SetDictionary(d1)
2714
2714
  vertices.append(vst)
2715
2715
  tempe = Edge.ByStartVertexEndVertex(vCell, vst, tolerance=tolerance)
2716
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Topologies"])
2716
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Topologies"])
2717
2717
  _ = tempe.SetDictionary(tempd)
2718
2718
  edges.append(tempe)
2719
2719
  if toContents:
@@ -2727,7 +2727,7 @@ class Graph:
2727
2727
  else:
2728
2728
  vst2 = content.CenterOfMass()
2729
2729
  d1 = content.GetDictionary()
2730
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
2730
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
2731
2731
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa), Vertex.Y(vst2, mantissa=mantissa), Vertex.Z(vst2, mantissa=mantissa))
2732
2732
  if storeBREP:
2733
2733
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
@@ -2737,7 +2737,7 @@ class Graph:
2737
2737
  _ = vst2.SetDictionary(d1)
2738
2738
  vertices.append(vst2)
2739
2739
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
2740
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
2740
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
2741
2741
  _ = tempe.SetDictionary(tempd)
2742
2742
  edges.append(tempe)
2743
2743
  if viaSharedApertures:
@@ -2747,7 +2747,7 @@ class Graph:
2747
2747
  else:
2748
2748
  vsa = sharedAp.CenterOfMass()
2749
2749
  d1 = sharedAp.GetDictionary()
2750
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 2) # shared aperture
2750
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 2) # shared aperture
2751
2751
  vsa = Vertex.ByCoordinates(Vertex.X(vsa, mantissa=mantissa)+(tolerance*100), Vertex.Y(vsa, mantissa=mantissa)+(tolerance*100), Vertex.Z(vsa, mantissa=mantissa)+(tolerance*100))
2752
2752
  if storeBREP:
2753
2753
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedAp), Topology.Type(sharedAp), Topology.TypeAsString(sharedAp)])
@@ -2757,7 +2757,7 @@ class Graph:
2757
2757
  _ = vsa.SetDictionary(d1)
2758
2758
  vertices.append(vsa)
2759
2759
  tempe = Edge.ByStartVertexEndVertex(vCell, vsa, tolerance=tolerance)
2760
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Apertures"])
2760
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Apertures"])
2761
2761
  _ = tempe.SetDictionary(tempd)
2762
2762
  edges.append(tempe)
2763
2763
  if toExteriorTopologies:
@@ -2768,7 +2768,7 @@ class Graph:
2768
2768
  vet = exteriorTopology.CenterOfMass()
2769
2769
  _ = vet.SetDictionary(exteriorTopology.GetDictionary())
2770
2770
  d1 = exteriorTopology.GetDictionary()
2771
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 3) # exterior topology
2771
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 3) # exterior topology
2772
2772
  if storeBREP:
2773
2773
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exteriorTopology), Topology.Type(exteriorTopology), Topology.TypeAsString(exteriorTopology)])
2774
2774
  d3 = mergeDictionaries2([d1, d2])
@@ -2777,7 +2777,7 @@ class Graph:
2777
2777
  _ = vet.SetDictionary(d1)
2778
2778
  vertices.append(vet)
2779
2779
  tempe = Edge.ByStartVertexEndVertex(vCell, vet, tolerance=tolerance)
2780
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Topologies"])
2780
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Topologies"])
2781
2781
  _ = tempe.SetDictionary(tempd)
2782
2782
  edges.append(tempe)
2783
2783
  if toContents:
@@ -2791,7 +2791,7 @@ class Graph:
2791
2791
  else:
2792
2792
  vst2 = content.CenterOfMass()
2793
2793
  d1 = content.GetDictionary()
2794
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
2794
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
2795
2795
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
2796
2796
  if storeBREP:
2797
2797
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
@@ -2801,7 +2801,7 @@ class Graph:
2801
2801
  _ = vst2.SetDictionary(d1)
2802
2802
  vertices.append(vst2)
2803
2803
  tempe = Edge.ByStartVertexEndVertex(vet, vst2, tolerance=tolerance)
2804
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
2804
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
2805
2805
  _ = tempe.SetDictionary(tempd)
2806
2806
  edges.append(tempe)
2807
2807
  if toExteriorApertures:
@@ -2811,7 +2811,7 @@ class Graph:
2811
2811
  else:
2812
2812
  vea = exTop.CenterOfMass()
2813
2813
  d1 = exTop.GetDictionary()
2814
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
2814
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
2815
2815
  vea = Vertex.ByCoordinates(Vertex.X(vea, mantissa=mantissa)+(tolerance*100), Vertex.Y(vea, mantissa=mantissa)+(tolerance*100), Vertex.Z(vea, mantissa=mantissa)+(tolerance*100))
2816
2816
  if storeBREP:
2817
2817
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -2821,7 +2821,7 @@ class Graph:
2821
2821
  _ = vea.SetDictionary(d1)
2822
2822
  vertices.append(vea)
2823
2823
  tempe = Edge.ByStartVertexEndVertex(vCell, vea, tolerance=tolerance)
2824
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
2824
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
2825
2825
  _ = tempe.SetDictionary(tempd)
2826
2826
  edges.append(tempe)
2827
2827
  if toContents:
@@ -2836,7 +2836,7 @@ class Graph:
2836
2836
  vcn = content.CenterOfMass()
2837
2837
  vcn = Vertex.ByCoordinates(Vertex.X(vcn, mantissa=mantissa)+(tolerance*100), Vertex.Y(vcn, mantissa=mantissa)+(tolerance*100), Vertex.Z(vcn, mantissa=mantissa)+(tolerance*100))
2838
2838
  d1 = content.GetDictionary()
2839
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
2839
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
2840
2840
  if storeBREP:
2841
2841
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
2842
2842
  d3 = mergeDictionaries2([d1, d2])
@@ -2845,7 +2845,7 @@ class Graph:
2845
2845
  _ = vcn.SetDictionary(d1)
2846
2846
  vertices.append(vcn)
2847
2847
  tempe = Edge.ByStartVertexEndVertex(vCell, vcn, tolerance=tolerance)
2848
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
2848
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
2849
2849
  _ = tempe.SetDictionary(tempd)
2850
2850
  edges.append(tempe)
2851
2851
 
@@ -2855,7 +2855,7 @@ class Graph:
2855
2855
  else:
2856
2856
  vCell = aCell.CenterOfMass()
2857
2857
  d1 = aCell.GetDictionary()
2858
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
2858
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
2859
2859
  if storeBREP:
2860
2860
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(aCell), Topology.Type(aCell), Topology.TypeAsString(aCell)])
2861
2861
  d3 = mergeDictionaries2([d1, d2])
@@ -2874,7 +2874,7 @@ class Graph:
2874
2874
  else:
2875
2875
  vCell = topology.CenterOfMass()
2876
2876
  d1 = topology.GetDictionary()
2877
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
2877
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
2878
2878
  if storeBREP:
2879
2879
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
2880
2880
  d3 = mergeDictionaries2([d1, d2])
@@ -2903,11 +2903,11 @@ class Graph:
2903
2903
  else:
2904
2904
  vop = Topology.CenterOfMass(outpost)
2905
2905
  tempe = Edge.ByStartVertexEndVertex(vCell, vop, tolerance=tolerance)
2906
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
2906
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
2907
2907
  _ = tempe.SetDictionary(tempd)
2908
2908
  edges.append(tempe)
2909
2909
  d1 = outpost.GetDictionary()
2910
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 6) # outpost
2910
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 6) # outpost
2911
2911
  if storeBREP:
2912
2912
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(outpost), Topology.Type(outpost), Topology.TypeAsString(outpost)])
2913
2913
  d3 = mergeDictionaries2([d1, d2])
@@ -2932,7 +2932,7 @@ class Graph:
2932
2932
  vst = exteriorTopology.CenterOfMass()
2933
2933
  d1 = exteriorTopology.GetDictionary()
2934
2934
  d1 = topology.GetDictionary()
2935
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 3) # exterior topology
2935
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 3) # exterior topology
2936
2936
  if storeBREP:
2937
2937
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exteriorTopology), Topology.Type(exteriorTopology), Topology.TypeAsString(exteriorTopology)])
2938
2938
  d3 = mergeDictionaries2([d1, d2])
@@ -2941,7 +2941,7 @@ class Graph:
2941
2941
  _ = vst.SetDictionary(d1)
2942
2942
  vertices.append(vst)
2943
2943
  tempe = Edge.ByStartVertexEndVertex(vCell, vst, tolerance=tolerance)
2944
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Topologies"])
2944
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Topologies"])
2945
2945
  _ = tempe.SetDictionary(tempd)
2946
2946
  edges.append(tempe)
2947
2947
  if toContents:
@@ -2956,7 +2956,7 @@ class Graph:
2956
2956
  vst2 = content.CenterOfMass()
2957
2957
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
2958
2958
  d1 = content.GetDictionary()
2959
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
2959
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
2960
2960
  if storeBREP:
2961
2961
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
2962
2962
  d3 = mergeDictionaries2([d1, d2])
@@ -2965,7 +2965,7 @@ class Graph:
2965
2965
  _ = vst2.SetDictionary(d1)
2966
2966
  vertices.append(vst2)
2967
2967
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
2968
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
2968
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
2969
2969
  _ = tempe.SetDictionary(tempd)
2970
2970
  edges.append(tempe)
2971
2971
  if toExteriorApertures:
@@ -2975,7 +2975,7 @@ class Graph:
2975
2975
  else:
2976
2976
  vst = exTop.CenterOfMass()
2977
2977
  d1 = exTop.GetDictionary()
2978
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
2978
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
2979
2979
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
2980
2980
  if storeBREP:
2981
2981
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -2985,7 +2985,7 @@ class Graph:
2985
2985
  _ = vst.SetDictionary(d1)
2986
2986
  vertices.append(vst)
2987
2987
  tempe = Edge.ByStartVertexEndVertex(vCell, vst, tolerance=tolerance)
2988
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
2988
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
2989
2989
  _ = tempe.SetDictionary(tempd)
2990
2990
  edges.append(tempe)
2991
2991
  if toContents:
@@ -3000,7 +3000,7 @@ class Graph:
3000
3000
  vst = content.CenterOfMass()
3001
3001
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3002
3002
  d1 = content.GetDictionary()
3003
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3003
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3004
3004
  if storeBREP:
3005
3005
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3006
3006
  d3 = mergeDictionaries2([d1, d2])
@@ -3009,7 +3009,7 @@ class Graph:
3009
3009
  _ = vst.SetDictionary(d1)
3010
3010
  vertices.append(vst)
3011
3011
  tempe = Edge.ByStartVertexEndVertex(vCell, vst, tolerance=tolerance)
3012
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3012
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3013
3013
  _ = tempe.SetDictionary(tempd)
3014
3014
  edges.append(tempe)
3015
3015
  return [vertices, edges]
@@ -3124,7 +3124,7 @@ class Graph:
3124
3124
  else:
3125
3125
  vst = sharedTopology.CenterOfMass()
3126
3126
  d1 = sharedTopology.GetDictionary()
3127
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 1) # shared topology
3127
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 1) # shared topology
3128
3128
  if storeBREP:
3129
3129
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedTopology), Topology.Type(sharedTopology), Topology.TypeAsString(sharedTopology)])
3130
3130
  d3 = mergeDictionaries2([d1, d2])
@@ -3133,7 +3133,7 @@ class Graph:
3133
3133
  _ = vst.SetDictionary(d1)
3134
3134
  vertices.append(vst)
3135
3135
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3136
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Topologies"])
3136
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Topologies"])
3137
3137
  _ = tempe.SetDictionary(tempd)
3138
3138
  edges.append(tempe)
3139
3139
  if toContents:
@@ -3148,7 +3148,7 @@ class Graph:
3148
3148
  vst2 = content.CenterOfMass()
3149
3149
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3150
3150
  d1 = content.GetDictionary()
3151
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3151
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3152
3152
  if storeBREP:
3153
3153
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3154
3154
  d3 = mergeDictionaries2([d1, d2])
@@ -3157,7 +3157,7 @@ class Graph:
3157
3157
  _ = vst2.SetDictionary(d1)
3158
3158
  vertices.append(vst2)
3159
3159
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3160
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3160
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3161
3161
  _ = tempe.SetDictionary(tempd)
3162
3162
  edges.append(tempe)
3163
3163
  if viaSharedApertures:
@@ -3167,7 +3167,7 @@ class Graph:
3167
3167
  else:
3168
3168
  vst = sharedAp.CenterOfMass()
3169
3169
  d1 = sharedAp.GetDictionary()
3170
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 2) # shared aperture
3170
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 2) # shared aperture
3171
3171
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3172
3172
  if storeBREP:
3173
3173
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedAp), Topology.Type(sharedAp), Topology.TypeAsString(sharedAp)])
@@ -3177,7 +3177,7 @@ class Graph:
3177
3177
  _ = vst.SetDictionary(d1)
3178
3178
  vertices.append(vst)
3179
3179
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3180
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Apertures"])
3180
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Apertures"])
3181
3181
  _ = tempe.SetDictionary(tempd)
3182
3182
  edges.append(tempe)
3183
3183
  if toExteriorTopologies:
@@ -3187,7 +3187,7 @@ class Graph:
3187
3187
  else:
3188
3188
  vst = exteriorTopology.CenterOfMass()
3189
3189
  d1 = exteriorTopology.GetDictionary()
3190
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 3) # exterior topology
3190
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 3) # exterior topology
3191
3191
  if storeBREP:
3192
3192
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exteriorTopology), Topology.Type(exteriorTopology), Topology.TypeAsString(exteriorTopology)])
3193
3193
  d3 = mergeDictionaries2([d1, d2])
@@ -3196,7 +3196,7 @@ class Graph:
3196
3196
  _ = vst.SetDictionary(d1)
3197
3197
  vertices.append(vst)
3198
3198
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3199
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
3199
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
3200
3200
  _ = tempe.SetDictionary(tempd)
3201
3201
  edges.append(tempe)
3202
3202
  if toContents:
@@ -3211,7 +3211,7 @@ class Graph:
3211
3211
  vst2 = content.CenterOfMass()
3212
3212
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3213
3213
  d1 = content.GetDictionary()
3214
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3214
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3215
3215
  if storeBREP:
3216
3216
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3217
3217
  d3 = mergeDictionaries2([d1, d2])
@@ -3220,7 +3220,7 @@ class Graph:
3220
3220
  _ = vst2.SetDictionary(d1)
3221
3221
  vertices.append(vst2)
3222
3222
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3223
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3223
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3224
3224
  _ = tempe.SetDictionary(tempd)
3225
3225
  edges.append(tempe)
3226
3226
  if toExteriorApertures:
@@ -3230,7 +3230,7 @@ class Graph:
3230
3230
  else:
3231
3231
  vst = exTop.CenterOfMass()
3232
3232
  d1 = exTop.GetDictionary()
3233
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
3233
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
3234
3234
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3235
3235
  if storeBREP:
3236
3236
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -3240,7 +3240,7 @@ class Graph:
3240
3240
  _ = vst.SetDictionary(d1)
3241
3241
  vertices.append(vst)
3242
3242
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3243
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
3243
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
3244
3244
  _ = tempe.SetDictionary(tempd)
3245
3245
  edges.append(tempe)
3246
3246
  if toContents:
@@ -3255,7 +3255,7 @@ class Graph:
3255
3255
  vst = content.CenterOfMass()
3256
3256
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3257
3257
  d1 = content.GetDictionary()
3258
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3258
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3259
3259
  if storeBREP:
3260
3260
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3261
3261
  d3 = mergeDictionaries2([d1, d2])
@@ -3264,7 +3264,7 @@ class Graph:
3264
3264
  _ = vst.SetDictionary(d1)
3265
3265
  vertices.append(vst)
3266
3266
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3267
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3267
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3268
3268
  _ = tempe.SetDictionary(tempd)
3269
3269
  edges.append(tempe)
3270
3270
 
@@ -3274,7 +3274,7 @@ class Graph:
3274
3274
  else:
3275
3275
  vFace = aFace.CenterOfMass()
3276
3276
  d1 = aFace.GetDictionary()
3277
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3277
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3278
3278
  if storeBREP:
3279
3279
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(aFace), Topology.Type(aFace), Topology.TypeAsString(aFace)])
3280
3280
  d3 = mergeDictionaries2([d1, d2])
@@ -3305,7 +3305,7 @@ class Graph:
3305
3305
  vop = Topology.CenterOfMass(outpost)
3306
3306
  vcc = Topology.CenterOfMass(topology)
3307
3307
  d1 = Topology.Dictionary(vcc)
3308
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3308
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3309
3309
  if storeBREP:
3310
3310
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3311
3311
  d3 = mergeDictionaries2([d1, d2])
@@ -3314,7 +3314,7 @@ class Graph:
3314
3314
  _ = vcc.SetDictionary(d1)
3315
3315
  vertices.append(vcc)
3316
3316
  d1 = Topology.Dictionary(vop)
3317
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 6) # outpost
3317
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 6) # outpost
3318
3318
  if storeBREP:
3319
3319
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3320
3320
  d3 = mergeDictionaries2([d1, d2])
@@ -3323,7 +3323,7 @@ class Graph:
3323
3323
  _ = vop.SetDictionary(d1)
3324
3324
  vertices.append(vcc)
3325
3325
  tempe = Edge.ByStartVertexEndVertex(vcc, vop, tolerance=tolerance)
3326
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
3326
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
3327
3327
  _ = tempe.SetDictionary(tempd)
3328
3328
  edges.append(tempe)
3329
3329
  return [vertices, edges]
@@ -3338,7 +3338,7 @@ class Graph:
3338
3338
  else:
3339
3339
  vFace = topology.CenterOfMass()
3340
3340
  d1 = topology.GetDictionary()
3341
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3341
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3342
3342
  if storeBREP:
3343
3343
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3344
3344
  d3 = mergeDictionaries2([d1, d2])
@@ -3367,7 +3367,7 @@ class Graph:
3367
3367
  else:
3368
3368
  vop = Topology.CenterOfMass(outpost)
3369
3369
  tempe = Edge.ByStartVertexEndVertex(vFace, vop, tolerance=tolerance)
3370
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
3370
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
3371
3371
  _ = tempe.SetDictionary(tempd)
3372
3372
  edges.append(tempe)
3373
3373
  if (toExteriorTopologies == True) or (toExteriorApertures == True) or (toContents == True):
@@ -3388,7 +3388,7 @@ class Graph:
3388
3388
  else:
3389
3389
  vst = exteriorTopology.CenterOfMass()
3390
3390
  d1 = exteriorTopology.GetDictionary()
3391
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 3) # exterior topology
3391
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 3) # exterior topology
3392
3392
  if storeBREP:
3393
3393
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exteriorTopology), Topology.Type(exteriorTopology), Topology.TypeAsString(exteriorTopology)])
3394
3394
  d3 = mergeDictionaries2([d1, d2])
@@ -3397,7 +3397,7 @@ class Graph:
3397
3397
  _ = vst.SetDictionary(d1)
3398
3398
  vertices.append(vst)
3399
3399
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3400
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Topologies"])
3400
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Topologies"])
3401
3401
  _ = tempe.SetDictionary(tempd)
3402
3402
  edges.append(tempe)
3403
3403
  if toContents:
@@ -3412,7 +3412,7 @@ class Graph:
3412
3412
  vst2 = content.CenterOfMass()
3413
3413
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3414
3414
  d1 = content.GetDictionary()
3415
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3415
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3416
3416
  if storeBREP:
3417
3417
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3418
3418
  d3 = mergeDictionaries2([d1, d2])
@@ -3421,7 +3421,7 @@ class Graph:
3421
3421
  _ = vst2.SetDictionary(d1)
3422
3422
  vertices.append(vst2)
3423
3423
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3424
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3424
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3425
3425
  _ = tempe.SetDictionary(tempd)
3426
3426
  edges.append(tempe)
3427
3427
  if toExteriorApertures:
@@ -3431,7 +3431,7 @@ class Graph:
3431
3431
  else:
3432
3432
  vst = exTop.CenterOfMass()
3433
3433
  d1 = exTop.GetDictionary()
3434
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
3434
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
3435
3435
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3436
3436
  if storeBREP:
3437
3437
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -3441,7 +3441,7 @@ class Graph:
3441
3441
  _ = vst.SetDictionary(d1)
3442
3442
  vertices.append(vst)
3443
3443
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3444
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
3444
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
3445
3445
  _ = tempe.SetDictionary(tempd)
3446
3446
  edges.append(tempe)
3447
3447
  if toContents:
@@ -3456,7 +3456,7 @@ class Graph:
3456
3456
  vst = content.CenterOfMass()
3457
3457
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3458
3458
  d1 = content.GetDictionary()
3459
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3459
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3460
3460
  if storeBREP:
3461
3461
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3462
3462
  d3 = mergeDictionaries2([d1, d2])
@@ -3465,7 +3465,7 @@ class Graph:
3465
3465
  _ = vst.SetDictionary(d1)
3466
3466
  vertices.append(vst)
3467
3467
  tempe = Edge.ByStartVertexEndVertex(vFace, vst, tolerance=tolerance)
3468
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3468
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3469
3469
  _ = tempe.SetDictionary(tempd)
3470
3470
  edges.append(tempe)
3471
3471
  return [vertices, edges]
@@ -3558,7 +3558,7 @@ class Graph:
3558
3558
  except:
3559
3559
  vEdge = anEdge.CenterOfMass()
3560
3560
  # d1 = anEdge.GetDictionary()
3561
- # d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3561
+ # d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3562
3562
  # if storeBREP:
3563
3563
  # d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(anEdge), Topology.Type(anEdge), Topology.TypeAsString(anEdge)])
3564
3564
  # d3 = mergeDictionaries2([d1, d2])
@@ -3591,7 +3591,7 @@ class Graph:
3591
3591
  for sharedTopology in sharedTopologies:
3592
3592
  vst = sharedTopology.CenterOfMass()
3593
3593
  d1 = sharedTopology.GetDictionary()
3594
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 1) # shared topology
3594
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 1) # shared topology
3595
3595
  if storeBREP:
3596
3596
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedTopology), Topology.Type(sharedTopology), Topology.TypeAsString(sharedTopology)])
3597
3597
  d3 = mergeDictionaries2([d1, d2])
@@ -3600,7 +3600,7 @@ class Graph:
3600
3600
  _ = vst.SetDictionary(d1)
3601
3601
  vertices.append(vst)
3602
3602
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3603
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Topologies"])
3603
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Topologies"])
3604
3604
  _ = tempe.SetDictionary(tempd)
3605
3605
  edges.append(tempe)
3606
3606
  if toContents:
@@ -3615,7 +3615,7 @@ class Graph:
3615
3615
  vst2 = content.CenterOfMass()
3616
3616
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3617
3617
  d1 = content.GetDictionary()
3618
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3618
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3619
3619
  if storeBREP:
3620
3620
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3621
3621
  d3 = mergeDictionaries2([d1, d2])
@@ -3624,7 +3624,7 @@ class Graph:
3624
3624
  _ = vst2.SetDictionary(d1)
3625
3625
  vertices.append(vst2)
3626
3626
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3627
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3627
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3628
3628
  _ = tempe.SetDictionary(tempd)
3629
3629
  edges.append(tempe)
3630
3630
  if viaSharedApertures:
@@ -3634,7 +3634,7 @@ class Graph:
3634
3634
  else:
3635
3635
  vst = sharedAp.CenterOfMass()
3636
3636
  d1 = sharedAp.GetDictionary()
3637
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 2) # shared aperture
3637
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 2) # shared aperture
3638
3638
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3639
3639
  if storeBREP:
3640
3640
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(sharedAp), Topology.Type(sharedAp), Topology.TypeAsString(sharedAp)])
@@ -3644,7 +3644,7 @@ class Graph:
3644
3644
  _ = vst.SetDictionary(d1)
3645
3645
  vertices.append(vst)
3646
3646
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3647
- tempd = Dictionary.ByKeysValues(["relationship"],["Via Shared Apertures"])
3647
+ tempd = Dictionary.ByKeysValues(["relationship"],["Via_Shared_Apertures"])
3648
3648
  _ = tempe.SetDictionary(tempd)
3649
3649
  edges.append(tempe)
3650
3650
  if toExteriorTopologies:
@@ -3652,7 +3652,7 @@ class Graph:
3652
3652
  vst = exteriorTopology
3653
3653
  vertices.append(exteriorTopology)
3654
3654
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3655
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Topologies"])
3655
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Topologies"])
3656
3656
  _ = tempe.SetDictionary(tempd)
3657
3657
  edges.append(tempe)
3658
3658
  if toContents:
@@ -3667,7 +3667,7 @@ class Graph:
3667
3667
  vst2 = content.CenterOfMass()
3668
3668
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3669
3669
  d1 = content.GetDictionary()
3670
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3670
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3671
3671
  if storeBREP:
3672
3672
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3673
3673
  d3 = mergeDictionaries2([d1, d2])
@@ -3676,7 +3676,7 @@ class Graph:
3676
3676
  _ = vst2.SetDictionary(d1)
3677
3677
  vertices.append(vst2)
3678
3678
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3679
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3679
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3680
3680
  _ = tempe.SetDictionary(tempd)
3681
3681
  edges.append(tempe)
3682
3682
  if toExteriorApertures:
@@ -3686,7 +3686,7 @@ class Graph:
3686
3686
  else:
3687
3687
  vst = exTop.CenterOfMass()
3688
3688
  d1 = exTop.GetDictionary()
3689
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
3689
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
3690
3690
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3691
3691
  if storeBREP:
3692
3692
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -3696,7 +3696,7 @@ class Graph:
3696
3696
  _ = vst.SetDictionary(d1)
3697
3697
  vertices.append(vst)
3698
3698
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3699
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
3699
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
3700
3700
  _ = tempe.SetDictionary(tempd)
3701
3701
  edges.append(tempe)
3702
3702
  if toContents:
@@ -3711,7 +3711,7 @@ class Graph:
3711
3711
  vst = content.CenterOfMass()
3712
3712
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3713
3713
  d1 = content.GetDictionary()
3714
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3714
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3715
3715
  if storeBREP:
3716
3716
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3717
3717
  d3 = mergeDictionaries2([d1, d2])
@@ -3720,7 +3720,7 @@ class Graph:
3720
3720
  _ = vst.SetDictionary(d1)
3721
3721
  vertices.append(vst)
3722
3722
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3723
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3723
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3724
3724
  _ = tempe.SetDictionary(tempd)
3725
3725
  edges.append(tempe)
3726
3726
  for anEdge in topEdges:
@@ -3729,7 +3729,7 @@ class Graph:
3729
3729
  except:
3730
3730
  vEdge = anEdge.CenterOfMass()
3731
3731
  d1 = anEdge.GetDictionary()
3732
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topologuy
3732
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topologuy
3733
3733
  if storeBREP:
3734
3734
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(anEdge), Topology.Type(anEdge), Topology.TypeAsString(anEdge)])
3735
3735
  d3 = mergeDictionaries2([d1, d2])
@@ -3761,7 +3761,7 @@ class Graph:
3761
3761
  vop = Topology.CenterOfMass(outpost)
3762
3762
  vcc = Topology.CenterOfMass(topology)
3763
3763
  d1 = Topology.Dictionary(vcc)
3764
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3764
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3765
3765
  if storeBREP:
3766
3766
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3767
3767
  d3 = mergeDictionaries2([d1, d2])
@@ -3770,7 +3770,7 @@ class Graph:
3770
3770
  _ = vcc.SetDictionary(d1)
3771
3771
  vertices.append(vcc)
3772
3772
  d1 = Topology.Dictionary(vop)
3773
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 6) # outpost
3773
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 6) # outpost
3774
3774
  if storeBREP:
3775
3775
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3776
3776
  d3 = mergeDictionaries2([d1, d2])
@@ -3779,7 +3779,7 @@ class Graph:
3779
3779
  _ = vop.SetDictionary(d1)
3780
3780
  vertices.append(vop)
3781
3781
  tempe = Edge.ByStartVertexEndVertex(vcc, vop, tolerance=tolerance)
3782
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
3782
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
3783
3783
  _ = tempe.SetDictionary(tempd)
3784
3784
  edges.append(tempe)
3785
3785
 
@@ -3799,7 +3799,7 @@ class Graph:
3799
3799
  vEdge = topology.CenterOfMass()
3800
3800
 
3801
3801
  d1 = vEdge.GetDictionary()
3802
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 0) # main topology
3802
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 0) # main topology
3803
3803
  if storeBREP:
3804
3804
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(topology), Topology.Type(topology), Topology.TypeAsString(topology)])
3805
3805
  d3 = mergeDictionaries2([d1, d2])
@@ -3830,7 +3830,7 @@ class Graph:
3830
3830
  else:
3831
3831
  vop = Topology.CenterOfMass(outpost)
3832
3832
  tempe = Edge.ByStartVertexEndVertex(vEdge, vop, tolerance=tolerance)
3833
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
3833
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
3834
3834
  _ = tempe.SetDictionary(tempd)
3835
3835
  edges.append(tempe)
3836
3836
 
@@ -3851,7 +3851,7 @@ class Graph:
3851
3851
  else:
3852
3852
  vst = exteriorTopology.CenterOfMass()
3853
3853
  d1 = exteriorTopology.GetDictionary()
3854
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 3) # exterior topology
3854
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 3) # exterior topology
3855
3855
  if storeBREP:
3856
3856
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exteriorTopology), Topology.Type(exteriorTopology), Topology.TypeAsString(exteriorTopology)])
3857
3857
  d3 = mergeDictionaries2([d1, d2])
@@ -3860,7 +3860,7 @@ class Graph:
3860
3860
  _ = vst.SetDictionary(d1)
3861
3861
  vertices.append(vst)
3862
3862
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3863
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Topologies"])
3863
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Topologies"])
3864
3864
  _ = tempe.SetDictionary(tempd)
3865
3865
  edges.append(tempe)
3866
3866
  if toContents:
@@ -3875,7 +3875,7 @@ class Graph:
3875
3875
  vst2 = content.CenterOfMass()
3876
3876
  vst2 = Vertex.ByCoordinates(Vertex.X(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst2, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst2, mantissa=mantissa)+(tolerance*100))
3877
3877
  d1 = content.GetDictionary()
3878
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3878
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3879
3879
  if storeBREP:
3880
3880
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
3881
3881
  d3 = mergeDictionaries2([d1, d2])
@@ -3884,7 +3884,7 @@ class Graph:
3884
3884
  _ = vst2.SetDictionary(d1)
3885
3885
  vertices.append(vst2)
3886
3886
  tempe = Edge.ByStartVertexEndVertex(vst, vst2, tolerance=tolerance)
3887
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3887
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3888
3888
  _ = tempe.SetDictionary(tempd)
3889
3889
  edges.append(tempe)
3890
3890
  if toExteriorApertures:
@@ -3894,7 +3894,7 @@ class Graph:
3894
3894
  else:
3895
3895
  vst = exTop.CenterOfMass()
3896
3896
  d1 = exTop.GetDictionary()
3897
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 4) # exterior aperture
3897
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 4) # exterior aperture
3898
3898
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3899
3899
  if storeBREP:
3900
3900
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(exTop), Topology.Type(exTop), Topology.TypeAsString(exTop)])
@@ -3905,7 +3905,7 @@ class Graph:
3905
3905
  _ = vst.SetDictionary(exTop.GetDictionary())
3906
3906
  vertices.append(vst)
3907
3907
  tempe = Edge.ByStartVertexEndVertex(vEdge, vst, tolerance=tolerance)
3908
- tempd = Dictionary.ByKeysValues(["relationship"],["To Exterior Apertures"])
3908
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Exterior_Apertures"])
3909
3909
  _ = tempe.SetDictionary(tempd)
3910
3910
  edges.append(tempe)
3911
3911
 
@@ -3927,7 +3927,7 @@ class Graph:
3927
3927
  else:
3928
3928
  vst = content.CenterOfMass()
3929
3929
  d1 = content.GetDictionary()
3930
- d1 = Dictionary.SetValueAtKey(d1, nodeTypeKey, 5) # content
3930
+ d1 = Dictionary.SetValueAtKey(d1, vertexCategoryKey, 5) # content
3931
3931
  vst = Vertex.ByCoordinates(Vertex.X(vst, mantissa=mantissa)+(tolerance*100), Vertex.Y(vst, mantissa=mantissa)+(tolerance*100), Vertex.Z(vst, mantissa=mantissa)+(tolerance*100))
3932
3932
  if storeBREP:
3933
3933
  d2 = Dictionary.ByKeysValues(["brep", "brepType", "brepTypeString"], [Topology.BREPString(content), Topology.Type(content), Topology.TypeAsString(content)])
@@ -3937,7 +3937,7 @@ class Graph:
3937
3937
  _ = vst.SetDictionary(d1)
3938
3938
  vertices.append(vst)
3939
3939
  tempe = Edge.ByStartVertexEndVertex(topology, vst, tolerance=tolerance)
3940
- tempd = Dictionary.ByKeysValues(["relationship"],["To Contents"])
3940
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Contents"])
3941
3941
  _ = tempe.SetDictionary(tempd)
3942
3942
  edges.append(tempe)
3943
3943
 
@@ -3962,7 +3962,7 @@ class Graph:
3962
3962
  else:
3963
3963
  vop = Topology.CenterOfMass(outpost)
3964
3964
  tempe = Edge.ByStartVertexEndVertex(topology, vop, tolerance=tolerance)
3965
- tempd = Dictionary.ByKeysValues(["relationship"],["To Outposts"])
3965
+ tempd = Dictionary.ByKeysValues(["relationship"],["To_Outposts"])
3966
3966
  _ = tempe.SetDictionary(tempd)
3967
3967
  edges.append(tempe)
3968
3968