Thank you very much Dino. You also showed me that Viewport3D lives
actually in System.Windows.Controls
Best regards,
Walgri
On 8/15/07, Dino Viehland <[EMAIL PROTECTED]> wrote:
> This is hanging due to the way avalon.py works. It's primarily intended for
> working at the in
t = DirectionalLight()
light.Color=Colors.White
light.Direction=Vector3D(-2,-3,-1)
lightmodel.Content = light
v.Children.Add(lightmodel)
#visualizza:
w.Content=v
w.Show()
#
Best regards,
Walgri
___
Users mailing list
Users@lists
### for IronPython 2.0A3:
import clr
clr.AddReferenceByPartialName("PresentationCore")
clr.AddReferenceByPartialName("PresentationFramework")
from System.Windows import *
from System.Windows.Media import *
from System.Windows.Media.Media3D import *
w=Window()
v=Viewport3D()
cam = PerspectiveCamera()
cam.FarPlaneDistance = 100
cam.LookDirection = Vector3D(-11,-10,-9)
cam.UpDirection = Vector3D(0,0,1)
cam.NearPlaneDistance = 1
cam.Position = Point3D(11,10,9)
cam.FieldOfView = 70
v.Camera = cam
triangleMesh = MeshGeometry3D()
point0 = Point3D(0, 0, 0)
point1 = Point3D(5, 0, 0)
point2 = Point3D(0, 0, 5)
triangleMesh.Positions.Add(point0)
triangleMesh.Positions.Add(point1)
triangleMesh.Positions.Add(point2)
triangleMesh.TriangleIndices.Add(0)
triangleMesh.TriangleIndices.Add(2)
triangleMesh.TriangleIndices.Add(1)
normal = Vector3D(0, 1, 0)
triangleMesh.Normals.Add(normal)
triangleMesh.Normals.Add(normal)
triangleMesh.Normals.Add(normal)
material = DiffuseMaterial(SolidColorBrush(Colors.Lime))
triangleModel = GeometryModel3D(triangleMesh, material)
model = ModelVisual3D()
model.Content = triangleModel
v.Children.Add(model)
#let there be light:
lightmodel = ModelVisual3D()
light = DirectionalLight()
light.Color=Colors.White
light.Direction=Vector3D(-2,-3,-1)
lightmodel.Content = light
v.Children.Add(lightmodel)
#show:
w.Content=v
w.Show()
Any help or advice in getting this code running as an application
would be very appreciated.
Best regards,
Walgri
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
On 10/13/06, Sanghyeon Seo <[EMAIL PROTECTED]> wrote:
>
> With the patch, IronPython passes all Unum unit tests.
>
> --
> Seo Sanghyeon
Seo,
thank you so much. I'll try this later.
Best regards,
Walgri
___
users mailing list
, line
213,in replaced
File C:\tempor\IPCE-1.0r2\IPCE-1.0r2\Lib\unum\__init__.py, line 389,in __pow__
ZeroDivisionError: 0.0 cannot be raised to a negative power
>>>
I can investigate further but need some directions.
I understand that this can be a very specific issue, but any help
would