Antonio Recio <amdx6...@gmail.com> writes:

Hi Antonio,

> My modified version in clojure with errors:*

The errors would be interesting as well.  But I found at least two
obvious glitches.

> (defn main []
>   (let [cone (doto (vtkConeSource.)
>                (.SetHeight 3.0)
>                (.SetRadius 1.0)
>                (.SetResolution 10))
>         coneMapper (doto (vtkPolyDataMapper.)
>                      (.SetInputConnection(.GetOutputPort cone)))
>         coneActor (doto (vtkActor.)
>                     (.SetMapper coneMapper))
>         ren (doto (vtkRenderer.)
>               (.AddActor coneActor)
>               (.SetBackground 0.1 0.2 0.4)
>               (.ResetCamera)
>               (.GetActiveCamera.Azimuth 90))

This has to be: (-> (.GetActiveCamera) (.Azimuth 90))

>         renWin (doto (vtkRenderWindow.)
>                  (.AddRenderer ren)
>                  (.SetSize 300 300))
>         iren (doto (.vtkRenderWindowInteractor.)
>                (.SetRenderWindow renWin)
>                (.SetInteractorStyle vtkInteractorStyleTrackballCamera.)

This has to be:  (.SetInteractorStyle (vtkInteractorStyleTrackballCamera.))

>                (.Initialize)
>                (.Start))
>         ]))

HTH,
Tassilo

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to