微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何清理 Open3D 中的网格?

如何解决如何清理 Open3D 中的网格?

我使用 Python 中的 Open3D 库从 3D 云点创建了表面网格。我有很多域彼此相似的情况。 在大多数情况下,open3D 在创建闭合曲面网格方面做得很好,但在少数情况下,它会从域中创建一些异常网格。 下面是来自 Open3D 的表面网格代码

import discord ----------#imports discord.py
import datetime,time ---#this is the important set for generating an uptime

from discord.ext import commands

#this is very important for creating a cog
class whateverYouNameYourCog(commands.Cog):
    def __init__(self,bot):
        self.bot = bot

    @commands.Cog.listener()
    async def on_ready(self):
        print(f'{self} has been loaded') 
        global startTime --------#global variable to be used later in cog
        startTime = time.time()--# snapshot of time when listener sends on_ready

    #create a command in the cog
    @commands.command(name='Uptime')
    async def _uptime(self,ctx):

        # what this is doing is creating a variable called 'uptime' and assigning it
        # a string value based off calling a time.time() snapshot Now,and subtracting
        # the global from earlier
        uptime = str(datetime.timedelta(seconds=int(round(time.time()-startTime))))
        await ctx.send(uptime)

#needed or the cog won't run
def setup(bot)
    bot.add_cog(whateverYouNameYourCog(bot))    enter code here

我附上了从域中获得的异常网格的图片。如何从 Open3D 中清除这些网格?。这仅发生在少数测试用例中。我们可以很容易地在异常图像中看到网格是如何在域外的。

Complete mesh after completion

Outlier when the mesh is zoomed in

任何线索将不胜感激。

问候, Sunag R A.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。