ChronoEngine_SwAddin.SWTaskpaneHost.PythonTraverseComponent_for_collshapes C# (CSharp) Method

PythonTraverseComponent_for_collshapes() public method

public PythonTraverseComponent_for_collshapes ( Component2 swComp, long nLevel, string &asciitext, int nbody, MathTransform &chbodytransform, bool &found_collisionshapes, Component2 swCompBase ) : void
swComp Component2
nLevel long
asciitext string
nbody int
chbodytransform MathTransform
found_collisionshapes bool
swCompBase Component2
return void
        public void PythonTraverseComponent_for_collshapes(Component2 swComp, long nLevel, ref  string asciitext, int nbody, ref MathTransform chbodytransform, ref bool found_collisionshapes, Component2 swCompBase)
        {
            // Look if component contains collision shapes (customized SW solid bodies):
            PythonTraverseFeatures_for_collshapes(swComp, nLevel, ref asciitext, nbody, ref chbodytransform, ref found_collisionshapes, swCompBase);

            // Recursive scan of subcomponents

            Component2 swChildComp;
            object[] vChildComp = (object[])swComp.GetChildren();

            for (long i = 0; i < vChildComp.Length; i++)
            {
                swChildComp = (Component2)vChildComp[i];

                PythonTraverseComponent_for_collshapes(swChildComp, nLevel + 1, ref asciitext, nbody, ref chbodytransform, ref found_collisionshapes, swCompBase);
            }
        }