Graphs issues?

 
 
 
Posted by:jcdeblok
Data created:4 December 2012

What is the best way to get a single polygon into a graph input?

I'm not sure if this is an error or me doing something wrong..

If I setup a new sub graph and create an input called 'poly' I can't seem to cast this to a 'polygon' type via the input's type settings. So I figured I'd leave it unspecified and just connect a wire that hold a single polygon to the graph's input.

This works, inside the graph the input is now a 'Geometry.PolygonMesh+Polygon' type (this is a type I cannot manually pre set it too?).

Inside the graph, when I drag out the input I get a polygon node, which is as expected, but when I delete this node and click on the input I get exceptions poping up (System.NullReferenceException: Object reference not set to an instance of an object.)

If this is an error and you can't repo I send a scene with a step-by-step..

I've been investing this today. While I couldn't reproduce the exception (please do send the steps) I can definitely see the issue of not being able to select a Polygon as input type.

One reason for this is because PolygonMesh.Polygon is not being brought into the system explicitly. To do that you need to modify Ephere.Geometry.maxml and add a line which imports "Ephere.Geometry.PolygonMesh.Polygon" along side all other types. Otherwise the library doesn't record it and it only acts as an 'intermediate' type.

There is, however, a second issue currently with nested types not being detected in .maxml files. I've just fixed that for the next build. While at it I also updated the .maxml file as mentioned in previous paragraph.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Nice, thx!