topologicpy 0.7.68__py3-none-any.whl → 0.7.69__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
@@ -7845,6 +7845,7 @@ class Graph:
7845
7845
  sagitta = 0,
7846
7846
  absolute = False,
7847
7847
  sides = 8,
7848
+ angle = 0,
7848
7849
  vertexColor="black",
7849
7850
  vertexSize=6,
7850
7851
  vertexLabelKey=None,
@@ -7893,6 +7894,8 @@ class Graph:
7893
7894
  For example, if the length of the edge is 10, the sagitta is set to 0.5, and absolute is set to False, the sagitta length will be 5. The default is True.
7894
7895
  sides : int , optional
7895
7896
  The number of sides of the arc. The default is 8.
7897
+ angle : float, optional
7898
+ An additional angle in degrees to rotate arcs (where sagitta is more than 0). The default is 0.
7896
7899
  vertexColor : str , optional
7897
7900
  The desired color of the output vertices. This can be any plotly color string and may be specified as:
7898
7901
  - A hex string (e.g. '#ff0000')
@@ -7994,7 +7997,7 @@ class Graph:
7994
7997
  print("Graph.Show - Error: The input graph is not a valid graph. Returning None.")
7995
7998
  return None
7996
7999
 
7997
- data= Plotly.DataByGraph(graph, sagitta=sagitta, absolute=absolute, sides=sides, vertexColor=vertexColor, vertexSize=vertexSize, vertexLabelKey=vertexLabelKey, vertexGroupKey=vertexGroupKey, vertexGroups=vertexGroups, showVertices=showVertices, showVertexLabels=showVertexLabels, showVertexLegend=showVertexLegend, edgeColor=edgeColor, edgeWidth=edgeWidth, edgeLabelKey=edgeLabelKey, edgeGroupKey=edgeGroupKey, edgeGroups=edgeGroups, showEdges=showEdges, showEdgeLabels=showEdgeLabels, showEdgeLegend=showEdgeLegend, colorScale=colorScale, silent=silent)
8000
+ data= Plotly.DataByGraph(graph, sagitta=sagitta, absolute=absolute, sides=sides, angle=angle, vertexColor=vertexColor, vertexSize=vertexSize, vertexLabelKey=vertexLabelKey, vertexGroupKey=vertexGroupKey, vertexGroups=vertexGroups, showVertices=showVertices, showVertexLabels=showVertexLabels, showVertexLegend=showVertexLegend, edgeColor=edgeColor, edgeWidth=edgeWidth, edgeLabelKey=edgeLabelKey, edgeGroupKey=edgeGroupKey, edgeGroups=edgeGroups, showEdges=showEdges, showEdgeLabels=showEdgeLabels, showEdgeLegend=showEdgeLegend, colorScale=colorScale, silent=silent)
7998
8001
  fig = Plotly.FigureByData(data, width=width, height=height, xAxis=xAxis, yAxis=yAxis, zAxis=zAxis, axisSize=axisSize, backgroundColor=backgroundColor,
7999
8002
  marginLeft=marginLeft, marginRight=marginRight, marginTop=marginTop, marginBottom=marginBottom, tolerance=tolerance)
8000
8003
  Plotly.Show(fig, renderer=renderer, camera=camera, center=center, up=up, projection=projection)
topologicpy/Plotly.py CHANGED
@@ -276,6 +276,7 @@ class Plotly:
276
276
  sagitta: float = 0,
277
277
  absolute: bool = False,
278
278
  sides: int = 8,
279
+ angle: float = 0,
279
280
  vertexColor: str = "black",
280
281
  vertexSize: float = 6,
281
282
  vertexLabelKey: str = None,
@@ -454,6 +455,9 @@ class Plotly:
454
455
  d = Topology.Dictionary(edge)
455
456
  arc = Wire.ArcByEdge(edge, sagitta=sagitta, absolute=absolute, sides=sides, close=False, silent=silent)
456
457
  if Topology.IsInstance(arc, "Wire"):
458
+ if not angle == 0:
459
+ direc = Edge.Direction(edge)
460
+ arc = Topology.Rotate(arc, origin=Topology.Centroid(edge), axis=direc, angle=angle)
457
461
  arc_edges = Topology.Edges(arc)
458
462
  for arc_edge in arc_edges:
459
463
  arc_edge = Topology.SetDictionary(arc_edge, d, silent=True)
topologicpy/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.7.68'
1
+ __version__ = '0.7.69'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: topologicpy
3
- Version: 0.7.68
3
+ Version: 0.7.69
4
4
  Summary: An AI-Powered Spatial Modelling and Analysis Software Library for Architecture, Engineering, and Construction.
5
5
  Author-email: Wassim Jabi <wassim.jabi@gmail.com>
6
6
  License: AGPL v3 License
