maps maps maps????Argh!!!! What happened to transparency maps, reflection maps blah blah
blah????? (I'm talking about viz renderer / autocad2004 adt).
If you can't use transparency maps, then HTF do you create mesh objects
(like a grill, railing, mesh with holes)? or even trees? Or 2D people?
Billboard and stuff like that?
Use the Cutout map under Special Effects.
--- stefkeB ---
"Henry" <abshhkc@bath.ac.uk> wrote in message
news:Xns942BB07D85A90abshhkcbathacuk@138.38.32.81...
> Argh!!!! What happened to transparency maps, reflection maps blah blah
> blah????...
map that maps to iterators in the same map ?Hi,
I wonder if it's possible to implement something like
typedef map<string, T::iterator> T;
i.e. to have a map that will resolve keys to iterators in the map of the
same type.
In my situation, I'll have only one such map and can guarantee that all
iterators will remain valid (I'll only add stuff).
Do such recursive constructions known to cause problems? I can use
pointers instead of iterators, but it will be much uglier.
Thanks,
Vladimir
...
map of map.Hi All,
I want to create a map of key and another map object (it is another
map of key value pairs). I have declared it as
map<int, map<short, short>> mpObj; it gives me an error that, "error:
ISO C++ forbids declaration of =91map=92 with no type". Does this mean I
can not create a map of a map the object? Have I done something wrong?
Any pointers to any tutorial?
Atul.
aTuL ha scritto:
> I want to create a map of key and another map object (it is another
> map of key value pairs). I have declared it as
> map<int, map<short, short>> mpObj;
You ha...
STL: Map of maps possible, but no multi-map of maps? Workarounds?It's possible to do this:
map<double, map <string, int> > foo;
but not this or any other nested variant using multimap:
multimap<double, map <string, int> > foo;
Any known (or unknown) workarounds?
Thanks
Marcus
Marcus wrote:
> It's possible to do this:
>
> map<double, map <string, int> > foo;
>
> but not this or any other nested variant using multimap:
>
> multimap<double, map <string, int> > foo;
Works with comeau online 4.3.3, also with g++ 3.4.2
hmmm... you're right, i must have a bug somewhere. gl...
Returning map from map of maps without any copyGroup,
I have a class that contains (STL) map of maps. This Class has a getMap
function that return one map out of the map of maps. I need to avoid
copies while extracting the map. There are two approaches
1. I pass a "map" reference in getMap function, the getMap method
extract appropriate map and put it in the passed map reference. It seems
copy will be made while doing
map=Extracted Map; //map is reference parameter in getMap function
2. Second option is to return a reference from the getMap function
(please ignore dangling pointer issue since this class is likely to live
...
std::maps within std::maps -- optimisationHere's a small example which uses std::maps within std::maps. Note the
line flagged // *** copy?
#include <iostream>
#include <map>
#include <string>
struct Tfoo
{
Tfoo():i1_(0),i2_(0){}
Tfoo(int i1, int i2):i1_(i1),i2_(i2){}
int i1_;
int i2_;
};
typedef std::map<std::string, Tfoo> TfooMapInner;
typedef std::map<std::string, TfooMapInner> TfooMapOuter;
int main(int argc, char **argv)
{
TfooMapOuter myFooMapOuter;
{
TfooMapInner myFooMapInner;
myFooMapInner["inner_key_1"] = Tfoo(0,1);
myFooMapInner["inner_key_...
How to render vertex map, normal map and color mapHello everyone!
I'm trying to achieve 3D reconstruction using MS Kinect sensor.
I've already got the Vertex Map, Normal Map and Color Map from raw
depth map and RGB image.
Now I'm wondering how to render these maps(vertex map, normal map and
color map) using opengl.
Looking forward to your help!
Thanks in advance.
On Friday, 11 May 2012 05:20:18 UTC+2, Yuan Gao wrote:
> Hello everyone!
> I'm trying to achieve 3D reconstruction using MS Kinect sensor.
> I've already got the Vertex Map, Normal Map and Color Map from raw
> depth map and RGB image.
> Now I'...
How to implement a map of maps?Hi!
I am trying to implement a map of maps like this:
typedef map<string, map<string, string> > stringMap;
stringMap myMap;
This does not work and I get the following compiler error:
---
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/
bits/stl_pair.h: In constructor `std::pair<_T1, _T2>::pair(const
std::pair<_U1, _U2>&) [with _U1 = char*, _U2 = char*, _T1 = const
std::string, _T2 = std::map<std::string, std::string,
std::less<std::string>, std::allocator<std::pair<const std::string,
std::string> > >]':
src/png.cpp...
Help, Map of mapHello,
I'm italian then sorry for my bad english:
In this source
#include <iostream>
#include <map>
#include <string>
map <string, map <string, int> > PG;
int main() {
PG.insert (map <string, map<string, int> >::value_type ("pippo",
map<string, int>::value_type ("pluto", 6))); // Error
std::cout << PG["pippo"].first << std::endl; // Error
return 0;
}
How can I insert a key and value in a internal map?
How I get the key and value of internal map?
Thanks
"Noixe" <No...
[SOT] Map, map, who's got the right map?This from the "GUI gone weird" department.
http://news.bbc.co.uk/sport2/hi/olympics/7493757.stm
is an interactive BBC map for the olympic venue which will
show up later this or early next month. The behavior upon
grabbing and moving the map with the mouse is particularly
interesting, and not exactly correct.
In Google Maps, the grab function is pretty much as one
might expect; one grabs, moves the mouse cursor, and the
map moves, keeping the point grabbed underneath the cursor,
as far as it can. Very reasonable behavior.
Not so in the above map; I'm not even sure I can
char...
Map C++ feature to CDear friends
Is there a way to embulate C++'s virtual destructors in pure C. IE just
using function pointers.
Many Thanks.
On 06/24/12 08:23 PM, zgene wrote:
> Dear friends
Why is the question completely different form the subject?
> Is there a way to embulate C++'s virtual destructors in pure C. IE just
> using function pointers.
No, because there isn't a way to fully emulate destructors.
--
Ian Collins
On Jun 24, 9:23=A0am, zgene <nos...@nospam.com> wrote:
> Dear friends
>
> Is there a way to embulate C++'s virtual destru...
How to work with PERM/TEMP failures on socket map (or LDAP map or HOST map)Hello,
I have a misunderstanding of the socket map protocol as written in op,
which is the same as stated in this post:
http://groups.google.com/group/comp.mail.sendmail/browse_thread/thread/f91016c9b8d92c61/a392fcbdbf57a50d?hl=en
When a socket map returns PERM or TEMP, the code stuffs the fact into
a stat pointer, the explanatory message is dropped. In the end I have
the following entry in a sendmail -d session:
map_lookup(reroute, key) => NOT FOUND (69)
but the socket map returned
PERM No such map
Funnily I found similiar in the host map, too:
map_lookup(host, myhost) => host_m...
map(x->map(y->map(f,y),x),A);
Is there an easier way to obtain the results of computations like the
following?
>A:={ { [1,2],[3,4] } , { [5,6],[7,8] } }:
> map(x->map(y->map(f,y),x),A);
{ {[f(1), f(2)], [f(3), f(4)]}, {[f(5), f(6)], [f(7), f(8)]} }
--I would appreciate any conceptually simpler ways of doing this. Too
many nested maps makes me dizzy.
--Edwin
Edwin Clark <wclark1@tampabay.rr.com> writes:
> Is there an easier way to obtain the results of computations like the
> following?
>
>
>>A:={ { [1,2],[3,4] } , { [5,6],[7,8] } }:
>> map(x->...