Click or drag to resize
AB4D logo

ModelIteratorIterateGeometryModel3DObjects(Model3D, Transform3D, ModelIteratorGeometryModel3DIteratorDelegate, PredicateModel3D) Method

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

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

Parameters

model3D  Model3D
root Model3D
parentTransform3D  Transform3D
start transform
callback  ModelIteratorGeometryModel3DIteratorDelegate
callback delegate that is called for each GeometryModel3D
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