@@ -11,13 +11,13 @@ topologicpy/Dictionary.py,sha256=cURg452wwk2WeSxWY46ncgAUo5XD1c2c5EtO6ESZHaY,273
11
11
  topologicpy/Edge.py,sha256=--D035FBJa9hfPSPrPsNQluq1NHx7d3IGnklxbH-9qo,66928
12
12
  topologicpy/EnergyModel.py,sha256=AqTtmXE35SxvRXhG3vYAQd7GQDW-6HtjYPHua6ME4Eg,53762
13
13
  topologicpy/Face.py,sha256=vKtqoXmxLCC23QNg7Mk5PfFZACnbKh04vWRDoFCz1jw,124344
14
- topologicpy/Graph.py,sha256=fxoeDCxrcLyWoLPF5fGLt55KECYLVxsfKpDwS-qrc4k,385300
14
+ topologicpy/Graph.py,sha256=CfyYvm-oFCURM3XpctekI-4qsOG2B6lZxgjD3WZlysQ,385478
15
15
  topologicpy/Grid.py,sha256=9N6PE84qCm40TRi2WtlVZSBwXXr47zHpscEpZHg_JW4,18205
16
16
  topologicpy/Helper.py,sha256=i-AfI29NMsZXBaymjilfvxQbuS3wpYbpPw4RWu1YCHs,16358
17
17
  topologicpy/Honeybee.py,sha256=HfTaEV1R8K1xOVQQy9sBOhBTF_ap8A2RxZOYhirp_Mw,21835
18
18
  topologicpy/Matrix.py,sha256=umgR7An919-wGInXJ1wpqnoQ2jCPdyMe2rcWTZ16upk,8079
19
19
  topologicpy/Neo4j.py,sha256=t52hgE9cVsqkGc7m7fjRsLnyfRHakVHwdvF4ms7ow78,22342
20
- topologicpy/Plotly.py,sha256=I67uOdeiH8-cKK0OUbKghJDGTP225H5-3Vtijyosvfk,109535
20
+ topologicpy/Plotly.py,sha256=cs0LBOVm6WerT_F4IcFvQSRq_fYB9eVwRKiH2ogBgAI,109785
21
21
  topologicpy/Polyskel.py,sha256=EFsuh2EwQJGPLiFUjvtXmAwdX-A4r_DxP5hF7Qd3PaU,19829
22
22
  topologicpy/PyG.py,sha256=LU9LCCzjxGPUM31qbaJXZsTvniTtgugxJY7y612t4A4,109757
23
23
  topologicpy/Shell.py,sha256=CyMXuHoua_-lGGOr-1bgZa1VGpNsBGOe-dmkwhek-xY,87639
@@ -28,9 +28,9 @@ topologicpy/Vector.py,sha256=A1g83zDHep58iVPY8WQ8iHNrSOfGWFEzvVeDuMnjDNY,33078
28
28
  topologicpy/Vertex.py,sha256=ZS6xK89JKokBKc0W8frdRhhuzR8c-dI1TTLt7pTf1iA,71032
29
29
  topologicpy/Wire.py,sha256=rThgAyePNkNR6LlX0lgEJZFWo7EEads1V9JdGDlZg7s,172596
30
30
  topologicpy/__init__.py,sha256=vlPCanUbxe5NifC4pHcnhSzkmmYcs_UrZrTlVMsxcFs,928
31
- topologicpy/version.py,sha256=TQcBZ_0LJ13NMY5YrTufxmektelSYqtqEEsvl1QxCJE,23
32
- topologicpy-0.7.68.dist-info/LICENSE,sha256=FK0vJ73LuE8PYJAn7LutsReWR47-Ooovw2dnRe5yV6Q,681
33
- topologicpy-0.7.68.dist-info/METADATA,sha256=pbI5CtiVUC2x6-LBgOhjVamnGJ9iybk_z18VcENQvJ8,10493
34
- topologicpy-0.7.68.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
35
- topologicpy-0.7.68.dist-info/top_level.txt,sha256=J30bDzW92Ob7hw3zA8V34Jlp-vvsfIkGzkr8sqvb4Uw,12
36
- topologicpy-0.7.68.dist-info/RECORD,,
31
+ topologicpy/version.py,sha256=UErkCOdXUeiXypvE6Y_mIRwXPLVpNPZlCmzkyCOtIFw,23
32
+ topologicpy-0.7.69.dist-info/LICENSE,sha256=FK0vJ73LuE8PYJAn7LutsReWR47-Ooovw2dnRe5yV6Q,681
33
+ topologicpy-0.7.69.dist-info/METADATA,sha256=vdn5AAP-L9awRhLdq92MaSotd8o9utf6DvSQawwj_-M,10493
34
+ topologicpy-0.7.69.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
35
+ topologicpy-0.7.69.dist-info/top_level.txt,sha256=J30bDzW92Ob7hw3zA8V34Jlp-vvsfIkGzkr8sqvb4Uw,12
36
+ topologicpy-0.7.69.dist-info/RECORD,,