Commit Graph

36 Commits

Author SHA1 Message Date
alemuntoni 08487711d6 better copy in simple temporary data 2021-10-20 18:36:34 +02:00
alemuntoni 9dccb764ed remove memcpy on simple_temporary_data.h 2021-10-19 15:46:14 +02:00
alemuntoni da77800d02 remove memset from simple_temporary_data and matrix44, remove old_matrix 2021-10-19 12:45:05 +02:00
nico 4e3f08e134 corrected some simple warning and avoided collapse of edges of triangular faces for polygons 2021-08-31 21:38:59 +10:00
alemuntoni 0b99eaa7b2 first complex.h files made self-sufficient 2021-03-24 14:53:00 +01:00
alemuntoni 3bfe5793f6 SimpleTempData DataBegin and const DataBegin 2021-03-23 13:15:24 +01:00
alemuntoni bf6c48f9be fix VectorNBW bool specialization with const 2021-03-23 12:59:45 +01:00
alemuntoni 0a2ed11ac2 (partial) ply const correctness 2021-03-18 18:21:59 +01:00
T.Alderighi a78a51e650 handling non trivially copyable types in the attribute copy when appending meshes.
https://en.cppreference.com/w/cpp/types/is_trivially_copyable
2020-02-20 20:31:47 +01:00
Luigi Malomo 303c4d14b5 minor changes 2019-11-21 17:08:15 +01:00
Andrea Maggiordomo 011764d5b2 Added delete[] to VectorNBW<bool> destructor 2019-03-25 13:01:44 +01:00
Paolo Cignoni c4d97c2c03 Huge reordering of header file inclusion order 2017-03-14 07:48:48 +01:00
Paolo Cignoni 32333eba24 Huge copyright sanitization of the header files of vcg folder. 2016-06-13 05:29:25 +00:00
giorgiomarcias 24fe5cb6a0 Deallocating a dynamically allocated array of data must be done with delete[] instead of delete 2016-03-23 13:02:35 +00:00
granzuglia b806f2c7d9 simple_temporary_data.h:
- removed Visual Studio warnings
2014-08-09 10:05:20 +00:00
Federico Ponchio 030d966b4a added #include <string.h> for memcpy 2013-12-11 14:20:17 +00:00
Paolo Cignoni f2bbdb787a Include header cleaning and reordering. 2013-11-25 10:31:30 +00:00
Nico Pietroni e3a8a50bc5 added #include <assert.h> 2013-09-21 00:54:53 +00:00
Paolo Cignoni 2fe129645b Rolled back 2011-10-05 15:04:40 +00:00
granzuglia 1318e29cb0 added several missing include file 2011-06-07 14:36:33 +00:00
ganovelli 11adfa2aff Changes for supporting copying of PerVertex,PerEdge and PerFace attributes in the vcg::tri::Append (append.h)
- useless template paramtere in SimpleTempData_Base removed (simple_temporary_data.h)
- Attribute is now derived by SimpleTempData_Base
- SimpleTempData_Base defines a void * At(unsigned int i) function that returns a pointer to the i-th element of the vector withouth knowing the type
- removed the useless member _typeid from the PointerToAttribute. It was used to store the rtti, useless itself.

NOTE: the copy of attributes is done with a memcpy! This means that if you defined a operator = in your attribute this WILL NOT be used in the append.
2011-06-01 13:39:31 +00:00
ganovelli fa287ce0ab added support for dump of attributes (see wrap/io_trimesh/[import | export]_VMI.h ) 2009-07-29 15:45:56 +00:00
Federico Ponchio e888ef1560 removed some useless consts 2009-06-03 12:23:20 +00:00
Paolo Cignoni 928c8dd997 Removed harmless warnings 2008-11-28 14:55:45 +00:00
ganovelli b6f21780dc added workaround for std::vector<bool> bitwise implementation.
The workaround is a rough reimplementation of std::vector. 
If you can, use "char" as temporary data and cast it when you need.
2008-11-12 16:10:04 +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 3af17fab9a added initializer and passed the init value as const reference 2008-07-04 00:31:54 +00:00
ganovelli 006b7df1b8 added type Attribute 2008-06-23 14:19:56 +00:00
ganovelli 42430a1318 added virtual destructor 2008-05-16 10:09:26 +00:00
ganovelli 69a35e8912 Enable() and Disable() removed. The memory is allocated by the contructor 2008-05-16 08:48:49 +00:00
ganovelli bd7f2980c5 Start() Stop() removed. Allocation on creation, disallocaiton on distruction 2008-05-15 16:35:17 +00:00
mtarini 351d7e3e2f overloaded operator "[]" (once more) to make it possible to index the temp. structure with an iterator 2007-02-02 00:01:54 +00:00
Paolo Cignoni 44eb40324f small gcc-related compiling issues (typenames,ending cr, initialization order) 2005-07-11 13:16:34 +00:00
ganovelli f2fde4de52 added one more [], now it is polymorphic, added typenames 2004-12-11 15:37:47 +00:00
ganovelli c3dc8c46e4 First Working Release (with this comment) 2004-03-31 22:36:44 +00:00
ganovelli 48d93d6339 Data structure to handle temporary attributes. First version 2004-03-31 12:40:42 +00:00