惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
J
Java Code Geeks
U
Unit 42
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
L
LangChain Blog
D
Docker
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
I
InfoQ
The Cloudflare Blog
小众软件
小众软件
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
V
V2EX
月光博客
月光博客
Martin Fowler
Martin Fowler

Martin Owens activity

Martin Owens deleted project branch average-color-divide at Inkscape / inkscape Fix divide-by-zero crash when using calligraphy tool (!7923) · Merge requests · Inkscape / inkscape · GitLab Add selection file to bypass Windows command length limits (correction) (865df7a5) · Commits · Inkscape / inkscape · GitLab Draft: Fix AppImage crashing during save on older distros (!7922) · Merge requests · Inkscape / inkscape · GitLab e71fa7f8e0858aab87b7fc0814a30a8c88da9b43 to fe225a6b9e1042c7221d95173be22a02b3725337 · Martin Owens / inkscape · GitLab 403 Forbidden on Inkscape web server (#693) · Issues · Inkscape / inkscape-web · GitLab 403 Forbidden on Inkscape web server (#13509) · Issues · Inkscape / Inbox · GitLab Add selection file to bypass Windows command length limits (correction) (!7917) · 合并请求 · Inkscape / inkscape · GitLab Non-vertical axonometric axis implementation (!7912) · Merge requests · Inkscape / inkscape · GitLab Update split mode on tab switch (!7915) · Merge requests · Inkscape / inkscape · GitLab inset/offset as app functions so they can be used from CLI (!7914) · Merge requests · Inkscape / inkscape · GitLab Performace regresion in last month (#5879) · Issues · Inkscape / inkscape · GitLab [Regression] Right-aligned text has a new gap in 1.4.4 (#6130) · Issues · Inkscape / inkscape · GitLab [Regression] Right-aligned text has a new gap in 1.4.4 (#13498) · Issues · Inkscape / Inbox · GitLab c503804e014994d611de1b225bee8158c06448a8 to a4588d8ead1e7049b90c5a126962746ed286ab17 · Inkscape / inkscape-web · GitLab Validate the extensions of signature file uploads (a4588d8e) · 提交 · Inkscape / inkscape-web · GitLab Allow color conversions using static arrays instead of just vectors (e71fa7f8) · 提交 · Martin Owens / inkscape · GitLab Speed up ungroup on thousands of items (!7908) · Merge requests · Inkscape / inkscape · GitLab Incorrect handling of FontMatrix and transformation matrices with internal PDF import (#4845) · Issues · Inkscape / inkscape · GitLab Handling edge case of negative fonts in PDF (59040229) · 提交 · Inkscape / inkscape · GitLab Handling edge case of negative fonts in PDF (!7911) · 合并请求 · Inkscape / inkscape · GitLab Allow color conversions using static arrays instead of just vectors (33e65d1b) · Commits · Martin Owens / inkscape · GitLab Allow color conversions using static arrays instead of just vectors (9be5f867) · Commits · Martin Owens / inkscape · GitLab a9672ea1dff483b5b3aa8c6b5d88cd223001bef5 to 512a5e57602ac52e1d35782a7dcebae04262b2b8 · Martin Owens / inkscape · GitLab Add selection file to bypass Windows command length limits (!7905) · 合并请求 · Inkscape / inkscape · GitLab Revert Pango label changes (1.4.x) (!7907) · 合并请求 · Inkscape / inkscape · GitLab Crash on selecting a `<text>` object without a `<tspan>` inside (#5462) · Issues · Inkscape / inkscape · GitLab Fix breakage with Ubuntu 26.04 CI (!7904) · 合并请求 · Inkscape / inkscape · GitLab c673fdd5148253276826d4eda3951daaefb82607 to 356b31383ba324396a225686613236484305533d · Martin Owens / inkscape · GitLab Revert Text tool cursor changes (1.4.x) (!7903) · 合并请求 · Inkscape / inkscape · GitLab
voronoi.py: remove plot(1) output (eb017f7f) · Commits · ...
Martin Owens · 2026-05-25 · via Martin Owens activity
+5 −16
Original line number Diff line number Diff line
@@ -55,9 +55,6 @@ Other options include:

d    Print debugging info

p    Produce output suitable for input to plot (1), rather than the forms
     described above.

On unsorted data uniformly distributed in the unit square, voronoi uses about
20n+140 bytes of storage.

@@ -132,7 +129,6 @@ class Context(object):
    def __init__(self):
        self.doPrint = 0
        self.debug = 0
        self.plot = 0
        self.triangulate = False
        self.vertices = []  # list of vertex 2-tuples: (x,y)
        self.lines = []  # equation of line 3-tuple (a b c), for the equation of the line a*x+b*y = c
@@ -153,8 +149,6 @@ class Context(object):
            print("site (%d) at %f %f" % (s.sitenum, s.x, s.y))
        elif self.triangulate:
            pass
        elif self.plot:
            self.circle(s.x, s.y, cradius)
        elif self.doPrint:
            print("s %f %f" % (s.x, s.y))

@@ -164,7 +158,7 @@ class Context(object):
            print("vertex(%d) at %f %f" % (s.sitenum, s.x, s.y))
        elif self.triangulate:
            pass
        elif self.doPrint and not self.plot:
        elif self.doPrint:
            print("v %f %f" % (s.x, s.y))

    def outTriple(self, s1, s2, s3):
@@ -174,7 +168,7 @@ class Context(object):
                "circle through left=%d right=%d bottom=%d"
                % (s1.sitenum, s2.sitenum, s3.sitenum)
            )
        elif self.triangulate and self.doPrint and not self.plot:
        elif self.triangulate and self.doPrint:
            print("%d %d %d" % (s1.sitenum, s2.sitenum, s3.sitenum))

    def outBisector(self, edge):
@@ -192,9 +186,8 @@ class Context(object):
                )
            )
        elif self.triangulate:
            if self.plot:
                self.line(edge.reg[0].x, edge.reg[0].y, edge.reg[1].x, edge.reg[1].y)
        elif self.doPrint and not self.plot:
            pass
        elif self.doPrint:
            print("l %f %f %f" % (edge.a, edge.b, edge.c))

    def outEdge(self, edge):
@@ -206,9 +199,7 @@ class Context(object):
            sitenumR = edge.ep[Edge.RE].sitenum
        self.edges.append((edge.edgenum, sitenumL, sitenumR))
        if not self.triangulate:
            if self.plot:
                self.clip_line(edge)
            elif self.doPrint:
            if self.doPrint:
                print("e %d" % edge.edgenum, end=" ")
                print(" %d " % sitenumL, end=" ")
                print("%d" % sitenumR)
@@ -832,8 +823,6 @@ if __name__ == "__main__":
    for opt in optlist:
        if opt[0] == "-d":
            c.debug = 1
        if opt[0] == "-p":
            c.plot = 1
        if opt[0] == "-t":
            c.triangulate = 1
        if opt[0] == "-h":