
Thu, 10/16/2025 - 18:23
Forums:
Suppose I import the step file in the attached image. You can see I have two cylindrical faces selected. If I call the following code
Handle(Geom_CylindricalSurface) firstCylinder = ...
Handle(Geom_CylindricalSurface) secondCylinder = ...
gp_Ax1 axis1 = firstCylinder->Cylinder().Axis();
gp_Ax1 axis2 = secondCylinder->Cylinder().Axis();
gp_Pnt point1 = axis1.Location();
gp_Pnt point2 = axis2.Location();
Will point 1 always equal point 2 ? When I tested it against the step file (from the attached image) the two points it DID match. The two cylinders also had the same "vMin" and "vMax".
In what situation will the two cylinders "Location()" not match ? I suppose if they have different "vMin" and "vMax" ?? I guess im more wondering how is the .Location() calculated for cylindrical faces that are imported like the step file in the image.
Attachments: