21 CoordType = itk.ctype(
"float")
23 if platform.system() ==
"Windows":
24 ElementIdentifierType = itk.ctype(
"unsigned long long")
26 ElementIdentifierType = itk.ctype(
"unsigned long")
31 pointSet = PointSetType.New()
32 points = pointSet.GetPoints()
49 points.InsertElement(0, p0)
50 points.InsertElement(1, p1)
51 points.InsertElement(2, p2)
54 ElementIdentifierType,
itk.Point[CoordType, Dimension]
57 ElementIdentifierType, Dimension, CoordType, VecContType
60 boundingBox = BoundingBoxType.New()
61 boundingBox.SetPoints(points)
62 boundingBox.ComputeBoundingBox()
64 print(
"bounds: " + str(boundingBox.GetBounds()))
65 print(
"center: " + str(boundingBox.GetCenter()))
66 print(
"diagonal length squared: " + str(boundingBox.GetDiagonalLength2()))