Toon shader question

I’m having a hard time finding any documentation for toon shading. I did fine the toon shader test class… but what I want to know is if it is possible to apply this shader to primitive objects, e.g., a Box?

Something like this doesn’t work:

[java]

Box model = new Box(new Vector3f(0, height, 0), 8, height, 8);

Geometry g = new Geometry(“building”, model);

Material m = new Material(assetManager, “Common/MatDefs/Light/Lighting.j3md”);

g.setMaterial(m);

makeToonish(g);

rootNode.attachChild(g);

[/java]

Probably for boxes it wont work well because boxes have only 8 vertices, they are already flat essentially.