Commit | Line | Data |
---|---|---|

b311480e | 1 | -- Created on: 1994-12-09 |

2 | -- Created by: Jacques GOUSSARD | |

3 | -- Copyright (c) 1994-1999 Matra Datavision | |

973c2be1 | 4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |

b311480e | 5 | -- |

973c2be1 | 6 | -- This file is part of Open CASCADE Technology software library. |

b311480e | 7 | -- |

d5f74e42 | 8 | -- This library is free software; you can redistribute it and/or modify it under |

9 | -- the terms of the GNU Lesser General Public License version 2.1 as published | |

973c2be1 | 10 | -- by the Free Software Foundation, with special exception defined in the file |

11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |

12 | -- distribution for complete text of the license and disclaimer of any warranty. | |

b311480e | 13 | -- |

973c2be1 | 14 | -- Alternatively, this file may be used under the terms of Open CASCADE |

15 | -- commercial license or contractual agreement. | |

7fd59977 | 16 | |

17 | class NurbsConvert from BRepBuilderAPI inherits ModifyShape from BRepBuilderAPI | |

18 | ||

ff8178ef | 19 | ---Purpose: Conversion of the complete geometry of a shape |

20 | -- (all 3D analytical representation of surfaces and curves) | |

21 | -- into NURBS geometry (execpt for Planes). For example, | |

22 | -- all curves supporting edges of the basis shape are converted | |

23 | -- into BSpline curves, and all surfaces supporting its faces are | |

24 | -- converted into BSpline surfaces. | |

7fd59977 | 25 | |

26 | uses | |

27 | ||

28 | Shape from TopoDS, | |

29 | Face from TopoDS, | |

30 | ShapeModification from BRepBuilderAPI, | |

31 | ListOfShape from TopTools | |

32 | ||

33 | is | |

34 | ||

35 | Create returns NurbsConvert from BRepBuilderAPI; | |

36 | ---Purpose: Constructs a framework for converting the geometry of a | |

37 | -- shape into NURBS geometry. Use the function Perform | |

38 | -- to define the shape to convert. | |

39 | Create(S: Shape from TopoDS; | |

40 | Copy: Boolean from Standard = Standard_False) | |

41 | ||

42 | returns NurbsConvert from BRepBuilderAPI; | |

43 | ---Purpose: Builds a new shape by converting the geometry of the | |

44 | -- shape S into NURBS geometry. Specifically, all curves | |

45 | -- supporting edges of S are converted into BSpline | |

46 | -- curves, and all surfaces supporting its faces are | |

47 | -- converted into BSpline surfaces. | |

48 | -- Use the function Shape to access the new shape. | |

49 | -- Note: the constructed framework can be reused to | |

50 | -- convert other shapes. You specify these with the | |

51 | -- function Perform. | |

52 | ||

53 | Perform(me: in out; S : Shape from TopoDS; | |

54 | Copy: Boolean from Standard = Standard_False) | |

55 | ||

56 | ---Purpose: Builds a new shape by converting the geometry of the | |

57 | -- shape S into NURBS geometry. | |

58 | -- Specifically, all curves supporting edges of S are | |

59 | -- converted into BSpline curves, and all surfaces | |

60 | -- supporting its faces are converted into BSpline surfaces. | |

61 | -- Use the function Shape to access the new shape. | |

62 | -- Note: this framework can be reused to convert other | |

63 | -- shapes: you specify them by calling the function Perform again. | |

64 | is static; | |

65 | ||

66 | end NurbsConvert; |