Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - janineh

Pages: [1]
1
Support / VertexController question
« on: December 27, 2007, 01:12:36 pm »

I've been playing around with the PolygonManager and GenericVertexController to try and determine adjacent polygons in the same plane to a 'selected' polygon.

Looking at the JavaDoc, it seems that the GenericVertexController.getPolygonIDs function should
'Returns the polygon IDs of the polygons that are using the vertex "number".'

However, I don't understand where I would get the 'vertex number' from - just plugging in 0,1,2, random number gets me an array of length 1 with the value of 0 in the array (i.e. a[0]=0).

This doesn't make much sense as my object is a cube, so each polygon vertex should have at least 3 polygons attached to it.

Am I missing something here?

Many thanks,
Janine

2
Support / Select a side?
« on: December 12, 2007, 06:03:27 pm »
Hi,

I'm new to 3D and jPCT, and I hope this isn't a really stupid question.

Is is possible to use the mouse to 'select' a side of an object?

For example, a Primitive box has the texture of one side changed when that side is clicked on.

I can use Interact2D functions to get the PolygonID and use PolygonManager.setPolygonTexture to 'select' the polygon I clicked, but how can I also select the adjoining polygons on the same 'face' of the box?

Many thanks,
Janine


Pages: [1]