Paolo Cignoni
3d150e9aea
changed an assert condition in FlipF that could lead to a failure in the case of quad mesh navigation over polygonal faces.
2013-11-25 10:15:54 +00:00
Paolo Cignoni
a29df708da
Removed warning. Changed a surely verified if condition into an assert.
...
(chosing the min between 3 elems we had a if-else chain where the last if was useless unless you have NAN )
2013-11-25 10:14:27 +00:00
Paolo Cignoni
1c1e3f778a
Include header cleaning and reordering.
2013-11-25 10:12:01 +00:00
Paolo Cignoni
6ec2689383
Corrected weird error in pos assignement operator.
2013-11-11 13:32:33 +00:00
granzuglia
d59e519e8f
- added missing "#include"
2013-10-16 08:36:05 +00:00
Paolo Cignoni
93eb66356b
removed a survived debug printf...
2013-10-09 09:18:56 +00:00
Paolo Cignoni
dc842fd034
Corrected a Bug in the VFOrderedStarFF (it could return twice the same face in when asked on boundary faces)
...
Added FFCollapseEdge
Added managment of faux edges in swapedges
2013-10-09 08:48:10 +00:00
Paolo Cignoni
df97ef0c36
Added zero initialization to quality component. (and corrected a small bug in the ocf quality component)
2013-09-24 13:55:23 +00:00
Paolo Cignoni
344de42c2e
removed the return type from the ++ operator of the vfi iterator
2013-09-10 10:54:40 +00:00
Paolo Cignoni
9ad68bc573
Added DihedralAngleRad that computes the signed dihedral angle between the normals of two adjacent faces
2013-06-24 07:55:54 +00:00
Paolo Cignoni
f3337dcb7c
updated polygon component to the cP/P behavior for access to elements
2013-03-20 08:56:20 +00:00
Paolo Cignoni
4665f36e40
Improved component documentation. Added IsVFInitialized, VFClear function for VF component. Clarified the difference between null and uninitialized for a VF component.
2013-03-13 14:02:03 +00:00
Nico Pietroni
e5ed268b6a
added function cVFi
2013-02-19 13:56:37 +00:00
Nico Pietroni
60bca978f7
added function VVExtendedStarVF
2013-02-19 13:55:15 +00:00
Paolo Cignoni
8111bcda24
Corrected a very nasty bug introduced in Revision 4782 that reorganized ocf face component and added a standard interface for query the availabiilty of data:
...
bool FaceType::IsXXXAvaialble() ,must be defined in the XXX ocf type and not in the info type otherwise it would be defined also for non ocf components.
2013-02-06 11:22:11 +00:00
Paolo Cignoni
b48b0e568c
added initialization of mark component to zero. So all the element it is sure that are unitialized after the first unmarkall.
2012-12-21 15:33:18 +00:00
Paolo Cignoni
5dcf1aec47
forgot a IsCurvatureDirEnabled()
2012-12-17 15:58:16 +00:00
Paolo Cignoni
08aeee8716
Reorganized ocf face component and added a standard interface for query the availabiilty of data:
...
now we have
static bool FaceType::HasXXX() // statically says if a certain type is present
bool FaceType::IsXXXAvaialble() // NON STATIC (always true for non ocf objects)
So now ImportData works for face ocf component.
2012-12-17 15:02:34 +00:00
Nico Pietroni
fb9a9bbac6
added function FFExtendedStarFF
2012-12-12 16:04:26 +00:00
Paolo Cignoni
9a1704379f
Improved documentation to include stars
2012-12-10 12:40:21 +00:00
Paolo Cignoni
3b466514b3
Added Standard exception throwing functions to claim requirements in the mesh algorithmic functions (Te Deum!)
...
for example, now at the beginning of a function requiring FFAdjacency you should just write:
RequireFFAdjacency(mesh);
No more assert please.
2012-12-06 10:34:08 +00:00
ganovelli
755eb7dda7
added HasNormal to EmptyCore
2012-12-03 17:47:15 +00:00
Paolo Cignoni
ab49388781
Added a VFDetach for face.
2012-11-27 14:03:24 +00:00
Paolo Cignoni
8b4d04be7a
Added a bunch of 'c' to component members to clarify constant access
2012-11-15 19:11:28 +00:00
Paolo Cignoni
5c266a7ccb
HEAVY CHANGE:
...
The vertex and face component (natural and optional) have been cleaned and reordered.
Particular care has been devoted to have common behaviour in the import, const access, and so.
If you get compilation errors probably it is due to the fact that if you really need constant access to a member you have to use the "c" prefixed member (e.g. if you access to normal of a constant vertex you should use the cN() member.
2012-11-15 19:04:08 +00:00
Paolo Cignoni
f2be4a4d95
mismatch in the VertexVectorHasVFAdjacency and FaceVectorHasVFAdjacency names
2012-11-14 12:37:18 +00:00
Nico Pietroni
3864a934da
corrected 1 call of VFStarVF
2012-11-12 12:59:50 +00:00
Paolo Cignoni
feb77d945a
Significant changes of interface of VFOrderedStarFF (that substitute two very similar VFOrderedStarFF_VF)
...
Added EFStarFF
2012-11-10 16:53:10 +00:00
Paolo Cignoni
1a8c1dafe2
VFlip() and FFlip are const members but there is no need of returning a pointer to a Const element
2012-11-09 11:11:50 +00:00
Paolo Cignoni
26ee5e5246
const access to flags -> cFlags()
2012-11-07 22:53:41 +00:00
Paolo Cignoni
9f39a0c7cb
added cflags to the emtpycore face component
2012-11-07 15:51:51 +00:00
Paolo Cignoni
1046deb107
Corrected bug recently introduced due to small difference in the signature of the flags functions...
2012-11-07 15:42:14 +00:00
Paolo Cignoni
7bc4277fcd
Cleaned up documentation of components (new doxygroup for them, written something for most of them...).
...
Cleaned Edge components (Added adjacency stuff, implemented the single emptycore)
2012-11-07 01:24:45 +00:00
Paolo Cignoni
578ea5ae6b
Added control in the creation of a pos that you pass a consistent triple
2012-10-26 12:39:58 +00:00
Paolo Cignoni
d784bebe07
Added guards to avoid useless (and sometime dangerous) inclusion of internal file of the vcglib
2012-10-25 21:29:10 +00:00
Paolo Cignoni
cfda5a3eca
Removed all the UberXXX members from the various components. No more needed since many years. Still there just because we are quite lazy...
2012-10-25 13:07:25 +00:00
Paolo Cignoni
b045c9b992
Removed old useless files. Why do we kept them?
2012-10-25 13:01:34 +00:00
Paolo Cignoni
b1a1b36260
Re added the empty component. It can be useful sometimes...
2012-10-19 11:45:51 +00:00
Paolo Cignoni
fb60087ee4
component_ocf are now part of the standard inclusion sequence of complex.h
...
No more need of including them.
It was needed to avoid the issue of wrong inclusion order that could trigger a failure in the partial specialization of the reflection functions that should say if a component is present or not...
2012-10-15 09:17:48 +00:00
Nico Pietroni
8d4bdc467e
added function VFExtendedStarVF
2012-10-14 09:24:49 +00:00
Paolo Cignoni
a7dc9a853e
Better naming for the EdgePlane face component for fast closest query
2012-10-04 16:17:31 +00:00
Paolo Cignoni
d97f08e23e
Better naming for the EdgePlane face component for fast closest query
2012-10-04 16:15:24 +00:00
Paolo Cignoni
2577210a54
**** SIGNIFICANT CHANGES *****
...
- Cleaned up include order: Now you only need to include <vcg/complex/complex.h> (no more vertex/base.h etc)
- Added official VN() EN() FN() const members for knowing number of vertexes etc...
- Added exceptions (at last!)
Now instead of:
assert(HasPerVertexNormal(m))
you should write:
if(!HasPerFaceNormal(m)) throw vcg::MissingComponentException();
2012-10-04 11:10:25 +00:00
Nico Pietroni
dcb0d036ff
added FindSharedFaces and VFOrderedStarVF functions
2012-09-22 12:54:30 +00:00
Nico Pietroni
be2d3613b9
added one more call of VFStarVF that returns also the indexes of vertices as seen from the faces
2012-09-03 15:57:52 +00:00
Paolo Cignoni
2aa57698ad
better uniform naming for detach attach functions (now there is FFAttach, FFAttachManifold, FFDetach, etc)
...
changed SharedVertex into FindSharedVertex
added FindSharedEdge
2012-07-27 12:59:27 +00:00
Paolo Cignoni
45b0deb7eb
Important Change: ** LastBitFlag ** now is named ** FirstUnusedBitFlag **
...
Corrected the name of the function allocating a user bit among the flags of the simplexes.
Changed in ALL the simplexes (vertex, edge, face, etc) and updating functions.
Note that the LastBitFlag should never be used by common users...
2012-07-18 09:37:32 +00:00
Paolo Cignoni
7ffb878913
SIGNIFICANT CHANGE
...
About the point to mesh distance functionalities
Now the two different 'path' for this distance computation (with or without the precomputation of planes and edges for triangular faces) are well distinct and with different names:
PointDistanceEP and PointDistanceBase
See the sample/trimesh_closest sample for more details
2012-07-06 15:24:04 +00:00
Paolo Cignoni
24110c34b2
added an Empty Component for the edgePlane component.
2012-07-06 05:07:25 +00:00
Paolo Cignoni
ea701b39b3
Restructured Face component in order to follow the unique emptycore approach that avoid an endless derivation chain in the type definition
2012-04-04 10:04:46 +00:00