NonManifoldTopology / Topologic

Topologic is a software modelling library enabling hierarchical and topological representations of architectural spaces, buildings and artefacts through non-manifold topology.
GNU Affero General Public License v3.0
74 stars 19 forks source link

Merge operation of the same object (i.e. vertex) throws an exception. #3

Open c1032831 opened 6 years ago

c1032831 commented 6 years ago

Expected Behavior

Merge operation of the same object (i.e. vertex) should be doable and should return a vertex. This is test case ID V_V_5_M.

Current Behavior

Currently, I am getting the following message: Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed. Traceback (most recent call last): File "", line 53, in Exception: Error: There are no enough arguments to perform the operation Line 53 is: resultV_V_5_M = va.Merge(va) v_v_5_m

Possible Solution

...

Steps to Reproduce (for bugs)

  1. Entity Creation

    p1 = Point.ByCoordinates(0,0,0) va = Topologic.Vertex.ByPoint(p1)

  2. Test V_V_5_M

    resultV_V_5_M = va.Merge(va)

  3. Analyse results

    resultV_V_5_MAnalysis = Topologic.Topology.Analyze(resultV_V_5_M)

  4. Number of result entities

    nbVerticesV_V_5_M = len(resultV_V_5_M.Vertices()) nbEdgesV_V_5_M = len(resultV_V_5_M.Edges())

  5. Assign your output to the OUT variable.

    OUT = [nbVerticesV_V_5_M, nbEdgesV_V_5_M]

Context

I am setting up the testing schema, so came across this exception.

Your Environment