ganovelli
f223914581
factorized a bit the attribute classes in TriMesh;
...
added to IsValidHandle the check that pointer to data is not null.
Explanation:
a handle may be not valid for two reasons:
1) the attribute has been destroyed with a DeletePer*Attribute
2) the handle has been declared but not initialized.
The change is to cover the case 2)
2009-06-04 16:13:21 +00:00
ganovelli
66ec7652dc
factorized a bit the attribute classes in TriMesh;
...
added to IsValidHandle the check that pointer to data is not null.
Explanation:
a handle may be not valid for two reasons:
1) the attribute has been destroyed with a DeletePer*Attribute
2) the handle has been declared but not initialized.
The change is to cover the case 2)
2009-06-04 16:08:15 +00:00
Paolo Cignoni
69004410e3
Corrected a wrong function to clear border face flag (and added BORDER012 to the enums of the flags)
2009-06-04 08:15:59 +00:00
Federico Ponchio
e888ef1560
removed some useless consts
2009-06-03 12:23:20 +00:00
Marco Di Benedetto
87d8294391
fixed uninitialized variable.
2009-05-29 18:33:19 +00:00
Marco Di Benedetto
a4102993bb
fixed uninitialized variable.
2009-05-29 18:32:35 +00:00
Marco Di Benedetto
8b9f17d14c
removed some warnings and added return statement.
2009-05-29 16:29:14 +00:00
Marco Di Benedetto
875c8e71b7
added QMap header.
2009-05-29 16:28:22 +00:00
Paolo Cignoni
b96d693960
bool ClearAllF() -> void ClearAllF() (no reason it is a bool returning function)
2009-05-26 22:35:57 +00:00
Paolo Cignoni
b3e9a9e105
Changed a few geodesic function from void to bool to return possible failures (like for exmple asking for border distance on a mesh without border)
2009-05-26 22:31:58 +00:00
mtarini
c0b0c7469c
Added diagnostic and measurement methods for bit-polygonal meshes: IsBitQuadOnly, IsBitTriOnly, IsBitPolygonal, IsBitTriQuadOnly, CountBitQuads, CountBitTris, CountBitPolygons, HasConsistentPerFaceFauxFlag...
2009-05-26 18:19:17 +00:00
mtarini
ac017fffb6
added few shortcuts to handle faux flags together: IsAnyF, ClearAllF (and a bit-mask FAUX012).
2009-05-26 17:57:24 +00:00
mtarini
0856e6a2eb
added CosWedge which returns the cos of a wedge
2009-05-26 17:50:18 +00:00
Paolo Cignoni
37057700b2
Changed the brightness and contrast color processing algorithm to match exactly the GIMP algorithm.
2009-05-25 09:02:32 +00:00
Paolo Cignoni
0f4817d486
Correct a bug.
2009-05-23 20:14:53 +00:00
Paolo Cignoni
57a202111c
Added the functor PointNormalDistanceFunctor used in the GetClosestFaceNormal.
2009-05-23 20:12:58 +00:00
Paolo Cignoni
a0a965f17c
Added the method GetClosestFaceNormal, that use the functor PointNormalDistanceFunctor.
2009-05-23 20:10:48 +00:00
granzuglia
cb7b4db79c
added IO_CAMERA in GetExportMaskCapability
2009-05-22 12:43:35 +00:00
Paolo Cignoni
291c2790af
Removed harmless warnings
2009-05-22 07:54:42 +00:00
Paolo Cignoni
e1e58a75cf
added another shape to platonic, a camera.
2009-05-21 23:04:49 +00:00
Paolo Cignoni
b441009e15
added an invalid method that says if a shot is "reasonable" or not. A shot is valid if its Intrinsics are valid.
2009-05-21 23:04:09 +00:00
Paolo Cignoni
c5491807fd
*** SIGNIFICANT CHANGE ***
...
The member 'camera' of the base trimesh class, is no more used since Dec 2006.His initial purpose was keeping intrinsics of the camera, but it is a long time that intrinsics have moved into the Shot class.
The I/O procedure already comply this fact filling only the interal structure.
2009-05-21 23:02:48 +00:00
Paolo Cignoni
2d3d9bd13f
corrected wrong test on the use of faux edges when drawing in wireframe
2009-05-21 22:59:16 +00:00
Paolo Cignoni
f5126d7ffe
renamed a EPSILON variabile to avoid name clash
2009-05-18 15:06:11 +00:00
granzuglia
f3419c58e2
added GPL incipit
2009-05-18 14:21:28 +00:00
granzuglia
70ee5ab8bd
added GPL incipit
2009-05-18 14:20:34 +00:00
granzuglia
9a900a640f
added GPL incipit
2009-05-18 14:19:30 +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
granzuglia
2e06ebc183
added GPL incipit
2009-05-18 14:15:15 +00:00
Paolo Cignoni
66b962e142
Moved simple_volume into the trivial_walker.h file.
2009-05-18 14:13:46 +00:00
granzuglia
f0de54811e
added GPL incipit
2009-05-18 14:12:20 +00:00
granzuglia
5811240f92
added GPL incipit
2009-05-18 14:10:59 +00:00
granzuglia
9ef1804d3a
added GPL incipit
2009-05-18 14:08:04 +00:00
granzuglia
50cb99f3e0
added GPL incipit
2009-05-18 14:05:55 +00:00
granzuglia
066c320644
added GPL incipit
2009-05-18 13:59:31 +00:00
Paolo Cignoni
4a7e777eac
included stdlib.h to fix exit() dependency
2009-05-18 10:04:03 +00:00
granzuglia
f8cb7fc554
final u3d version
2009-05-15 13:47:41 +00:00
granzuglia
39ab4b2540
added support for color per face (WARNING! if both color per face and color per vertex are checked only color per vertex will be saved!)
2009-05-14 09:06:02 +00:00
Paolo Cignoni
fd35606087
added missing include file.
2009-05-14 07:38:50 +00:00
granzuglia
be047e9a82
fixed little bug in color index
2009-05-13 17:08:40 +00:00
granzuglia
2af46da74c
added color per face rather than color per vertex
2009-05-13 16:35:04 +00:00
granzuglia
e19de27332
added color per face rather than color per vertex
2009-05-13 16:34:29 +00:00
granzuglia
d0ec7cad96
removed previous patch
2009-05-12 14:03:48 +00:00
granzuglia
7bfa17ffa6
removed previous patch
2009-05-12 14:03:07 +00:00
granzuglia
3b362fc1e2
added "./" before texture's name for resolve mac's bug
2009-05-12 09:34:21 +00:00
granzuglia
bc210a9db7
patch for mac texture loading
2009-05-11 15:25:06 +00:00
Paolo Cignoni
08ffe4b7a1
re-correct the assert that was causing a failure. The previous commit tho marching cubes.h (done by me!) was rather wrong. Sorry,.
2009-05-08 21:41:37 +00:00
granzuglia
09ef413e51
from ofstream to QFile for a problem with Vista
2009-05-08 09:54:35 +00:00
ganovelli
0524e1ac62
corrected the implementation of IntersectionSegmentPlane (compiled .net only)
2009-04-29 09:37:42 +00:00
mtarini
a7e5e51ddc
added IsPolygonal, which tells you whether the mesh actually represents a polygonal mesh (false if triangle only)
2009-04-27 14:13:28 +00:00