【三维视觉】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

相关文章

Python+FFmpeg实现视频自动化处理的完整指南

《Python+FFmpeg实现视频自动化处理的完整指南》本文总结了一套在Python中使用subprocess.run调用FFmpeg进行视频自动化处理的解决方案,涵盖了跨平台硬件加速、中间素材处理... 目录一、 跨平台硬件加速:统一接口设计1. 核心映射逻辑2. python 实现代码二、 中间素材处

Go异常处理、泛型和文件操作实例代码

《Go异常处理、泛型和文件操作实例代码》Go语言的异常处理机制与传统的面向对象语言(如Java、C#)所使用的try-catch结构有所不同,它采用了自己独特的设计理念和方法,:本文主要介绍Go异... 目录一:异常处理常见的异常处理向上抛中断程序恢复程序二:泛型泛型函数泛型结构体泛型切片泛型 map三:文

SpringSecurity中的跨域问题处理方案

《SpringSecurity中的跨域问题处理方案》本文介绍了跨域资源共享(CORS)技术在JavaEE开发中的应用,详细讲解了CORS的工作原理,包括简单请求和非简单请求的处理方式,本文结合实例代码... 目录1.什么是CORS2.简单请求3.非简单请求4.Spring跨域解决方案4.1.@CrossOr

requests处理token鉴权接口和jsonpath使用方式

《requests处理token鉴权接口和jsonpath使用方式》文章介绍了如何使用requests库进行token鉴权接口的处理,包括登录提取token并保存,还详述了如何使用jsonpath表达... 目录requests处理token鉴权接口和jsonpath使用json数据提取工具总结reques

C# 空值处理运算符??、?. 及其它常用符号

《C#空值处理运算符??、?.及其它常用符号》本文主要介绍了C#空值处理运算符??、?.及其它常用符号,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录一、核心运算符:直接解决空值问题1.??空合并运算符2.?.空条件运算符二、辅助运算符:扩展空值处理

浅析Python中如何处理Socket超时

《浅析Python中如何处理Socket超时》在网络编程中,Socket是实现网络通信的基础,本文将深入探讨Python中如何处理Socket超时,并提供完整的代码示例和最佳实践,希望对大家有所帮助... 目录开篇引言核心要点逐一深入讲解每个要点1. 设置Socket超时2. 处理超时异常3. 使用sele

SpringMVC配置、映射与参数处理​入门案例详解

《SpringMVC配置、映射与参数处理​入门案例详解》文章介绍了SpringMVC框架的基本概念和使用方法,包括如何配置和编写Controller、设置请求映射规则、使用RestFul风格、获取请求... 目录1.SpringMVC概述2.入门案例①导入相关依赖②配置web.XML③配置SpringMVC

解决docker目录内存不足扩容处理方案

《解决docker目录内存不足扩容处理方案》文章介绍了Docker存储目录迁移方法:因系统盘空间不足,需将Docker数据迁移到更大磁盘(如/home/docker),通过修改daemon.json配... 目录1、查看服务器所有磁盘的使用情况2、查看docker镜像和容器存储目录的空间大小3、停止dock

5 种使用Python自动化处理PDF的实用方法介绍

《5种使用Python自动化处理PDF的实用方法介绍》自动化处理PDF文件已成为减少重复工作、提升工作效率的重要手段,本文将介绍五种实用方法,从内置工具到专业库,帮助你在Python中实现PDF任务... 目录使用内置库(os、subprocess)调用外部工具使用 PyPDF2 进行基本 PDF 操作使用

分析 Java Stream 的 peek使用实践与副作用处理方案

《分析JavaStream的peek使用实践与副作用处理方案》StreamAPI的peek操作是中间操作,用于观察元素但不终止流,其副作用风险包括线程安全、顺序混乱及性能问题,合理使用场景有限... 目录一、peek 操作的本质:有状态的中间操作二、副作用的定义与风险场景1. 并行流下的线程安全问题2. 顺