Mailing List link on Wiki page

10 views
Skip to first unread message

SoongJr

unread,
Feb 22, 2012, 12:51:24 PM2/22/12
to oo...@googlegroups.com

Hi,

on the Wiki site (http://iearobotics.com/oomlwiki) there is a link to this Google Group. The link is language-specific and so forces the site to appear in spanish :( You should change the link to https://groups.google.com/group/ooml when you have some time at hands ;)

Best wishes,
  Sven

Alberto

unread,
Feb 22, 2012, 3:29:45 PM2/22/12
to oo...@googlegroups.com
Thanks Sven... changed.

I will try to compile tomorrow the OOML in the VS version I have to check if I can reproduce your error with the senoid wave. 

Alberto.

SoongJr

unread,
Feb 23, 2012, 1:21:06 AM2/23/12
to OOML
Nice, thanks :)

On Feb 22, 9:29 pm, Alberto <alberto.valero.go...@gmail.com> wrote:
> Thanks Sven... changed.
>
> I will try to compile tomorrow the OOML in the VS version I have to check
> if I can reproduce your error with the senoid wave.
>
> Alberto.
>
>
>
>
>
>
>
> On Wed, Feb 22, 2012 at 6:51 PM, SoongJr <soon...@googlemail.com> wrote:
>
> > Hi,
>
> > on the Wiki site (http://iearobotics.com/oomlwiki) there is a link to
> > this Google Group. The link is language-specific and so forces the site to
> > appear in spanish :( You should change the link to
> >https://groups.google.com/group/oomlwhen you have some time at hands ;)
>
> > Best wishes,
> >   Sven

SkAsI

unread,
Feb 23, 2012, 3:17:49 AM2/23/12
to OOML
With VS 2005 I'm having no problem on compiling and running. But the
tutorial have a little error. In Windows math.h doesn't define M_PI,
so instead of using math.h you must include <core/Math.h>

I'm sorry not being of more help about your problem.

Regards.
> > >https://groups.google.com/group/oomlwhenyou have some time at hands ;)
>
> > > Best wishes,
> > >   Sven

Alberto

unread,
Feb 23, 2012, 3:34:20 AM2/23/12
to oo...@googlegroups.com
Hello Sven,

I have also just tried with VS2005 and have had no problem. You might try to generate the project using a CMakeLists.txt (http://iearobotics.com/oomlwiki/doku.php?id=tutorials:designcmake) and then generate the VS project with cmake

Rafa, thanks for the tutorial bug, I have changed it.

Alberto.

Alberto

unread,
Feb 23, 2012, 3:40:33 AM2/23/12
to oo...@googlegroups.com
You may want to try out this code:

int main(int argc, char **argv)
{
Component wave = Union::create();
   for (int i=0; i<180; i++){
double ang = i*M_PI/180;
double height = 20*sin(ang);
Component cylinder = Cylinder::create( 0.2 , height );
wave = wave + cylinder.translatedCopy( float(i)/5 , 0 , height/2 );
   }
   IndentWriter writer;
   writer << wave;
   std::cout << writer;
}

It is quite similar, but instead of using the << operator uses the + operator and avoids declaring the Union as a CompositeComponent.

Could you tell us if it works?. It could be changed in the tutorial if it works on "more" compilers. (I find the << more elegant :P)

Alberto.
Reply all
Reply to author
Forward
0 new messages