GenerateSimplePrimitives called with nwEVertexProperty value != nwEVertexProperty.eNONE

GenerateSimplePrimitives called with nwEVertexProperty value != nwEVertexProperty.eNONE

alexisDVJML
Collaborator Collaborator
741 Views
2 Replies
Message 1 of 3

GenerateSimplePrimitives called with nwEVertexProperty value != nwEVertexProperty.eNONE

alexisDVJML
Collaborator
Collaborator

InwOaFragment3 define 

void GenerateSimplePrimitives(nwEVertexProperty bits, InwSimplePrimitivesCB cb);

with cb a user callback called for each Triangle, Point, Line and SnapPoint of a geometry.

 

The first parameter, bits, seems to allow to specify which extra properties we want to get:

public enum nwEVertexProperty
{
	eNONE = 0,
	eNORMAL = 1,
	eCOLOR = 2,
	eTEX_COORD = 4
}

However, I can't find how to actually get these since there is no method for these in InwSimplePrimitivesCB

public interface InwSimplePrimitivesCB
{
	void Triangle(InwSimpleVertex v1, InwSimpleVertex v2, nwSimpleVertex v3);
	void Line(InwSimpleVertex v1, InwSimpleVertex v2);
	void Point(InwSimpleVertex v1);
	void SnapPoint(InwSimpleVertex v1);
}

 

And I can't find any "subclasses/extensions" of InwSimplePrimitivesCB.

What am I missing?
Or is it just not supported?
Note that no errors/exceptions are reported if calling with bits to include Normal or Color.

 

Main Scientist, Full Stack Developer & When Time Permits Director of IDIGO ► On your marks, Set, Go
0 Likes
742 Views
2 Replies
Replies (2)
Message 2 of 3

ngombault
Enthusiast
Enthusiast

They come out as extra fields on your vertex object (vector) i.e. v1.coord, v1.tex_coord, v1.normal, essentially putting more 'dimensions' on your vertex.

Message 3 of 3

alexisDVJML
Collaborator
Collaborator
Great, time to test, thanks 😉
Main Scientist, Full Stack Developer & When Time Permits Director of IDIGO ► On your marks, Set, Go
0 Likes