【三维视觉】TetWild / fTetWild学习:将任意mesh处理成流形水密的mesh

2024-03-30 06:04

本文主要是介绍【三维视觉】TetWild / fTetWild学习:将任意mesh处理成流形水密的mesh,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

项目地址

TetWild - Tetrahedral Meshing in the Wild
快速版本:Fast Tetrahedral Meshing in the Wild

2D版本:
TriWild: Robust Triangulation With Curve Constraints

快速版本的fTetWild

输入与输出

输入:任意网格:.off/.obj/.stl/.ply format
输出:保证是水密的
在这里插入图片描述

其中.msh文件可以用gmesh打开
在这里插入图片描述
这里的面片颜色代表的是每个面片与原始网格的误差,通过设置stop-energy来调节,默认的是8,当所有面片的最大误差都小于stop-energy时停止优化

参数含义

float-tetwild
Usage: ./FloatTetwild_bin [OPTIONS]Options:-h,--help                   Print this help message and exit-i,--input TEXT:FILE        Input surface mesh INPUT in .off/.obj/.stl/.ply format. (string, required)-o,--output TEXT            Output tetmesh OUTPUT in .msh format. (string, optional, default: input_file+postfix+'.msh')--tag TEXT:FILE             Tag input faces for Boolean operation.--op INT                    Boolean operation: 0: union, 1: intersection, 2: difference.-l,--lr FLOAT               ideal_edge_length = diag_of_bbox * L. (double, optional, default: 0.05)-e,--epsr FLOAT             epsilon = diag_of_bbox * EPS. (double, optional, default: 1e-3)--max-its INT               (for debugging usage only)--stop-energy FLOAT         Stop optimization when max energy is lower than this.--stage INT                 (for debugging usage only)--stop-p INT                (for debugging usage only)--postfix TEXT              (for debugging usage only)--log TEXT                  Log info to given file.--level INT                 Log level (0 = most verbose, 6 = off).-q,--is-quiet               Mute console output. (optional)--skip-simplify             skip preprocessing.--no-binary                 export meshes as ascii--no-color                  don't export color--not-sort-input            (for debugging usage only)--correct-surface-orientation(for debugging usage only)--envelope-log TEXT         (for debugging usage only)--smooth-open-boundary      Smooth the open boundary.--export-raw                Export raw output.--manifold-surface          Force the output to be manifold.--coarsen                   Coarsen the output as much as possible.--csg TEXT:FILE             json file containg a csg tree--use-old-energy            (for debugging usage only)--disable-filtering         Disable filtering out outside elements.--use-floodfill             Use flood-fill to extract interior volume.--use-general-wn            Use general winding number.--use-input-for-wn          Use input surface for winding number.--bg-mesh TEXT:FILE         Background mesh for sizing field (.msh file).--max-threads UINT          Maximum number of threads used
  • Smoothing open regions
    Our method can fill gaps and holes but the tetmesh faces on those parts could be bumpy. We provide users an option to do Lapacian smoothing on those faces to get a smoother surface.

  • Envelope of size epsilon
    Using smaller envelope preserves features better but also takes longer time. The default value of epsilon is b/1000, where b is the length of the diagonal of the bounding box.

  • Ideal edge length
    Using smaller ideal edge length gives a denser mesh but also takes longer time. The default ideal edge length is b/20

  • Filtering energy
    Our mesher stops optimizing the mesh when maximum energy is smaller than filtering energy. Thus, larger filtering energy means less optimization and sooner stopping. If you do not care about quality, then give a larger filtering energy would let you get the result earlier. The energy we used here is conformal AMIPS whose range is from 3 to +inf. The default filtering energy is 10.
    💡 We suggest not to set filtering energy smaller than 8 for complex input.

  • Maximum number of optimization passes
    Our mesher stops optimizing the mesh when the maximum number of passes is reached. The default number is 80.

  • bg-mesh
    Sizing field Users can provide a background tetmesh in .msh format with vertex scalar field values stored. The scalar field values is used for controlling edge length. The scalars inside an element of the background mesh are linearly interpolated.
    💡 Here is an example including input surface mesh, background mesh and output tetmeshes with/without sizing control.

  • Smoothing open regions
    Our method can fill gaps and holes but the tetmesh faces on those parts could be bumpy. We provide users an option to do Lapacian smoothing on those faces to get a smoother surface.

我的私人总结

–no-color don’t export color, 这里的颜色指的是给每个面片记录浮点的filtering energy

处理得到neural subdivision surfaces的输入网格的参数设置

./FloatTetwild_bin -i input_mesh_path -o  output_mesh_path_no_postfix -l 0.05 --e 0.0002 --manifold-surface --smooth-open-boundary

