8000 Geometry has one or fewer segments error · Issue #16 · tmolteno/python-necpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Geometry has one or fewer segments error #16
Open
@LiamLombard

Description

@LiamLombard

RuntimeError: GEOMETRY HAS ONE OR FEWER SEGMENTS. Please send bug report. This causes an error that we're trying to fix.

The error log requested a bug report, thought I'd submit this.

Not sure how useful this is if you knew about the bug already but this is a reproducible example (I'm running this on python 3.7.4 on windows, haven't tested on linux):

import PyNEC as nec

context = nec.nec_context()
geo = context.get_geometry()

parent = [0, 0, 0]
child = [-0.001, 0, 0.001]

geo.wire(
    tag_id=0,
    segment_count=1,
    xw1=parent[0],
    yw1=parent[1],
    zw1=parent[2],
    xw2=child[0],
    yw2=child[1],
    zw2=child[2],
    rad=0.001,
    rdel=1.0,
    rrad=1.0
)

context.geometry_complete(0)

The bug itself isn't a huge issue for me, but am happy to help if needed. Let me know if you need any more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0