CAD design with primitive closed shapes
AssigneeDassault Systemes
InventorFrédéric Letzelter
Life of this patent
Estimating the term…
Abstract
It is provided a computer-implemented method for designing a CAD modeled object with primitive three-dimensional parametric shapes including closed shapes. The method comprises user-interaction with a screen; definition in a plane of a stroke corresponding to the user-interaction; discretization of the stroke into stroke points; computation of a barycenter of the stroke points; determination of a closed shape to be instantiated as a result of a comparison of a position of the stroke points relative to the barycenter; and instantiation of the determined closed shape. Such a method makes the design of a CAD modeled object easier.
Claims15
Computer-implemented method for designing a CAD modeled object with different types of primitive three-dimensional parametric shapes including several types of closed shapes, wherein the method comprises:
- user-interaction with a screen;
- definition in a plane of a stroke corresponding to the user-interaction;
- discretization of the stroke into stroke points;
- computation of a barycenter of the stroke points;
- determination of a closed shape to be instantiated as a result of a comparison of a position of the stroke points relative to the barycenter;
- and
- instantiation of the determined closed shape;
- wherein the closed shpapes includes a circle, an ellipse, a square, and a rectangle;
- and
- wherein the determination of a closed shape to be instantiated comprises:
- comparing distances between the stroke points and the barycenter;
- if the distances between the stroke points and the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the circle;
- else:
- comparing angles between consecutive stroke points through the barycenter;
- if the angles between consecutive stroke points through the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the ellipse;
- else:
- comparing a lowest dimension and a highest dimension of a box containing the stroke points;
- if the lowest dimension and the highest dimension of the box are evaluated to be equal:
- determining the closed shape to be instantiated to be the square;
- else:
- determining the closed shape to be instantiated to be the rectangle.
A CAD system comprising:
- a memory for storing primitive three-dimensional parametric shapes including closed shapes;
- and
- a graphical user interface coupled with the memory and a processor, and suitable for performing a computer-implemented method for designing a CAD modeled object with different types of primitive three-dimensional parametric shapes including several types of closed shapes, wherein the method comprises:
- user-interaction with a screen;
- definition in a plane of a stroke corresponding to the user-interaction;
- discretization of the stroke into stroke points;
- computation of a barycenter of the stroke points;
- determination of a type of closed shape to be instantiated as a result of a comparison of a position of the stroke points relative to the barycenter;
- and
- instantiation of the determined type of closed shape;
- wherein the closed shapes include a circle, an ellipse, a square, and a rectangle;
- and
- wherein the determination of a closed shape to be instantiated comprises:
- comparing distances between the stroke points and the barycenter;
- if the distances between the stroke points and the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the circle;
- else:
- comparing angles between consecutive stroke points through the barycenter;
- if the angles between consecutive stroke points through the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the ellipse;
- else:
- comparing a lowest dimension and a highest dimension of a box containing the stroke points;
- if the lowest dimension and the highest dimension of the box are evaluated to be equal:
- determining the closed shape to be instantiated to be the square;
- else:
- determining the closed shape to be instantiated to be the rectangle.
A non-transitory computer readable storage medium having recorded thereon a computer program comprising instructions for performing a computer-implemented method for designing a CAD modeled object with different types of primitive three-dimensional parametric shapes including several types of closed shapes, wherein the method comprises:
- user-interaction with a screen;
- definition in a plane of a stroke corresponding to the user-interaction;
- discretization of the stroke into stroke points;
- computation of a barycenter of the stroke points;
- determination of a type of closed shape to be instantiated as a result of a comparison of a position of the stroke points relative to the barycenter;
- and
- instantiation of the determined type of closed shape;
- wherein the closed shapes include a circle, an ellipse, a square, and a rectangle;
- and
- wherein the determination of a closed shape to be instantiated comprises:
- comparing distances between the stroke points and the barycenter;
- if the distances between the stroke points and the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the circle;
- else:
- comparing angles between consecutive stroke points through the barycenter;
- if the angles between consecutive stroke points through the barycenter are evaluated to be equal:
- determining the closed shape to be instantiated to be the ellipse;
- else:
- comparing a lowest dimension and a highest dimension of a box containing the stroke points;
- if the lowest dimension and the highest dimension of the box are evaluated to be equal:
- determining the closed shape to be instantiated to be the square;
- else:
- determining the closed shape to be instantiated to be the rectangle.
Dependencies are inferred from the claim text.