Commit Graph

333 Commits

Author SHA1 Message Date
Paolo Cignoni d155a34740 Cleaned up the example of the mesh slicing. Now the sample take a mesh, split it along a random plane and saves two meshes, one with the filled triangulated slice and one with the two pieces of the mesh moved apart to reveal the cut. 2011-10-24 12:19:05 +00:00
Paolo Cignoni 6bd8470965 Small harmless changes. Mostly cleaning up. 2011-10-24 11:23:49 +00:00
Paolo Cignoni 98cc5ee028 Added minimal example of disk parametrization. 2011-10-18 00:02:12 +00:00
Paolo Cignoni ed9e9df701 updated to the recent changes (no more edge meshes and changes in the optimiz framework) 2011-10-16 22:14:33 +00:00
Paolo Cignoni 2fe129645b Rolled back 2011-10-05 15:04:40 +00:00
Paolo Cignoni ee5473c279 cleaned up a bit the quad simplifier 2011-05-19 13:51:41 +00:00
Paolo Cignoni 8d77ac39e3 updated the slicing/capping/edgemesh sample 2011-05-11 10:07:27 +00:00
Paolo Cignoni 6b7e9fb37d Added sample on edge mesh (intersection of a mesh with a plane 2011-05-11 06:06:50 +00:00
ganovelli d967184dee Basic app with AntTweakBar and freeglut.
Added. Still to fix pro file to use freeglut and AntTweakBar
2011-04-06 15:10:44 +00:00
ganovelli 5909925947 Ongoing Rearrangement of filepath
replaced the path to comply the filepaths modification.
The replacements are as follows:

/complex/trimesh/base.h --> /complex/complex.h
/complex/trimesh/allocate.h --> /complex/allocate.h
/complex/trimesh/append.h --> /complex/append.h
/complex/trimesh/ --> /complex/algorithms/
/complex/local_optimization/ ---> /complex/algorithms/local_optimization/
/complex/local_optimization.h ---> /complex/algorithms/local_optimization.h
/complex/intersection.h ---> /complex/algorithms/intersection.h
/complex/boundary.h ---> /complex/algorithms/boundary.h
2011-04-01 17:07:57 +00:00
ganovelli d52126591c minor corrections for recompiling all the samples and removal of some warnings:
removed deprecated LIBPATH
2011-03-31 15:47:27 +00:00
Paolo Cignoni cc5645ca46 Added removals of degenerate configurations 2011-02-04 17:12:20 +00:00
Paolo Cignoni 764b2779cb Added quad simplification sample 2011-01-31 17:05:24 +00:00
ganovelli 732a1437bc added 2010-11-06 16:09:32 +00:00
Paolo Cignoni 1b8ae49999 Moved old SDL stuff out of the sample folder into the more junky test folder 2010-10-15 08:43:41 +00:00
Paolo Cignoni ee675f4f01 start to cleaning up the sample folder 2010-10-15 08:42:22 +00:00
Paolo Cignoni fc27271fc9 added edge class as required by the new declaration style 2010-09-02 21:42:07 +00:00
Paolo Cignoni 6b28cb9501 changed to the new mesh clipping framework 2010-07-05 10:27:38 +00:00
Paolo Cignoni 5e3b15b690 added missing include 2010-07-05 10:15:59 +00:00
Paolo Cignoni 572170bfdd minimal formatting changes 2010-07-05 10:15:30 +00:00
Paolo Cignoni b10bfc04e2 Better comment and printing 2010-05-04 15:17:52 +00:00
Paolo Cignoni ee38039e83 Add simple example that compute Shape Diameter Function using ray tracing and exploiting VCG library indexing structure 2010-05-04 08:17:13 +00:00
Paolo Cignoni 7e2e81bdc9 cleaned up to new interfaces 2010-04-30 09:56:37 +00:00
ganovelli 38dcf9bc00 updated to changes in clean.h 2010-04-30 09:42:52 +00:00
mtarini fc29465c4a Cleaned + added one-quad-per-edge schema to it. 2010-04-29 15:08:18 +00:00
Paolo Cignoni d8cfbc5e51 Modified mark/unmark of mesh elements to the new static function style 2010-04-28 07:50:30 +00:00
Paolo Cignoni 493553c5f1 cleaned up and added all the refinement strategies including catmull clark (that now crash...) 2010-04-27 14:59:12 +00:00
ganovelli 6aa09931c4 updated to comply with:
[introduction of half edges as alternative representation]

No modification should be necessary for the existing code.

most relevant changes:

creation of folder:
vcg/connectors  
vcg/connectors/hedge.h
vcg/connectors/hedge_component.h

addition to the container of half edges to the trimesh:
HEdgeContainer hedge; // container
int hn;               // number of half edges

addition of 
vcg/trimesh/update/halfedge_indexed.h
which contains:
- the functions to compute the half edge representation from the indexed  and vivecersa
- the functions to add or remove an half edge
2010-03-25 16:47:03 +00:00
ganovelli ae83ca17ed [ Changes in definition of TriMesh: PART I ]
Note for the developers: the change to make to existing projects is very little 
but strictly necessary to compile. This change IS NOT backward compliant.


==== OLD ==== way to define a TriMesh:

// forward declarations
class MyVertex;
class MyEdge;
class MyFace;

class MyVertex: public VertexSimp2 < MyVertex, MyEdge, MyFace, vertex::Coord3f,...other components>{};
class MyFace: public FaceSimp2 < MyVertex, MyEdge, MyFace, face::VertexRef,...other components>{};
class MyMesh: public TriMesh<vector<MyVertex>,vector<MyFace> >{};


==== NEW ==== way to define a TriMesh:
// forward declarations
class MyVertex;
class MyEdge;
class MyFace;

// declaration of which types is used as VertexType, which type is used as FaceType and so on...
class MyUsedTypes: public vcg::UsedType < vcg::Use<MyVertex>::AsVertexType,
                                          vcg::Use<MyFace>::AsFaceType>{};

class MyVertex: public Vertex < MyUsedTypes, vertex::Coord3f,...other components>{};
class MyFace: public Face < MyUsedTypes, face::VertexRef,...other components>{};
class MyMesh: public TriMesh<vector<MyVertex>,vector<MyFace> >{};

                                 
===== classes introduced          
[vcg::UsedType] : it is a class containing all the types that must be passed to the definition of Vertex, Face, Edge... This
class replaces the list of typenames to pass as first templates and the need to specify the maximal simplicial. So 

<MyVertex, MyEdge, MyFace  becomes <MyUsedTypes<

and 

VertexSimp2 becomes Vertex

[vcg::Use] : an auxiliary class to give a simple way to specify the role of a type

Note 2: the order of templates parameters to vcg::UsedTypes is unimportant, e.g:

class MyUsedTypes: public vcg::UsedType <vcg::Use<MyVertex>::AsVertexType,
                                         vcg::Use<MyEdge>::AsEdgeType,
                                         vcg::Use<MyFace>::AsFaceType>{};

is the same as:
class MyUsedTypes: public vcg::UsedType <vcg::Use<MyFace>::AsFaceType,
                                         vcg::Use<MyEdge>::AsEdgeType,
                                         vcg::Use<MyVertex>::AsVertexType>{};

Note 3: you only need to specify the type  you use. If you do not have edges you do not need 
to include vcg::Use<MyEdge>::AsEdgeType in the template list of UsedTypes.
==== the Part II will be a tiny change to the class TriMesh it self.
2010-03-15 10:44:40 +00:00
ganovelli cdfed059d3 [ Changes in definition of TriMesh: PART I ]
Note for the developers: the change to make to existing projects is very little 
but strictly necessary to compile. This change IS NOT backward compliant.


==== OLD ==== way to define a TriMesh:

// forward declarations
class MyVertex;
class MyEdge;
class MyFace;

class MyVertex: public VertexSimp2 < MyVertex, MyEdge, MyFace, vertex::Coord3f,...other components>{};
class MyFace: public FaceSimp2 < MyVertex, MyEdge, MyFace, face::VertexRef,...other components>{};
class MyMesh: public TriMesh<vector<MyVertex>,vector<MyFace> >{};


==== NEW ==== way to define a TriMesh:
// forward declarations
class MyVertex;
class MyEdge;
class MyFace;

// declaration of which types is used as VertexType, which type is used as FaceType and so on...
class MyUsedTypes: public vcg::UsedType < vcg::Use<MyVertex>::AsVertexType,
                                          vcg::Use<MyFace>::AsFaceType>{};

class MyVertex: public Vertex < MyUsedTypes, vertex::Coord3f,...other components>{};
class MyFace: public Face < MyUsedTypes, face::VertexRef,...other components>{};
class MyMesh: public TriMesh<vector<MyVertex>,vector<MyFace> >{};

                                 
===== classes introduced          
[vcg::UsedType] : it is a class containing all the types that must be passed to the definition of Vertex, Face, Edge... This
class replaces the list of typenames to pass as first templates and the need to specify the maximal simplicial. So 

<MyVertex, MyEdge, MyFace  becomes <MyUsedTypes<

and 

VertexSimp2 becomes Vertex

[vcg::Use] : an auxiliary class to give a simple way to specify the role of a type

Note 2: the order of templates parameters to vcg::UsedTypes is unimportant, e.g:

class MyUsedTypes: public vcg::UsedType <vcg::Use<MyVertex>::AsVertexType,
                                         vcg::Use<MyEdge>::AsEdgeType,
                                         vcg::Use<MyFace>::AsFaceType>{};

is the same as:
class MyUsedTypes: public vcg::UsedType <vcg::Use<MyFace>::AsFaceType,
                                         vcg::Use<MyEdge>::AsEdgeType,
                                         vcg::Use<MyVertex>::AsVertexType>{};

Note 3: you only need to specify the type  you use. If you do not have edges you do not need 
to include vcg::Use<MyEdge>::AsEdgeType in the template list of UsedTypes.
==== the Part II will be a tiny change to the class TriMesh it self.
2010-03-15 10:42:03 +00:00
ganovelli 9768533095 (involuntary commit reverted) 2010-03-12 14:58:02 +00:00
ganovelli 898fedcfdf ongoing 2010-02-14 10:23:28 +00:00
Paolo Cignoni 092211c82c cleaned up a bit 2009-10-27 21:43:01 +00:00
Marco Di Benedetto 58f3af4c82 2009-10-26 12:19:48 +00:00
Marco Di Benedetto d3243585c5 first commit. 2009-10-23 20:26:38 +00:00
Paolo Cignoni 144a816862 added basic filter sample for image module 2009-08-25 16:53:04 +00:00
Paolo Cignoni 143f9461dd moved (and renamed) trivial walker from apps/ to vcg/complex/trimesh/create 2009-05-18 14:19:12 +00:00
Paolo Cignoni 66b962e142 Moved simple_volume into the trivial_walker.h file. 2009-05-18 14:13:46 +00:00
Paolo Cignoni 3447c82e88 Removed a few harmless warnings 2009-03-30 20:58:18 +00:00
ganovelli 7378ad68a3 removed the (useless) template parameter to Per[XXX]DeleteAttribute 2009-03-20 10:24:13 +00:00
ganovelli aee7504a93 added base example using polygon meshes and halfedges 2008-12-19 15:37:32 +00:00
ganovelli 67219758ff added base example using polygon meshes and halfedges 2008-12-19 15:36:54 +00:00
ganovelli 497a3ed01b added base example using polygon meshes and halfedges 2008-12-19 15:36:15 +00:00
ganovelli 35d0e58149 [SIMPLEXplus promotion]
This modification removes the old way to define simplexes (already deprecated and unsupported).
In the following SIMPLEX = [vertex|edge|face|tetrahedron]

All the stuff that was in vcg/simplex/SIMPLEXplus/ has now been promoted to vcg/simplex/

Details:
- the folder vcg/simplex/SIMPLEX/with has been removed
- the file vcg/simplex/SIMPLEX/base.h has been renamed into  vcg/simplex/SIMPLEX/base_old.h 
- the content of vcg/simplex/SIMPLEXplus/ has been moved into vcg/simplex/SIMPLEX/
- the folder vcg/simplex/SIMPLEXplus/ has been removed

Actions the update the  code using vcglib:
replace <vcg/simplex/SIMPLEXplus/*> with  <vcg/simplex/SIMPLEX/*> in every include
for MESHLAB users: already done along with this commit
2008-12-19 10:43:36 +00:00
mtarini 7f113872fb Vert => Vertex 2008-11-18 17:09:26 +00:00
mtarini 6e0559be18 vert=>vertex 2008-11-12 16:50:47 +00:00
mtarini ced06f5601 First version. 2008-11-12 16:42:24 +00:00
ganovelli aecc82a589 added trimesh_attribute 2008-11-12 15:01:08 +00:00
ganovelli 2dc124d060 created. Example of use of user defined attributes 2008-10-28 09:18:52 +00:00
ganovelli 32bb3561ef [Namespaces changes]
vert->vertex


clean up of some namespaces to comply the following naming:

Complexes (3 letters namespaces):
order 0 (point cloud    ) :vrt
order 1 (edge meshes)     :edg
order 2 (triangle meshes) :tri
order 3 (triangle meshes) :tet

Simplexes (extended namespaces):
order 0 (vertex)      :vertex 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle (temporarily it remains "face")
order 3 (tetrahedron) :tetrahedron
2008-09-30 11:37:41 +00:00
ganovelli a73a806d8b chenged the name of the component RT in the vertex definition (it has chenged to edgeplane)
Corrected GetClosest (to compile with gcc)
2008-09-30 10:12:51 +00:00
ganovelli 0468bab362 change from old to plus definition of simplex and
[Namespaces changes]
edge->edg

clean up of some namespaces to comply the following naming:

Complexes (3 letters namespaces):
order 0 (point cloud    ) :vrt
order 1 (edge meshes)     :edg
order 2 (triangle meshes) :tri
order 3 (triangle meshes) :tet

Simplexes (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:10:42 +00:00
ganovelli f5c74b4b54 cheanges to comply the change of class structure in ball_pivoting.h 2008-09-30 10:09:45 +00:00
ganovelli 9deaad827d changed definiiton from old style to plus type and
[Namespaces changes]
edge->edg

clean up of some namespaces to comply the following naming:

Complexes (3 letters namespaces):
order 0 (point cloud    ) :vrt
order 1 (edge meshes)     :edg
order 2 (triangle meshes) :tri
order 3 (triangle meshes) :tet

Simplexes (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:07:34 +00:00
Paolo Cignoni 774ce56dea Solved small compilation issues. 2008-09-29 10:11:21 +00:00
granzuglia ae12059ff8 removed minor bugs 2008-05-06 16:05:20 +00:00
granzuglia affcaabe96 first version 2008-05-06 15:57:17 +00:00
granzuglia 655207e1dd added UpdateFFAdjacency 2008-05-06 15:56:29 +00:00
granzuglia 6f7899846d added JumpingPos sample 2008-05-06 15:38:48 +00:00
granzuglia 647985b802 first version 2008-05-06 15:07:57 +00:00
granzuglia 5f300f1683 first version 2008-05-06 14:41:54 +00:00
granzuglia 4d435998f1 first version 2008-05-06 14:09:50 +00:00
granzuglia a02e2a7310 first version 2008-05-06 13:17:15 +00:00
granzuglia 89d3fe5676 removed default constructors from mesh classes 2008-05-06 13:16:52 +00:00
granzuglia 70bad7207c newest version using plus components 2008-05-06 13:00:25 +00:00
Federico Ponchio 12b6eab241 Updated to QT 4.3 2008-02-24 16:09:42 +00:00
Paolo Cignoni 1736e204dd switched to the plus types 2007-12-13 00:31:04 +00:00
Paolo Cignoni d5cd26dfc3 cleaned and refactored a little 2007-12-13 00:21:55 +00:00
Paolo Cignoni da55f73367 Adapted for wrap/qt/trackball.h 2007-11-01 11:33:06 +00:00
Paolo Cignoni 905795302a Initial release. 2007-10-18 08:52:06 +00:00
Paolo Cignoni 558f9baddc Corrected gcc compiling issues 2007-05-17 09:39:42 +00:00
ganovelli 1f317f011f gestione double click 2007-05-17 09:06:44 +00:00
ganovelli 10384cd0df SDL/SDL.h changed to SDL.h 2007-03-19 17:45:12 +00:00
ganovelli f7a3cb4755 some more comment added 2007-03-17 13:22:55 +00:00
Paolo Cignoni 48049d1e4b Added refinment. 2007-01-31 15:17:36 +00:00
Paolo Cignoni 33d860cbb9 Bug fix 2007-01-31 11:46:12 +00:00
Paolo Cignoni 680279143c *** empty log message *** 2007-01-18 11:18:28 +00:00
Paolo Cignoni 237738785b Changed include order and removed syntax errors 2007-01-18 01:35:31 +00:00
Paolo Cignoni 8b2578e208 removed a wrong template specification for mac gcc compiling 2007-01-18 01:34:07 +00:00
Paolo Cignoni 9e847c9ddd Added a missing include allocate.h 2007-01-18 01:32:11 +00:00
Paolo Cignoni a07b6e638a Added relaxation. 2007-01-15 12:46:25 +00:00
ganovelli b88a447671 added VFIterator (Pos is disabled in this version) 2006-12-10 23:29:57 +00:00
ganovelli cbe27a6f0e cvs problem during frist committ. repeated 2006-12-10 22:17:18 +00:00
ganovelli 812ce8a9b1 first draft. Working but ugly interface. right mouse of the button to place a pos, then prss buttons. 2006-12-10 19:55:09 +00:00
Paolo Cignoni 8e4a9f2011 Added flipping optimization, it compiles but does not work well... 2006-12-06 00:14:33 +00:00
ganovelli c10421aa6b put back Occ-related lines. Types Occ working 2006-12-04 11:10:02 +00:00
Paolo Cignoni 14dc0c2a0f Cleaned up and added option on the size of the holes to be closed 2006-12-01 21:25:23 +00:00
Paolo Cignoni e3e88b010d Added Callback and consistency tests 2006-12-01 08:25:53 +00:00
Paolo Cignoni 5ec748e770 Added trimesh_hole 2006-12-01 08:25:31 +00:00
Paolo Cignoni 7b0c0f6728 Added update normal per vertex. 2006-11-29 15:17:39 +00:00
Paolo Cignoni 2954c88fef Now compiles on gcc under linux. 2006-11-24 10:42:39 +00:00
Paolo Cignoni 2a84b52bc8 Bug-fix 2006-11-22 15:37:50 +00:00
Paolo Cignoni 4ca2f23a10 Clean useless code. 2006-11-22 14:38:16 +00:00
Paolo Cignoni 1baabf65de First working release 2006-11-22 13:42:06 +00:00
Paolo Cignoni 0db8ac28ba Update to the latest version of the trackball 2006-11-21 17:44:06 +00:00
ganovelli 38a8596b2c added vert::bitflags to ocf (needed). commented out the lines about occ which is not currently up to date 2006-10-27 13:59:54 +00:00
Federico Ponchio fe16c59ced Added callback. 2006-10-16 14:28:07 +00:00
Paolo Cignoni f24e4b2da1 correct name in the help line 2006-10-16 08:50:11 +00:00
Federico Ponchio eb691cb768 *** empty log message *** 2006-10-14 16:20:06 +00:00
Federico Ponchio d3aedf18ce *** empty log message *** 2006-10-14 12:04:42 +00:00
Federico Ponchio 729f141ef2 *** empty log message *** 2006-10-13 14:06:58 +00:00
Federico Ponchio 9b09f1a95c *** empty log message *** 2006-10-13 13:35:39 +00:00
Paolo Cignoni 7f3c65238c updated samples to the vertexplus faceplus style 2006-10-13 13:17:23 +00:00
Paolo Cignoni 425a82938f added ball pivoting sample 2006-10-13 13:16:46 +00:00
Paolo Cignoni a5a1088235 Added Edgemesh sample 2006-10-10 09:26:04 +00:00
Paolo Cignoni d59c8cdc49 Added new version of pasodoble smoothing 2006-09-25 09:41:41 +00:00
Massimiliano Corsini 5d7753b3cf *** empty log message *** 2006-08-29 12:58:40 +00:00
Massimiliano Corsini 33bd01e13e First working version 2006-08-29 12:58:31 +00:00
Nico Pietroni d3a98af017 *** empty log message *** 2006-07-26 08:07:31 +00:00
Paolo Cignoni 83a8f5efa3 Added DoubleFace management 2006-05-21 06:40:31 +00:00
Paolo Cignoni 323c43074a *** empty log message *** 2006-05-18 13:58:11 +00:00
Paolo Cignoni 5988632df5 First working version of the Clustering Sample 2006-05-16 21:54:50 +00:00
Massimiliano Corsini dd39e70c72 Adjust SVG export 2006-02-15 15:39:04 +00:00
Massimiliano Corsini 285b33737f remove junk code 2006-02-13 16:31:28 +00:00
Massimiliano Corsini d937398944 First working version 2006-02-13 16:17:06 +00:00
Massimiliano Corsini a148df81a0 First working version 2006-02-13 16:15:03 +00:00
Massimiliano Corsini d024fc40ae Add trimesh_intersection project 2006-02-10 09:41:15 +00:00
Paolo Cignoni f92675c133 Added box clipping and scan options 2006-01-22 17:13:17 +00:00
Paolo Cignoni 4c0b701ea5 *** empty log message *** 2006-01-11 16:11:16 +00:00
Paolo Cignoni ff862b77cd Added print of removed dup vert 2006-01-11 15:43:18 +00:00
Paolo Cignoni efa1e436aa Added trimesh_join sample 2006-01-11 11:13:43 +00:00
Paolo Cignoni 0dcbecda44 removed a couple unnecessary includes 2005-12-06 08:33:37 +00:00
Paolo Cignoni 4ef2e4aeae Reformatted 2005-12-02 00:49:50 +00:00
Paolo Cignoni 688af7646e Ported to the vertexplus style 2005-12-02 00:46:12 +00:00
Paolo Cignoni 4469bebbfe Refactored the sample code.
Shortened a lot and removed all unused unnecessary stuff
2005-11-22 17:50:15 +00:00
Paolo Cignoni 304937ada9 removed unused args name in main to remove warnings 2005-11-14 09:29:32 +00:00
Paolo Cignoni a19a728a9f Added a missing proto for Occ 2005-11-13 07:26:52 +00:00
ganovelli 37e4bcb367 Aggiunta versione Occ, versione compilata solo su microsoft 2005-10-15 16:20:09 +00:00
Paolo Cignoni 0896041baa First working version of optional sample 2005-10-14 17:52:07 +00:00
Paolo Cignoni b9d2016e62 added trimesh optional 2005-10-14 17:50:41 +00:00
Marco Di Benedetto 83eb240e34 Changed ray-triangle functor. 2005-09-29 11:52:22 +00:00
Marco Di Benedetto 21d8967063 First Commit. 2005-09-28 20:14:53 +00:00
Paolo Cignoni ab22877d1d Initial Relase 2005-09-21 10:29:33 +00:00