–l 0.05:更小的边长更精细,实测(0.05不到1min, 0.01需要2-3min, 0.005需要10+min)
Ideal edge length
Using smaller ideal edge length gives a denser mesh but also takes longer time. The default ideal edge length is b/20

–e 0.0002: 更小的值更好地保留特征
Envelope of size epsilon
Using smaller envelope preserves features better but also takes longer time. The default value of epsilon is b/1000, where b is the length of the diagonal of the bounding box.
–manifold-surface:保证流形,否则会出现非流形的顶点
在这里插入图片描述
–smooth-open-boundary:使用拉普拉斯平滑来平滑孔洞填充后的面
原始网格
在这里插入图片描述
没有平滑
在这里插入图片描述
有平滑
在这里插入图片描述

这篇关于【三维视觉】TetWild / fTetWild学习:将任意mesh处理成流形水密的mesh的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/860673

相关文章

电脑提示xlstat4.dll丢失怎么修复? xlstat4.dll文件丢失处理办法

《电脑提示xlstat4.dll丢失怎么修复?xlstat4.dll文件丢失处理办法》长时间使用电脑,大家多少都会遇到类似dll文件丢失的情况,不过,解决这一问题其实并不复杂,下面我们就来看看xls... 在Windows操作系统中,xlstat4.dll是一个重要的动态链接库文件,通常用于支持各种应用程序

SQL Server数据库死锁处理超详细攻略

《SQLServer数据库死锁处理超详细攻略》SQLServer作为主流数据库管理系统,在高并发场景下可能面临死锁问题,影响系统性能和稳定性,这篇文章主要给大家介绍了关于SQLServer数据库死... 目录一、引言二、查询 Sqlserver 中造成死锁的 SPID三、用内置函数查询执行信息1. sp_w

Java对异常的认识与异常的处理小结

《Java对异常的认识与异常的处理小结》Java程序在运行时可能出现的错误或非正常情况称为异常,下面给大家介绍Java对异常的认识与异常的处理,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参... 目录一、认识异常与异常类型。二、异常的处理三、总结 一、认识异常与异常类型。(1)简单定义-什么是

Go学习记录之runtime包深入解析

《Go学习记录之runtime包深入解析》Go语言runtime包管理运行时环境,涵盖goroutine调度、内存分配、垃圾回收、类型信息等核心功能,:本文主要介绍Go学习记录之runtime包的... 目录前言:一、runtime包内容学习1、作用:① Goroutine和并发控制:② 垃圾回收:③ 栈和

Golang 日志处理和正则处理的操作方法

《Golang日志处理和正则处理的操作方法》:本文主要介绍Golang日志处理和正则处理的操作方法,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考... 目录1、logx日志处理1.1、logx简介1.2、日志初始化与配置1.3、常用方法1.4、配合defer

springboot加载不到nacos配置中心的配置问题处理

《springboot加载不到nacos配置中心的配置问题处理》:本文主要介绍springboot加载不到nacos配置中心的配置问题处理,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑... 目录springboot加载不到nacos配置中心的配置两种可能Spring Boot 版本Nacos

Android学习总结之Java和kotlin区别超详细分析

《Android学习总结之Java和kotlin区别超详细分析》Java和Kotlin都是用于Android开发的编程语言,它们各自具有独特的特点和优势,:本文主要介绍Android学习总结之Ja... 目录一、空安全机制真题 1:Kotlin 如何解决 Java 的 NullPointerExceptio

python web 开发之Flask中间件与请求处理钩子的最佳实践

《pythonweb开发之Flask中间件与请求处理钩子的最佳实践》Flask作为轻量级Web框架,提供了灵活的请求处理机制,中间件和请求钩子允许开发者在请求处理的不同阶段插入自定义逻辑,实现诸如... 目录Flask中间件与请求处理钩子完全指南1. 引言2. 请求处理生命周期概述3. 请求钩子详解3.1

Python处理大量Excel文件的十个技巧分享

《Python处理大量Excel文件的十个技巧分享》每天被大量Excel文件折磨的你看过来!这是一份Python程序员整理的实用技巧,不说废话,直接上干货,文章通过代码示例讲解的非常详细,需要的朋友可... 目录一、批量读取多个Excel文件二、选择性读取工作表和列三、自动调整格式和样式四、智能数据清洗五、

SpringBoot如何对密码等敏感信息进行脱敏处理

《SpringBoot如何对密码等敏感信息进行脱敏处理》这篇文章主要为大家详细介绍了SpringBoot对密码等敏感信息进行脱敏处理的几个常用方法,文中的示例代码讲解详细,感兴趣的小伙伴可以了解下... 目录​1. 配置文件敏感信息脱敏​​2. 日志脱敏​​3. API响应脱敏​​4. 其他注意事项​​总结