Git Product home page Git Product logo

scattered_points_interpolation's People

Contributors

wangbolun300 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

scattered_points_interpolation's Issues

About the input file obj

你好,Dr Wang
我是一个样条爱好者,我主要是做row point重构
我最近看到了你的论文是关于mesh_to_B_spline,所以我编译了项目尝试了一下。我发现了一个问题,所以来请教一下

我用一个已有的曲面导出为obj文件,然后用example.cpp文件进行重构,发现得到的曲面并不光滑

输入的文件car.obj
image

输出的文件intp_p842_m_car.obj
image

E:\Scattered_Points_Interpolation\build>example_bin.exe
reading mesh model: E:/Scattered_Points_Interpolation/app/meshes/car.obj
Warning: readOBJ() ignored non-comment line 1690:
  o object0
** UV grid sizes, 788, 792
finished initialize Uknot
0, 0, 0, 0, 0.0580191, 0.0870288, 0.116038, 0.145048, 0.164533, 0.188562, 0.199357, 0.207129, 0.216444, 0.230268, 0.283226, 0.330587, 0.384267, 0.43877, 0.488081, 0.532057, 0.576862, 0.627638, 0.681231, 0.731785, 0.770248, 0.79578, 0.810685, 0.821734, 0.832807, 0.849955, 0.87139, 0.897112, 0.922834, 0.948556, 1, 1, 1, 1,
finished initialize Vknot
0, 0, 0, 0, 0.0505352, 0.0758029, 0.10107, 0.126338, 0.147554, 0.176873, 0.202141, 0.218484, 0.248465, 0.26531, 0.276187, 0.285642, 0.301682, 0.326763, 0.347456, 0.364546, 0.389735, 0.414208, 0.438, 0.466854, 0.49602, 0.516733, 0.557138, 0.612942, 0.651257, 0.672755, 0.681923, 0.689572, 0.700197, 0.719232, 0.743026, 0.771578, 0.800131, 0.828684, 0.857237, 0.885789, 0.914342, 0.942895, 1, 1, 1, 1,
0, 0, 0, 0, 0.0580191, 0.0870288, 0.116038, 0.145048, 0.164533, 0.188562, 0.199357, 0.207129, 0.216444, 0.230268, 0.257349, 0.283226, 0.330587, 0.360916, 0.384267, 0.391649, 0.408386, 0.421353, 0.432118, 0.43877, 0.458372, 0.47216, 0.488081, 0.508555, 0.532057, 0.563966, 0.576862, 0.594507, 0.612566, 0.627638, 0.639684, 0.656435, 0.674774, 0.681231, 0.692258, 0.701482, 0.710603, 0.712936, 0.71774, 0.724762, 0.731785, 0.737132, 0.748025, 0.759306, 0.766992, 0.770248, 0.773116, 0.776102, 0.778857, 0.784516, 0.788844, 0.79578, 0.810685, 0.821734, 0.832807, 0.849955, 0.87139, 0.897112, 0.922834, 0.934733, 0.948556, 0.955267, 0.963912, 0.97235, 0.98353, 0.988402, 1, 1, 1, 1,
0, 0, 0, 0, 0.0505352, 0.0758029, 0.10107, 0.126338, 0.147554, 0.176873, 0.202141, 0.218484, 0.248465, 0.26531, 0.276187, 0.285642, 0.301682, 0.31563, 0.326763, 0.347456, 0.364546, 0.389735, 0.414208, 0.438, 0.466854, 0.478383, 0.49602, 0.507034, 0.516733, 0.538744, 0.548001, 0.557138, 0.567228, 0.582274, 0.591513, 0.601291, 0.612942, 0.624124, 0.633001, 0.646634, 0.648576, 0.651257, 0.65803, 0.666926, 0.672755, 0.680215, 0.681923, 0.683105, 0.689572, 0.700197, 0.719232, 0.727967, 0.743026, 0.756269, 0.771578, 0.785756, 0.800131, 0.828684, 0.857237, 0.885789, 0.903897, 0.914342, 0.929291, 0.942895, 0.95323, 0.957862, 0.969611, 0.975945, 0.980797, 0.986882, 1, 1, 1, 1,
knot fixing finished, sizes 74 74
knot vectors generated
inside left part
finish rd
energy matrix finish calculation
finish lu
finish ld
finish ru
sizes
lu, 4900 4900
ru, 4900 842
ld, 842 4900
rd, 842 842
before solving
after solving, error is 2.42709e-09
before solving
after solving, error is 4.00785e-09
before solving
after solving, error is 3.70945e-09
surface solved
maximal interpolation error 4.79692e-08
done !

E:\Scattered_Points_Interpolation\build>

输入的文件如下,需要改一下后缀为obj

car.zip

这个obj是软件导出来的,格式和您的项目的那个不太一样

vn 0.7752121368883934 0.18476841935808158 0.6040751393898336
vn -0.02850196090451563 -0.9979510034656555 0.05728379270342009
vn -0.015919067063566928 -0.9988517856633516 0.045185103529366416
vn -0.010107589329351635 -0.9999390164755665 0.0044497154769745206
vn 0.0003223987577743805 -0.999994830181783 0.003199323170270497
vn -0.012154839264485028 -0.9999088228808478 0.005882670098860495
vn 0.0011868995134513272 0.9999960687050093 0.0025404417079441877
vn 0.014909067898857148 0.9998780968239268 0.004638015324380891
vn -0.0032995638157852633 0.9999827384631288 0.004861651407424617
vn 0.009288366064202929 0.9999482888325603 0.004140762815236116
vn 0.7804404345307484 0.08491771213787927 0.6194366071800443
vn -0.0014308889823957636 7.588276693287761e-6 0.999998976249045
o object0
g MATHEMATICA_OBJ_MTL1
usemtl MATHEMATICA_OBJ_MTL1

但是,另一个耳朵模型从视觉上看到没有出现问题

image

image

输入文件如下
ear.zip

Multiple definition when Linking CXX executable Sparse_Interp_bin

erreur multiple definition

Hello,
I have an error in the compilation process, i hope i have followed the read me as it should be.
The error is a multiple definition (as show in the attachement), but i didn't know where it came and how to fix it.
I am using WSL with Ubuntu and Cmake version 3.22.1.
i am looking forward to reading from you.
Kind regards,
Théo

PIA生成蜂窝曲面

Dr Wang
你好,请教一下,使用PIA我发现很容易产生蜂窝状的曲面,我测试了很多模型都是类似这样

image

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.