Commit Graph

477 Commits

Author SHA1 Message Date
ganovelli 75a7b0a846 [Polygon modification]
Added components to the face to handle generic polygons.
(compiled with .net and gcc)

This commit includes the following files:
vcg/complex/trimesh/base.h
Added deallocation of polygon data in the destructor

vcg/complex/trimesh/allocate.h
generalization from 3 to VN() vertices

vcg/complex/trimesh/update/topology.h
generalization from 3 to VN() vertices

vcg/complex/trimesh/update/flags.h
generalization from 3 to VN() vertices

vcg/simplex/face/pos.h
generalization from 3 to VN() vertices

vcg/simplex/faceplus/base.h
Added the method VN() to query the number of vertices
of the polygon (deafult 3) and methods Prev and Next

vcg/simplex/faceplus/component.h
added Alloc and Dealloc calls along the hierarchies
2008-10-08 10:19:07 +00:00
ganovelli 0455dda283 corrected include path 2008-10-08 09:54:24 +00:00
ganovelli 23f7fc2bc3 added component for the spherical harmonics (by Daniele Bernabei) 2008-10-08 09:47:26 +00:00
ganovelli 0d4b3fbed0 [Polygon modification]
Added components to the face to handle generic polygons.
(compiled with .net and gcc)

This commit includes the following files:
vcg/complex/trimesh/base.h
Added deallocation of polygon data in the destructor

vcg/complex/trimesh/allocate.h
generalization from 3 to VN() vertices

vcg/complex/trimesh/update/topology.h
generalization from 3 to VN() vertices

vcg/complex/trimesh/update/flags.h
generalization from 3 to VN() vertices

vcg/simplex/face/pos.h
generalization from 3 to VN() vertices

vcg/simplex/faceplus/base.h
Added the method VN() to query the number of vertices
of the polygon (deafult 3) and methods Prev and Next

