IsPointInsideSegment

Jan 24 at 10:15 PM
Edited Jan 24 at 10:30 PM
I queried my structure by StructureSet.structure.HasSegment, it shown True. But when I tried to figure out the points located inside the segment, I got nothing. If I did anytthing wrong? Thanks.
VVector testpoint = new VVector();

for (int z = 0; z < StructureSet.Image.ZSize ; z++)
{
    for (int y = 0; y < StructureSet.Image.YSize ; y++)
    {
        for (int x = 0; x < StructureSet.Image.XSize ; x++)
        {
            testpoint.x = x;
            testpoint.y = y;
            testpoint.z = z;
            if (StructureSet.structure.IsPointInsideSegment(testpoint) == true)
            {
                MessageBox.Show("x = " + x + " y = " + y + " z = " +z + "\n\r Got in the segment!");
            }
        }
    }
}                       
Jan 24 at 11:00 PM
It seems wok when
testpoint.x = x * StructureSet.Image.XRes;
testpoint.y = y * StructureSet.Image.YRes;
testpoint.z = z * StructureSet.Image.ZRes;