Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXPORTS: Export 3D Pattern mesh #31

Open
sconklin opened this issue Nov 22, 2017 · 7 comments
Open

EXPORTS: Export 3D Pattern mesh #31

sconklin opened this issue Nov 22, 2017 · 7 comments

Comments

@sconklin
Copy link
Collaborator

sconklin commented Nov 22, 2017

From @sconklin on January 20, 2015 23:36

Originally reported by: Susan Spencer (Bitbucket: susanlspencer, GitHub: Unknown)


Create patterns in 3D format.

Possibly use Wavefront .obj format.
Recommend generating patterns using quadrangles.
Recommend generating patterns so that edge vertices are aligned in pairs along seams
so that seams can be 'sewn' together using Blender or other 3D stitching app.

@sconklin
Copy link
Collaborator Author

Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):


The are essentially two approaches to free quad meshing:

  • Direct methods generate a quad mesh directly, usually by some advancing front method. The Paving paper is a standard reference.
  • Indirect methods generate some intermediate decomposition of the domain (e.g. triangles) and then produce an all-quad mesh through recombination and/or further decomposition. Q-Morph is an example.

@sconklin
Copy link
Collaborator Author

Original comment by Susan Spencer (Bitbucket: suzynumena, GitHub: Unknown):


GSOC description:
Knowledge Prerequisite: Qt, C++, mercurial.
Skill level: high.
Mentor: Roman Telezhynskyi
For purposes of cloth simulation each pattern layout should be exported to 3D Wavefront .obj file in form of a mesh grid. There are two kinds of meshes that use for this purpose: triangulated and quadrangled meshes. Density inside the pieces is important - more triangles/quadrangles = more folds/flexibility. Less = lower polygons, more stiffness.
Example of mesh grid:
mesh_grid.jpg

For simulation of fabric the triangulated mesh style is best:
triangulated_mesh.jpg

After the simulation has happened and the pieces have been joined, draped, creased etc. convert to quad mesh.
This becomes very important to have, this lowers the polygons and also allows for a modeller to add embelishments that the pattern cad program cannot make - it allows zippers, buttons, eyelets, stiching to be added easier with "displacement modifiers", it allows portions to be selected by human eye easier, it allows for boolean/ uv transformations (converting the bottom mesh to follow the path of the top mesh once "formed")
quadrangled_mesh.jpg

In library VObj we begin implementation triangulated mesh, but our realization has disadvantages:

  • Only use edge points of each workpiece.
  • Don't create points inside of shape.
  • Wrong using triangulation Delaunay make in some cases wrong triangles.

Expected results:
In static library make export pattern layout in 3D Wavefront .obj file in form of quadrangle-based mesh and (or) triangulated mesh grid. Matching vertices along seamlines, no seam allowances.

@sconklin
Copy link
Collaborator Author

Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):


Yes, all that need for creation 3D pattern.

@sconklin
Copy link
Collaborator Author

Original comment by Susan Spencer (Bitbucket: susanlspencer, GitHub: Unknown):


So passmarks should be moved up to v.0.4.0?

@sconklin
Copy link
Collaborator Author

Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):


Update for issue description.

For creation 3D patterns better create new export format. This format should include informations about workpieces, passmarks, measurements, data about size and height and so on. Main idea is left for Valentina care about all calculations and export data (workpiece points coordinates, passmark coordinates) to this new format. Which language use XML or JSON still need discuss.

@sconklin
Copy link
Collaborator Author

Original comment by Roman Telezhynskyi (Bitbucket: dismine, GitHub: dismine):


Blender developers are considering importing the native valentina pattern file *.val and generating the triangular mesh as a Blender plugin.

Wow, but val format too unstable and complicate. Don't think it is good idea. But if only we have library for our format. See issue #126.

@sconklin
Copy link
Collaborator Author

Original comment by Susan Spencer (Bitbucket: susanlspencer, GitHub: Unknown):


Per online discussions, the preferred format is triangulated mesh.
Blender developers are considering importing the native valentina pattern file *.val and generating the triangular mesh as a Blender plugin.

@slspencer slspencer changed the title New export: 3D Patterns Feature: 3D Patterns Jan 16, 2023
@slspencer slspencer changed the title Feature: 3D Patterns NEW TOOLS: Export 3D Pattern mesh Feb 12, 2023
@slspencer slspencer changed the title NEW TOOLS: Export 3D Pattern mesh EXPORTS: Export 3D Pattern mesh Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants