Code Monkey home page Code Monkey logo

Comments (6)

rohan-sawhney avatar rohan-sawhney commented on July 17, 2024

Hi @rupeshchandgude, the texture coordinates are stored in the "vt" flag of the output file as per the obj standard: https://en.wikipedia.org/wiki/Wavefront_.obj_file

from boundary-first-flattening.

rupeshchandgude avatar rupeshchandgude commented on July 17, 2024

@rohan-sawhney Thanks Rohan. I am able to access those points.

from boundary-first-flattening.

rupeshchandgude avatar rupeshchandgude commented on July 17, 2024

@rohan-sawhney When I give my test mesh to command line as a input, Computation is yaking too much time as well as memory. Finally process is killed automatically due to full use of memory. I have attached obj file. This obj file actually created by converting ply file(which is generated by realsense camera).
Ply file : https://drive.google.com/file/d/1FFSrSCQvG1YU4AOeKdNElPYssgEsPGg9/view?usp=sharing
Obj File : https://drive.google.com/file/d/1AMs6x9k1ZoYT2m_Q1X75Gw2kkFJA2FCl/view?usp=sharing

Ply file also contains a RGB data fro every point. Is this thing making issue in my code?

from boundary-first-flattening.

rohan-sawhney avatar rohan-sawhney commented on July 17, 2024

Hi @rupeshchandgude, it seems like the drive links are broken, I'm not able to access the files.

from boundary-first-flattening.

rohan-sawhney avatar rohan-sawhney commented on July 17, 2024

@rupeshchandgude I was able to download the file and looked into what is going on. The memory blowup is a quick fix and I'll push a fix soon. However, the model itself is not a single or a few meshes, the entire model is basically a triangle soup (i.e., a bunch of individual triangles). In all, there are about 250,000 "meshes" (each consisting of 1-2 triangles). This is not a problem for the flattening algorithm which works just fine; however, the current bin packing algorithm (which places the meshes in the plane so that they don't overlap) in the codebase is quite slow at this scale. BFF needs a faster (and maybe simpler) strategy for bin packing so many meshes. In the meantime, you could maybe try joining the independent triangles into a larger pieces (you could do this by detecting all vertices with the same coordinates and assigning them a single index in the obj file) and then feeding those into BFF.

from boundary-first-flattening.

rupeshchandgude avatar rupeshchandgude commented on July 17, 2024

@rohan-sawhney Thanks for reply. I will try joining independent triangles into larger piece. Also can you please give me notification when you fix the memory blowup fix and update the repository.

from boundary-first-flattening.

Related Issues (20)

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.