org.jcae.mesh.cad
Interface CADExplorer


public interface CADExplorer

Explores a topological data structure. An explorer is built with the shape to explore, the type of shape to find

Author:
Denis Barbier

Method Summary
 CADShape current()
          Return the current shape in the exploration
 void init(CADShape shape, CADShapeEnum type)
          Initialize this explorer
 boolean more()
          Return true if there are more shapes to explore
 void next()
          Move on to the next shape in the exploration
 

Method Detail

init

void init(CADShape shape,
          CADShapeEnum type)
Initialize this explorer

Parameters:
shape - The shape to explore
type - The type of shape to find: FACE, WIRE, EDGE or VERTEX

more

boolean more()
Return true if there are more shapes to explore

Returns:
true if there are more shapes to explore

next

void next()
Move on to the next shape in the exploration


current

CADShape current()
Return the current shape in the exploration

Returns:
the current shape in the exploration