CPC G06T 3/06 (2024.01) [B60R 16/0207 (2013.01); G06F 30/18 (2020.01); G06F 2113/16 (2020.01)] | 7 Claims |
1. A computer based method for an application in a computer aided drafting (CAD) environment for flattening a three dimensional (3D) modeled object to a two dimensional (2D) representation while maintaining a user selected wiring component represented in 3D, comprising the steps of:
receiving the user selected component of the 3D modeled object comprising a connector and a connected first route segment, wherein the connected first route segment comprises at least one sketch segment;
storing all sketch segments of the at least one sketch segment;
identifying a first junction point at a connected first route segment end point;
computing a first tangent at the first junction point;
calculating a flattened route position for a flattened unconnected route segment of the modeled object in direct connection with the connected first route segment at a second junction point corresponding to the first junction point in the 3D object;
computing a second tangent at the second junction point;
calculating a translation and rotation transformation aligning the first junction point to the second junction point, and aligning the first tangent and the second tangent;
calculating a transformation matrix based on the translation and rotation transformation; and
displaying in 2D the flattened unconnected route segment aligned with the user selected 3D component displayed according to the 3D orientation of the selected 3D component.
|