Create a cropped power diagram

6 ビュー (過去 30 日間)
Zohar
Zohar 2022 年 5 月 31 日
移動済み: Sabin 2022 年 12 月 24 日
Given a set of 2D points, I'd like to create a power diagram that is cropped into a rectangle.
There is this:
but it's written with loops (slow), and it doesn't crop but based on the convex hull.
I was hoping for something more robust such as
Otherwise, I'll need to use cgal

回答 (1 件)

Brian O'Malley
Brian O'Malley 2022 年 6 月 23 日
移動済み: Sabin 2022 年 12 月 24 日
In case this hasn't been resolved, here's a faster version of the same function: https://www.mathworks.com/matlabcentral/fileexchange/56633-fast-bounded-power-diagram
  1 件のコメント
Zohar
Zohar 2022 年 6 月 24 日
移動済み: Sabin 2022 年 12 月 24 日
Might do the trick, thanks. However, I found out that there's a differnt approach (using Sinkhorn67), which I need to look into.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by