vcg/simplex/faceplus/component.h
added Alloc and Dealloc calls along the hierarchies
2008-10-08 09:10:53 +00:00
ganovelli e16d065e93 [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:41:58 +00:00
ganovelli e652cc5a38 [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 (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:42:55 +00:00
ganovelli de35204e95 [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 (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:42:16 +00:00
ganovelli ea7b394eb3 [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 (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:41:41 +00:00
ganovelli 811b263e33 [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 (4 letters namespaces):
order 0 (vertex)      :vert 
order 1 (edge)        :edge 
order 2 (triangle)    :triangle
order 3 (tetrahedron) :tetrahedron
2008-09-30 10:40:42 +00:00
ganovelli cdb021e821 added typenames to compile with gcc 2008-09-30 10:38:58 +00:00
ganovelli 5d1bd20c33 added warning for deprecation of this way to define the simplex 2008-09-30 10:38:04 +00:00
ganovelli 7021c9af38 added warning for deprecation 2008-09-30 10:35:44 +00:00
ganovelli 4697eb936f typenames and definition added to compile with gcc. THe aprt of type querying temporarily commented out (to fix) 2008-09-30 10:34:27 +00:00
ganovelli 4fc9dd2639 added edgeSimp definition 2008-09-30 09:47:25 +00:00
ganovelli b5bca977a7 added pragma message to deprecate this way to define the simplex 2008-09-28 14:30:09 +00:00
ganovelli 68d900ec7e changes to compile previous commit with gcc 2008-09-24 09:15:38 +00:00
ganovelli a952bb1801 DistanceFunctor templated on the type of the query
Added PointNormalDistanceFunctor
2008-09-24 08:42:17 +00:00
ganovelli f6da3d936d DistanceFunctor templated on the type of the query 2008-09-24 08:41:04 +00:00
Paolo Cignoni e7c9656219 Corrected the ImportLocal function for most of the optional classess. Previous version did not check for the availability of the optional component before trying to import it. 2008-08-28 07:19:04 +00:00
Paolo Cignoni 559161beda Changed the name of the pointer to edge Ep into the more standard VEp (like vertex plus and the other vertex to simplex adjacencies VFp and VTp) 2008-08-20 20:34:01 +00:00
Paolo Cignoni 5843045302 Added missing VEAdj (adjacency vertex-edge used in EdgeMesh) 2008-08-17 20:29:23 +00:00
ganovelli 96e89673ec corrected bug in ImportLocal of N() 2008-08-07 16:16:06 +00:00
ganovelli b284013486 replaced "=" with Import(..) in ImportLocal of P().
Note: this means that ImportLocal converts the type of vertex position.
2008-08-07 16:14:45 +00:00
ganovelli 523634a27b added const C(), corrected bug in ImportLocal of WT 2008-08-07 16:11:59 +00:00
ganovelli e17c0de7e8 made the function Name of Color and Quality a public member 2008-08-04 10:47:53 +00:00
Paolo Cignoni 1407af2537 removed harmless warnings 2008-07-09 10:31:55 +00:00
Paolo Cignoni d83de7eef4 Small modifications to compile with gcc >4.3 (thanks to Carlo Casta!) 2008-07-05 23:35:06 +00:00
Paolo Cignoni 445cf3bec0 removed harmless warnings 2008-06-30 15:00:47 +00:00
Paolo Cignoni d3debc41e4 Changed the SetFF IsFF, ClearFF flag functions to the new names SetF IsF, ClearF 2008-06-30 09:58:43 +00:00
Paolo Cignoni 0c68c95685 added function IsF()/SetF()/ClearF() to check if a given side of the face is a feature/internal edge; are used by some importer to mark internal edges of polygonal faces that have been triangulated 2008-06-26 08:36:28 +00:00
ganovelli 1c8f9ed436 corrected: DumET DumFt and DumTT to DumClass (see derivation_chain.h) 2008-06-23 17:10:48 +00:00
ganovelli 20610a1915 corrected: DumET DumFt and DumTT to DumClass (see derivation_chain.h) 2008-06-23 17:06:28 +00:00
ganovelli 22aa059de2 factorized, see vcg/container/derivation_chain.h 2008-06-23 14:27:44 +00:00
ganovelli d35e8ba0c4 factorized, see vcg/container/derivation_chain.h 2008-06-23 14:25:39 +00:00
ganovelli c7f76ab84b factorized, see vcg/container/derivation_chain.h 2008-06-23 14:22:32 +00:00
Paolo Cignoni 3779f19eee Corrected nasty bug in the newest version of the point-face distance, now the two versions are quite coherent 2008-06-13 06:03:27 +00:00
Paolo Cignoni 7f4d6cbd76 Added a version of the point-face distance function that does NOT require the precomputed edgeplane additional data. 2008-06-04 13:27:10 +00:00
Paolo Cignoni 89bdafdf8c Other improvements in the ImportLocal. Bug removed (ocf data was imported even if the component was not enabled) 2008-05-28 07:25:20 +00:00
Paolo Cignoni 6bb1ea8fcc Small syntax error in the various ImportLocal 2008-05-27 16:32:58 +00:00
Paolo Cignoni 19c4510a33 Corrected bug in the management of ocf curvature components 2008-05-26 09:52:38 +00:00
Paolo Cignoni 36361be798 Big change. removed nexte.
Now the function is NextFE.
added find border function
2008-04-11 10:13:01 +00:00
Paolo Cignoni 0caa683764 better comments, renamed I() -> E()
removed wrong coherent function
2008-04-11 10:11:32 +00:00
Paolo Cignoni de92614c18 FaceType::VerteType --> FaceType::VertexType 2008-04-06 08:55:16 +00:00
Paolo Cignoni 46096f6b64 Cleaned up names, now Kg() gives back Gaussian Curvature (k1*k2), while Kh() gives back Mean Curvature 1/2(k1+k2) 2008-04-04 10:26:12 +00:00
Paolo Cignoni 89a4321cdf added optional mark and cleaned up some nasty type bugs. 2008-04-03 23:15:40 +00:00
Paolo Cignoni 242e5ab82a compacted two pair of empty components to shorten derivation chains 2008-04-03 23:12:28 +00:00
Paolo Cignoni 0a367b89ba Increased the derivation chain lenght. God save the compiler patience! 2008-04-03 23:02:17 +00:00
Paolo Cignoni f9538e9f56 added missing include 2008-03-18 14:29:01 +00:00
ganovelli bd36c63923 added curvature and curvatruredir (compiled .net 2005 and gcc) 2008-03-17 11:39:15 +00:00
Paolo Cignoni 3d4222b231 Completed the garbage collecting functions CompactVertexVector and CompactFaceVector. 2008-03-11 09:22:07 +00:00
Paolo Cignoni 97c0bd9ffa Added FFpi methods and better init of texture coords 2008-02-28 15:41:17 +00:00
Paolo Cignoni 28c5847ec9 Other small typos 2008-02-05 20:42:43 +00:00
Paolo Cignoni a0cd1fc321 A small typo (a T:: instead of TT::) 2008-02-05 10:11:34 +00:00
ganovelli 0b53e968b8 typo in EmptyVertexRef corrected 2008-02-05 09:38:18 +00:00
ganovelli a39a42d2ca added ImportLocal which imports all local attributes into vertexplus and faceplus.
A local attribute is everything (N(), C(), Q()....) except pointers to other simplices
(i.e. FFAdj, VFAdj, VertexRef) which are set to NULL.
Added some function for const attributes
2008-02-04 21:26:49 +00:00
Paolo Cignoni 343df1c14c Important Change. Now GetBBox return a null bbox if called on a deleted face (instead of crashing) 2008-02-03 23:49:42 +00:00
Paolo Cignoni 8883301247 added assert when writing on empty data members 2008-01-28 08:42:51 +00:00
ganovelli b13473bdc7 missing const cVF added 2008-01-19 17:49:05 +00:00
Nico Pietroni 491317ecd5 *** empty log message *** 2008-01-07 10:36:00 +00:00
Paolo Cignoni 61f42ea419 added missing include limits 2007-12-11 18:25:31 +00:00
Paolo Cignoni 7d6a210e75 Added the CompactVertexVector garbage collecting function. 2007-12-11 11:36:03 +00:00
ganovelli 5c97fd3dc3 added missing include to color4 2007-11-20 09:43:53 +00:00
Paolo Cignoni a45b2e8fa0 Added I() access function for the z member to the pos 2007-10-17 19:46:50 +00:00
Nico Pietroni 00f3907e1b *** empty log message *** 2007-10-11 08:39:05 +00:00
Massimiliano Corsini 1e6b800880 remove signed/unsigned warning 2007-10-09 12:04:06 +00:00
Paolo Cignoni dcd031a38d added some using keywords and templates 2007-07-16 10:00:14 +00:00
Paolo Cignoni 6f6da43f69 Minor changes in VT Adjacency component. 2007-06-07 10:22:42 +00:00
Paolo Cignoni d26833fac1 Deleted redundant EdgePlane attribute: it is already defined in component_rt 2007-06-06 15:30:00 +00:00
Paolo Cignoni d399094a16 Add vertex-tetrahedron adjacency component VTAdj. 2007-06-04 15:40:22 +00:00
Paolo Cignoni 2c49236f37 Minor changes in includes. 2007-06-04 14:04:21 +00:00
Paolo Cignoni f354a9f445 Small gcc compiling issues 2007-05-31 09:39:56 +00:00
Paolo Cignoni 38bb37185a removed useless typename 2007-05-29 14:00:26 +00:00
Paolo Cignoni 1a3ea71ef5 Added Set method which takes a face pointer and a vertex pointer. 2007-05-28 14:09:41 +00:00
Paolo Cignoni 9b7d4fc359 Initial commit 2007-05-16 15:13:54 +00:00
Paolo Cignoni 1f231b5a3f Added std:: prefix to swap call 2007-05-16 15:12:40 +00:00
Paolo Cignoni d207af03d2 Replaced ambigous StarSize method with NumberOfIncidentVertices and NumberOfIncidentFaces 2007-05-16 15:11:32 +00:00
ganovelli 1f61ffc1ca added 2007-05-09 10:31:53 +00:00
ganovelli c2e2b2cd0a changes to comply "plus" types 2007-05-04 16:44:06 +00:00
ganovelli a40dad5c08 standardized to component style 2007-05-04 16:16:40 +00:00
ganovelli 0b39edf945 added include to texcoor2 2007-05-04 16:16:04 +00:00
Paolo Cignoni cde27e321a Corrected V() operator. It was plainly wrong. Luckly enough it was not very used 2007-04-20 12:40:31 +00:00
Paolo Cignoni 5ae948ea38 Added Visited flags 2007-03-27 09:22:11 +00:00
mtarini 84946de883 Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. 2007-03-12 15:42:11 +00:00
mtarini 22fd220c6f Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD. 2007-03-12 15:37:19 +00:00
Paolo Cignoni 4e3c3c110e Added constructor to the VFadj component to comply to the allocator needs 2007-02-27 09:32:00 +00:00
Paolo Cignoni b7ab2cfe56 VTb moved to VTp 2007-02-26 14:21:44 +00:00
ganovelli 01a81c63de added QualityType to comply vertexplus type 2007-02-20 14:08:34 +00:00
ganovelli 142880a279 added QualityType to comply faceplus type 2007-02-20 14:07:53 +00:00
Paolo Cignoni a2127ce062 Corrected small syntax errors detected by gcc 2007-02-18 07:41:32 +00:00
ganovelli ffbd7ea55f added Name(std:vector<std::string>& n) that fills n with the names of the attribute of the face type 2007-02-12 19:01:23 +00:00
ganovelli bf964ff70c added Name(std:vector<std::string>& n) that fills n with the names of the attribute of the vertex type 2007-02-12 19:00:56 +00:00
Nico Pietroni 25b916162d corrected wrong initial define
from:

#ifndef __VCGLIB_VERTEX__VN__TYPE
#define __VCGLIB_VERTEX__VN__TYPE

to:

#ifndef __VCGLIB_VERTEX__VNVT__TYPE
#define __VCGLIB_VERTEX__VNVT__TYPE
2007-01-25 01:08:09 +00:00
Paolo Cignoni 0ba87a93f0 commented UberP access method (syntax errors) 2007-01-18 01:29:48 +00:00
Paolo Cignoni bcc7bb0c83 Added #ifdefs to guarantee that ComputeNormal would be defined only once 2007-01-13 00:25:36 +00:00
Paolo Cignoni 5c63b84bf8 Added include assert.h 2007-01-11 10:37:08 +00:00
Paolo Cignoni 7f78cbb1d5 Added intialization of vertexRef to 0. 2007-01-11 10:22:39 +00:00
Paolo Cignoni d72aabbe64 Rewrote the template of ComputeNormal functions to a more readable form. 2007-01-11 10:13:11 +00:00
Paolo Cignoni 07fb3ae2df Added access functions F() 2007-01-02 10:06:53 +00:00
Paolo Cignoni b226ba87ba Corrected wrong assert in V(i) access function 2006-12-29 13:13:00 +00:00
mtarini 8b66ea4b94 newline at endoffile 2006-12-14 13:38:10 +00:00