Click or drag to resize
AB4D logo

ModelIteratorIterateGeometryModel3DObjects(IListVisual3D, Transform3D, ModelIteratorGeometryModel3DIteratorDelegate, PredicateVisual3D, PredicateModel3D) Method

IterateGeometryModel3DObjects calls the callback delegate for each GeometryModel3D inside visuals and its children.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static void IterateGeometryModel3DObjects(
	IList<Visual3D> visuals,
	Transform3D parentTransform3D,
	ModelIteratorGeometryModel3DIteratorDelegate callback,
	Predicate<Visual3D> visual3DFilter = null,
	Predicate<Model3D> model3Dfilter = null
)

Parameters

visuals  IListVisual3D
IList of Visual3D objects
parentTransform3D  Transform3D
start transform
callback  ModelIteratorGeometryModel3DIteratorDelegate
callback delegate that is called for each GeometryModel3D
visual3DFilter  PredicateVisual3D  (Optional)
optional filter that can filter for which Visual3D objects the callback delegate is called.
model3Dfilter  PredicateModel3D  (Optional)
optional filter that can filter for which Model3D objects the callback delegate is called. It can be used to exclude the whole Model3DGroups.
See Also