diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,63 @@
 
 ## Unreleased
 
+## 0.9.0.0
+
+### Added 
+
+- Added `OpenCascade.GP.GTrsf.isNegative`
+- Added `OpenCascade.BRepOffsetAPI.MakePipeShell`
+- Added `OpenCascade.BRepTools.outerWire`
+- Added `OpenCascade.GP.Pln` 
+- Added missing methods to `OpenCascade.GP.Lin`:
+  - `fromAx1`, `position`, `setLocation`, `setDirection`,
+    `setPosition`, `reverse`, `reversed`, `angle`, `contains`, `distancePnt`, `distanceLin`, `squareDistancePnt`, `squareDistanceLin`, `normal`, `mirror`, `mirrored`, `mirrorAboutAx1`, `mirroredAboutAx1`, `mirrorAboutAx2`, `mirroredAboutAx2`, `rotate`, `rotated`, `scale`, `scaled`, `transform`, `transformed`, `translate`, `translated`, `translateRelative`, `translatedRelative`
+- Added `OpenCascade.BRepAlgoAPI.Section`
+- Added `OpenCascade.BRepBuilderAPI.MakeFace.fromPln`
+- Added `OpenCascade.BRepGProp.volumePropertiesWithEps`
+  and `OpenCascade.BRepGProp.surfacePropertiesWithEps`
+- Added `OpenCascade.BRepOffsetAPI.MakeOffset`
+- Added `OpenCascade.BOPAlgo.CellsBuilder`
+- Added `OpenCascade.BRepPrimAPI.MakeRevol.fromShapeAx1AndAngle`
+- Added `OpenCascade.Bnd.Box.isVoid`
+- Added `OpenCascade.TopExp.firstVertex` and `OpenCascade.TopExp.lastVertex`
+- Added `OpenCascade.BRep.Tool.degenerated`
+- Added `OpenCascade.BRep.Tool.continuity`
+- Added `OpenCascade.BRepLib.encodeRegularity`
+- Added `Eq` and `Ord` instances to `OpenCascade.GeomAbs.Shape.Shape`
+- Added `OpenCascade.BRepBuilderAPI.TransitionMode` 
+- Added `setTransitionMode` to `OpenCascade.BRepOffsetAPI.MakePipeShell`
+- Added `Eq`, `Ord` and `Bounded` instances to `OpenCascade.Font.FontAspect.FontAspect`
+- Added `Ord` and `Bounded` instances to `OpenCascade.Graphic3D.AlphaMode.AlphaMode`
+- Added `copy` method to `OpenCascade.Geom.BezierCurve`
+- Added `isDone` method to `OpenCascade.BRepBuilderAPI.MakeShape`
+- Added `OpenCascade.ShapeUpgrade.ShapeDivide` and `OpenCascade.ShapeUpgrade.ShapeDivideContinuity`
+- Added `OpenCascade.ShapeBuild.ReShape` and `OpenCascade.ShapeBuild.Types`
+- Added `setNonDestructive` to `OpenCascade.BOPAlgo.Builder`
+- Added `OpenCascade.BRepAlgoAPI.BuilderAlgo` and `OpenCascade.BRepAlgoAPI.BooleanOperation`
+- Added nullary `new` constructor to `OpenCascade.BRepAlgoAPI.Fuse`, `OpenCascade.BRepAlgoAPI.Cut` and `OpenCascade.BRepAlgoAPI.Common`
+- Added `OpenCascade.BRepTools.clean`
+- Added `OpenCascade.BRepBuilderAPI.MakeFace.fromPlnAndWire`
+
+### Changed
+
+- Changes to `extra-lib-dirs` and `include-dirs`
+  - Add `/usr/local/include/opencascade` to `include-dirs`
+  - On Linux, add `/usr/lib/opencascade` and `/usr/lib64/opencascade` to `extra-lib-dirs`
+    - This should add support for Gentoo, which uses these directories (Github issue #46)
+  - On MacOS, on Apple Silicon add `/opt/homebrew/include/opencascade` to `include-dirs` and `/opt/homebrew/lib` to `extra-lib-dirs`.
+    - This should add support for a homebrew install of opencascade, without having to set the environment variables that are currently documented in the README.  
+- The instances for `DiscriminatedSubTypeOf OpenCascade.TopoDS.Shape *` now reject null shapes
+- `OpenCascade.RWObj.CafWriter.perform` and `OpenCascade.RWGltf.CafWriter.perform` now returns a boolean status
+
+### Fixed 
+
+- Corrected Return type of `OpenCascade.XSControl.Reader.transferRoots` from `Bool` to `Int`
+- Fixed the `Enum` instance for `OpenCascade.Font.FontAspect.FontAspect` so that the correct values are sent to the kernel 
+- Corrected argument order in `OpenCascade.BRepBuilderAPI.Copy.copy`
+- Fixed `OpenCascade.Font.BRepFont.pointSize`
+- In `OpenCascade.GP.Vec2d`, `transform` and `transformed` now take a `Trsf2d`, not a `Trsf`
+
 ## 0.8.0.0
 
 ### Added
diff --git a/cpp/hs_BOPAlgo_Builder.cpp b/cpp/hs_BOPAlgo_Builder.cpp
--- a/cpp/hs_BOPAlgo_Builder.cpp
+++ b/cpp/hs_BOPAlgo_Builder.cpp
@@ -42,6 +42,10 @@
     builder->SetRunParallel(runParallel);
 }
 
+void hs_BOPAlgo_Builder_SetNonDestructive(BOPAlgo_Builder * builder, bool nonDestructive){
+    builder->SetNonDestructive(nonDestructive);
+}
+
 void hs_BOPAlgo_Builder_Perform(
         BOPAlgo_Builder * builder,
         HSExceptionType* exType,
diff --git a/cpp/hs_BOPAlgo_Builder.h b/cpp/hs_BOPAlgo_Builder.h
--- a/cpp/hs_BOPAlgo_Builder.h
+++ b/cpp/hs_BOPAlgo_Builder.h
@@ -25,6 +25,8 @@
 
 void hs_BOPAlgo_Builder_SetRunParallel(BOPAlgo_Builder * builder, bool runParallel);
 
+void hs_BOPAlgo_Builder_SetNonDestructive(BOPAlgo_Builder * builder, bool nonDestructive);
+
 void hs_BOPAlgo_Builder_SetFuzzyValue(BOPAlgo_Builder * builder, double fuzz);
 
 void hs_BOPAlgo_Builder_Perform(
diff --git a/cpp/hs_BOPAlgo_CellsBuilder.cpp b/cpp/hs_BOPAlgo_CellsBuilder.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BOPAlgo_CellsBuilder.cpp
@@ -0,0 +1,112 @@
+#include <BOPAlgo_CellsBuilder.hxx>
+#include <NCollection_List.hxx>
+#include <TopoDS_Shape.hxx>
+#include "hs_Exception.h"
+#include "hs_BOPAlgo_CellsBuilder.h"
+
+BOPAlgo_CellsBuilder * hs_new_BOPAlgo_CellsBuilder(){
+    return new BOPAlgo_CellsBuilder();
+}
+
+void hs_delete_BOPAlgo_CellsBuilder(BOPAlgo_CellsBuilder * builder){
+    delete builder;
+}
+
+void hs_BOPAlgo_CellsBuilder_AddToResult(
+        BOPAlgo_CellsBuilder * builder,
+        LIST(TopoDS_Shape) * toTake,
+        LIST(TopoDS_Shape) * toAvoid,
+        int material,
+        bool update,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, toTake, toAvoid, material, update]{
+        builder->AddToResult(*toTake, *toAvoid, material, update);
+    });
+}
+
+void hs_BOPAlgo_CellsBuilder_AddAllToResult(
+        BOPAlgo_CellsBuilder * builder,
+        int material,
+        bool update,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, material, update]{
+        builder->AddAllToResult(material, update);
+    });
+}
+
+void hs_BOPAlgo_CellsBuilder_RemoveFromResult(
+        BOPAlgo_CellsBuilder * builder,
+        LIST(TopoDS_Shape) * toTake,
+        LIST(TopoDS_Shape) * toAvoid,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, toTake, toAvoid]{
+        builder->RemoveFromResult(*toTake, *toAvoid);
+    });
+}
+
+void hs_BOPAlgo_CellsBuilder_RemoveAllFromResult(
+        BOPAlgo_CellsBuilder * builder,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder]{
+        builder->RemoveAllFromResult();
+    });
+}
+
+void hs_BOPAlgo_CellsBuilder_RemoveInternalBoundaries(
+        BOPAlgo_CellsBuilder * builder,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder]{
+        builder->RemoveInternalBoundaries();
+    });
+}
+
+TopoDS_Shape * hs_BOPAlgo_CellsBuilder_GetAllParts(
+        BOPAlgo_CellsBuilder * builder,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [builder]{
+        return new TopoDS_Shape(builder->GetAllParts());
+    });
+}
+
+void hs_BOPAlgo_CellsBuilder_MakeContainers(
+        BOPAlgo_CellsBuilder * builder,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder]{
+        builder->MakeContainers();
+    });
+}
diff --git a/cpp/hs_BOPAlgo_CellsBuilder.h b/cpp/hs_BOPAlgo_CellsBuilder.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BOPAlgo_CellsBuilder.h
@@ -0,0 +1,68 @@
+#ifndef HS_BOPALGO_CELLSBUILDER_H
+#define HS_BOPALGO_CELLSBUILDER_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BOPAlgo_CellsBuilder * hs_new_BOPAlgo_CellsBuilder();
+
+void hs_delete_BOPAlgo_CellsBuilder(BOPAlgo_CellsBuilder * builder);
+
+void hs_BOPAlgo_CellsBuilder_AddToResult(
+    BOPAlgo_CellsBuilder * builder,
+    LIST(TopoDS_Shape) * toTake,
+    LIST(TopoDS_Shape) * toAvoid,
+    int material,
+    bool update,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_BOPAlgo_CellsBuilder_AddAllToResult(
+    BOPAlgo_CellsBuilder * builder,
+    int material,
+    bool update,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_BOPAlgo_CellsBuilder_RemoveFromResult(
+    BOPAlgo_CellsBuilder * builder,
+    LIST(TopoDS_Shape) * toTake,
+    LIST(TopoDS_Shape) * toAvoid,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_BOPAlgo_CellsBuilder_RemoveAllFromResult(
+    BOPAlgo_CellsBuilder * builder,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_BOPAlgo_CellsBuilder_RemoveInternalBoundaries(
+    BOPAlgo_CellsBuilder * builder,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+TopoDS_Shape * hs_BOPAlgo_CellsBuilder_GetAllParts(
+    BOPAlgo_CellsBuilder * builder,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_BOPAlgo_CellsBuilder_MakeContainers(
+    BOPAlgo_CellsBuilder * builder,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BOPALGO_CELLSBUILDER_H
diff --git a/cpp/hs_BRepAlgoAPI_BooleanOperation.cpp b/cpp/hs_BRepAlgoAPI_BooleanOperation.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_BooleanOperation.cpp
@@ -0,0 +1,17 @@
+#include <BRepAlgoAPI_BooleanOperation.hxx>
+#include "hs_Exception.h"
+#include "hs_BRepAlgoAPI_BooleanOperation.h"
+
+void hs_BRepAlgoAPI_BooleanOperation_setTools(
+    BRepAlgoAPI_BooleanOperation * builder, 
+    LIST(TopoDS_Shape) * tools, 
+    HSExceptionType* exType,
+    void** exPtr
+){
+    return hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder ,tools]{
+        builder->SetTools(*tools);
+    });
+}
diff --git a/cpp/hs_BRepAlgoAPI_BooleanOperation.h b/cpp/hs_BRepAlgoAPI_BooleanOperation.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_BooleanOperation.h
@@ -0,0 +1,21 @@
+#ifndef HS_BREPALGOAPI_BOOLEANOPERATION_H
+#define HS_BREPALGOAPI_BOOLEANOPERATION_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void hs_BRepAlgoAPI_BooleanOperation_setTools(
+    BRepAlgoAPI_BooleanOperation * builder, 
+    LIST(TopoDS_Shape) * tools, 
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPALGOAPI_BOOLEANOPERATION_H
diff --git a/cpp/hs_BRepAlgoAPI_BuilderAlgo.cpp b/cpp/hs_BRepAlgoAPI_BuilderAlgo.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_BuilderAlgo.cpp
@@ -0,0 +1,21 @@
+#include <BRepAlgoAPI_BuilderAlgo.hxx>
+#include "hs_Exception.h"
+#include "hs_BRepAlgoAPI_BuilderAlgo.h"
+
+void hs_BRepAlgoAPI_BuilderAlgo_setNonDestructive(BRepAlgoAPI_BuilderAlgo * builder, bool nonDestructive){
+    builder->SetNonDestructive(nonDestructive);
+}
+
+void hs_BRepAlgoAPI_BuilderAlgo_setArguments(
+    BRepAlgoAPI_BuilderAlgo * builder, 
+    LIST(TopoDS_Shape) * arguments, 
+    HSExceptionType* exType,
+    void** exPtr
+){
+    return hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, arguments]{
+        builder->SetArguments(*arguments);
+    });
+}
diff --git a/cpp/hs_BRepAlgoAPI_BuilderAlgo.h b/cpp/hs_BRepAlgoAPI_BuilderAlgo.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_BuilderAlgo.h
@@ -0,0 +1,23 @@
+#ifndef HS_BREPALGOAPI_BUILDERALGO_H
+#define HS_BREPALGOAPI_BUILDERALGO_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void hs_BRepAlgoAPI_BuilderAlgo_setNonDestructive(BRepAlgoAPI_BuilderAlgo * builder, bool nonDestructive);
+
+void hs_BRepAlgoAPI_BuilderAlgo_setArguments(
+    BRepAlgoAPI_BuilderAlgo * builder, 
+    LIST(TopoDS_Shape) * arguments, 
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPALGOAPI_BUILDERALGO_H
diff --git a/cpp/hs_BRepAlgoAPI_Common.cpp b/cpp/hs_BRepAlgoAPI_Common.cpp
--- a/cpp/hs_BRepAlgoAPI_Common.cpp
+++ b/cpp/hs_BRepAlgoAPI_Common.cpp
@@ -4,6 +4,10 @@
 
 #include <TopoDS_Shape.hxx>
 
+BRepAlgoAPI_Common * hs_new_BRepAlgoAPI_Common(){
+    return new BRepAlgoAPI_Common();
+}
+
 BRepAlgoAPI_Common * hs_new_BRepAlgoAPI_Common_fromShapes(
         TopoDS_Shape * a, TopoDS_Shape * b,
         HSExceptionType* exType,
diff --git a/cpp/hs_BRepAlgoAPI_Common.h b/cpp/hs_BRepAlgoAPI_Common.h
--- a/cpp/hs_BRepAlgoAPI_Common.h
+++ b/cpp/hs_BRepAlgoAPI_Common.h
@@ -1,4 +1,3 @@
-
 #ifndef HS_BREPALGOAPI_COMMON_H
 #define HS_BREPALGOAPI_COMMON_H
 
@@ -7,6 +6,8 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
+
+BRepAlgoAPI_Common * hs_new_BRepAlgoAPI_Common();
 
 BRepAlgoAPI_Common * hs_new_BRepAlgoAPI_Common_fromShapes(
     TopoDS_Shape * a, TopoDS_Shape * b,
diff --git a/cpp/hs_BRepAlgoAPI_Cut.cpp b/cpp/hs_BRepAlgoAPI_Cut.cpp
--- a/cpp/hs_BRepAlgoAPI_Cut.cpp
+++ b/cpp/hs_BRepAlgoAPI_Cut.cpp
@@ -4,6 +4,10 @@
 
 #include <TopoDS_Shape.hxx>
 
+BRepAlgoAPI_Cut * hs_new_BRepAlgoAPI_Cut(){
+    return new BRepAlgoAPI_Cut();
+}
+
 BRepAlgoAPI_Cut * hs_new_BRepAlgoAPI_Cut_fromShapes(
         TopoDS_Shape * a, TopoDS_Shape * b,
         HSExceptionType* exType,
diff --git a/cpp/hs_BRepAlgoAPI_Cut.h b/cpp/hs_BRepAlgoAPI_Cut.h
--- a/cpp/hs_BRepAlgoAPI_Cut.h
+++ b/cpp/hs_BRepAlgoAPI_Cut.h
@@ -8,6 +8,8 @@
 extern "C" {
 #endif
 
+BRepAlgoAPI_Cut * hs_new_BRepAlgoAPI_Cut();
+
 BRepAlgoAPI_Cut * hs_new_BRepAlgoAPI_Cut_fromShapes(
     TopoDS_Shape * a, TopoDS_Shape * b,
     HSExceptionType* exType,
diff --git a/cpp/hs_BRepAlgoAPI_Fuse.cpp b/cpp/hs_BRepAlgoAPI_Fuse.cpp
--- a/cpp/hs_BRepAlgoAPI_Fuse.cpp
+++ b/cpp/hs_BRepAlgoAPI_Fuse.cpp
@@ -4,6 +4,10 @@
 
 #include <TopoDS_Shape.hxx>
 
+BRepAlgoAPI_Fuse * hs_new_BRepAlgoAPI_Fuse(){
+    return new BRepAlgoAPI_Fuse();
+}
+
 BRepAlgoAPI_Fuse * hs_new_BRepAlgoAPI_Fuse_fromShapes(
         TopoDS_Shape * a, TopoDS_Shape * b,
         HSExceptionType* exType,
diff --git a/cpp/hs_BRepAlgoAPI_Fuse.h b/cpp/hs_BRepAlgoAPI_Fuse.h
--- a/cpp/hs_BRepAlgoAPI_Fuse.h
+++ b/cpp/hs_BRepAlgoAPI_Fuse.h
@@ -7,6 +7,8 @@
 extern "C" {
 #endif
 
+BRepAlgoAPI_Fuse * hs_new_BRepAlgoAPI_Fuse();
+
 BRepAlgoAPI_Fuse * hs_new_BRepAlgoAPI_Fuse_fromShapes(
     TopoDS_Shape * a, TopoDS_Shape * b,
     HSExceptionType* exType,
diff --git a/cpp/hs_BRepAlgoAPI_Section.cpp b/cpp/hs_BRepAlgoAPI_Section.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_Section.cpp
@@ -0,0 +1,22 @@
+#include <BRepAlgoAPI_Section.hxx>
+#include "hs_Exception.h"
+#include "hs_BRepAlgoAPI_Section.h"
+
+#include <TopoDS_Shape.hxx>
+
+BRepAlgoAPI_Section * hs_new_BRepAlgoAPI_Section_fromShapes(
+        TopoDS_Shape * a, TopoDS_Shape * b,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [a, b]{
+        return new BRepAlgoAPI_Section(*a, *b);
+    });
+}
+
+void hs_delete_BRepAlgoAPI_Section(BRepAlgoAPI_Section * builder){
+    delete builder;
+}
diff --git a/cpp/hs_BRepAlgoAPI_Section.h b/cpp/hs_BRepAlgoAPI_Section.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepAlgoAPI_Section.h
@@ -0,0 +1,22 @@
+#ifndef HS_BREPALGOAPI_SECTION_H
+#define HS_BREPALGOAPI_SECTION_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BRepAlgoAPI_Section * hs_new_BRepAlgoAPI_Section_fromShapes(
+    TopoDS_Shape * a, TopoDS_Shape * b,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_delete_BRepAlgoAPI_Section(BRepAlgoAPI_Section * builder);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPALGOAPI_SECTION_H
diff --git a/cpp/hs_BRepBuilderAPI_MakeFace.cpp b/cpp/hs_BRepBuilderAPI_MakeFace.cpp
--- a/cpp/hs_BRepBuilderAPI_MakeFace.cpp
+++ b/cpp/hs_BRepBuilderAPI_MakeFace.cpp
@@ -7,6 +7,32 @@
     return new BRepBuilderAPI_MakeFace();
 }
 
+BRepBuilderAPI_MakeFace * hs_new_BRepBuilderAPI_MakeFace_fromPln(
+        gp_Pln * pln,
+        HSExceptionType* exType,
+        void** exPtr){
+
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [pln]{
+        return new BRepBuilderAPI_MakeFace(*pln);
+    });
+}
+
+BRepBuilderAPI_MakeFace * hs_new_BRepBuilderAPI_MakeFace_fromPlnAndWire(
+        gp_Pln * pln, TopoDS_Wire* wire, bool inside,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [pln, wire, inside]{
+        return new BRepBuilderAPI_MakeFace(*pln, *wire, inside);
+    });
+}
+
 void hs_delete_BRepBuilderAPI_MakeFace(BRepBuilderAPI_MakeFace * builder){
     delete builder;
 }
diff --git a/cpp/hs_BRepBuilderAPI_MakeFace.h b/cpp/hs_BRepBuilderAPI_MakeFace.h
--- a/cpp/hs_BRepBuilderAPI_MakeFace.h
+++ b/cpp/hs_BRepBuilderAPI_MakeFace.h
@@ -41,6 +41,18 @@
     void** exPtr
 );
 
+BRepBuilderAPI_MakeFace * hs_new_BRepBuilderAPI_MakeFace_fromPln(
+        gp_Pln * pln,
+        HSExceptionType* exType,
+        void** exPtr
+);
+
+BRepBuilderAPI_MakeFace * hs_new_BRepBuilderAPI_MakeFace_fromPlnAndWire(
+    gp_Pln * pln, TopoDS_Wire* wire, bool inside,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
 void hs_BRepBuilderAPI_MakeFace_Add(
     BRepBuilderAPI_MakeFace* builder, TopoDS_Wire* wire,
     HSExceptionType* exType,
diff --git a/cpp/hs_BRepBuilderAPI_MakeShape.cpp b/cpp/hs_BRepBuilderAPI_MakeShape.cpp
--- a/cpp/hs_BRepBuilderAPI_MakeShape.cpp
+++ b/cpp/hs_BRepBuilderAPI_MakeShape.cpp
@@ -80,3 +80,9 @@
         false
     );
 }
+
+bool hs_BRepBuilderAPI_MakeShape_isDone(
+        BRepBuilderAPI_MakeShape* builder
+    ){
+    return builder->IsDone();
+}
diff --git a/cpp/hs_BRepBuilderAPI_MakeShape.h b/cpp/hs_BRepBuilderAPI_MakeShape.h
--- a/cpp/hs_BRepBuilderAPI_MakeShape.h
+++ b/cpp/hs_BRepBuilderAPI_MakeShape.h
@@ -40,6 +40,10 @@
     void** exPtr
 );
 
+bool hs_BRepBuilderAPI_MakeShape_isDone(
+        BRepBuilderAPI_MakeShape* builder
+    );
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpp/hs_BRepBuilderAPI_MakeSolid.cpp b/cpp/hs_BRepBuilderAPI_MakeSolid.cpp
--- a/cpp/hs_BRepBuilderAPI_MakeSolid.cpp
+++ b/cpp/hs_BRepBuilderAPI_MakeSolid.cpp
@@ -4,7 +4,6 @@
 #include "hs_BRepBuilderAPI_MakeSolid.h"
 
 BRepBuilderAPI_MakeSolid * hs_new_BRepBuilderAPI_MakeSolid(){
-    auto everywhere = BRepBuilderAPI_MakeSolid().Shape();
     return new BRepBuilderAPI_MakeSolid();
 }
 
diff --git a/cpp/hs_BRepGProp.cpp b/cpp/hs_BRepGProp.cpp
--- a/cpp/hs_BRepGProp.cpp
+++ b/cpp/hs_BRepGProp.cpp
@@ -2,6 +2,7 @@
 #include "hs_Exception.h"
 #include "hs_BRepGProp.h"
 
+
 void hs_BRepGProp_VolumeProperties(
         TopoDS_Shape *shape, GProp_GProps *props, bool onlyClosed, bool skipShared, bool useTriangulation,
         HSExceptionType* exType, void ** exPtr
@@ -15,6 +16,19 @@
     );
 }
 
+void hs_BRepGProp_VolumePropertiesWithEps(
+        TopoDS_Shape *shape, GProp_GProps *props, double eps, bool onlyClosed, bool skipShared,
+        HSExceptionType* exType, void ** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [shape, props, eps, onlyClosed, skipShared]{
+            BRepGProp::VolumeProperties(*shape, *props, eps, onlyClosed, skipShared);
+        }
+    );
+}
+
 void hs_BRepGProp_SurfaceProperties(
         TopoDS_Shape *shape, GProp_GProps *props, bool skipShared, bool useTriangulation,
         HSExceptionType* exType, void ** exPtr
@@ -24,6 +38,19 @@
         exPtr,
         [shape, props, skipShared, useTriangulation]{
             BRepGProp::SurfaceProperties(*shape, *props, skipShared, useTriangulation);
+        }
+    );
+}
+
+void hs_BRepGProp_SurfacePropertiesWithEps(
+        TopoDS_Shape *shape, GProp_GProps *props, double eps, bool skipShared,
+        HSExceptionType* exType, void ** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [shape, props, eps, skipShared]{
+            BRepGProp::SurfaceProperties(*shape, *props, eps, skipShared);
         }
     );
 }
diff --git a/cpp/hs_BRepGProp.h b/cpp/hs_BRepGProp.h
--- a/cpp/hs_BRepGProp.h
+++ b/cpp/hs_BRepGProp.h
@@ -12,9 +12,19 @@
     HSExceptionType* exType, void ** exPtr
 );
 
+void hs_BRepGProp_VolumePropertiesWithEps(
+        TopoDS_Shape *shape, GProp_GProps *props, double eps, bool onlyClosed, bool skipShared,
+        HSExceptionType* exType, void ** exPtr
+);
+
 void hs_BRepGProp_SurfaceProperties(
     TopoDS_Shape *shape, GProp_GProps *props, bool skipShared, bool useTriangulation,
     HSExceptionType* exType, void ** exPtr
+);
+
+void hs_BRepGProp_SurfacePropertiesWithEps(
+        TopoDS_Shape *shape, GProp_GProps *props, double eps, bool skipShared,
+        HSExceptionType* exType, void ** exPtr
 );
 
 void hs_BRepGProp_LinearProperties(
diff --git a/cpp/hs_BRepLib.cpp b/cpp/hs_BRepLib.cpp
--- a/cpp/hs_BRepLib.cpp
+++ b/cpp/hs_BRepLib.cpp
@@ -29,3 +29,14 @@
         false
     );
 }
+
+void hs_BRepLib_encodeRegularity(
+    TopoDS_Shape * shape, double angularTolerance,
+    HSExceptionType* exType, void ** exPtr
+){
+    hs_handleExVoid(exType, exPtr,
+        [shape, angularTolerance]{
+            BRepLib::EncodeRegularity(*shape, angularTolerance);
+        }
+    );
+}
diff --git a/cpp/hs_BRepLib.h b/cpp/hs_BRepLib.h
--- a/cpp/hs_BRepLib.h
+++ b/cpp/hs_BRepLib.h
@@ -17,6 +17,11 @@
     HSExceptionType* exType, void ** exPtr
 );
 
+void hs_BRepLib_encodeRegularity(
+    TopoDS_Shape * shape, double angularTolerance,
+    HSExceptionType* exType, void ** exPtr
+);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpp/hs_BRepOffsetAPI_MakeOffset.cpp b/cpp/hs_BRepOffsetAPI_MakeOffset.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepOffsetAPI_MakeOffset.cpp
@@ -0,0 +1,76 @@
+#include <BRepOffsetAPI_MakeOffset.hxx>
+#include "hs_BRepOffsetAPI_MakeOffset.h"
+#include "hs_Exception.h"
+
+BRepOffsetAPI_MakeOffset * hs_new_BRepOffsetAPI_MakeOffset(){
+    return new BRepOffsetAPI_MakeOffset();
+}
+
+void hs_delete_BRepOffsetAPI_MakeOffset(BRepOffsetAPI_MakeOffset * builder){
+    delete builder;
+}
+
+BRepOffsetAPI_MakeOffset * hs_new_BRepOffsetAPI_MakeOffset_fromFace
+    ( TopoDS_Face* face
+    , GeomAbs_JoinType join
+    , bool isOpenResult
+    , HSExceptionType* exType
+    , void** exPtr
+    ){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [face, join, isOpenResult]{
+            return new BRepOffsetAPI_MakeOffset(*face, join, isOpenResult);
+        }
+    );
+}
+
+
+void hs_BRepOffsetAPI_MakeOffset_Init
+    (BRepOffsetAPI_MakeOffset *builder
+    , TopoDS_Face* face
+    , GeomAbs_JoinType join
+    , bool isOpenResult
+    , HSExceptionType* exType
+    , void** exPtr
+    ){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, face, join, isOpenResult]{
+            builder->Init(*face, join, isOpenResult);
+        }
+    );
+}
+
+void hs_BRepOffsetAPI_MakeOffset_AddWire
+    ( BRepOffsetAPI_MakeOffset * builder
+    , TopoDS_Wire* wire
+    , HSExceptionType* exType
+    , void** exPtr
+    ) {
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, wire]{
+            builder->AddWire(*wire);
+        }
+    );
+}
+
+void hs_BRepOffsetAPI_MakeOffset_Perform
+    ( BRepOffsetAPI_MakeOffset * builder
+    , double offset
+    , double alt
+    , HSExceptionType* exType
+    , void** exPtr
+    ) {
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, offset, alt]{
+            builder->Perform(offset, alt);
+        }
+    );
+}
diff --git a/cpp/hs_BRepOffsetAPI_MakeOffset.h b/cpp/hs_BRepOffsetAPI_MakeOffset.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepOffsetAPI_MakeOffset.h
@@ -0,0 +1,52 @@
+#ifndef HS_BREPOFFSETAPI_MAKEOFFSET_H
+#define HS_BREPOFFSETAPI_MAKEOFFSET_H
+
+#include "hs_types.h"
+#include "hs_Exception.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BRepOffsetAPI_MakeOffset * hs_new_BRepOffsetAPI_MakeOffset();
+
+void hs_delete_BRepOffsetAPI_MakeOffset(BRepOffsetAPI_MakeOffset * builder);
+
+BRepOffsetAPI_MakeOffset * hs_new_BRepOffsetAPI_MakeOffset_fromFace
+    ( TopoDS_Face* face
+    , GeomAbs_JoinType join
+    , bool isOpenResult
+    , HSExceptionType* exType
+    , void** exPtr
+    );
+
+void hs_BRepOffsetAPI_MakeOffset_Init
+    (BRepOffsetAPI_MakeOffset *builder
+    , TopoDS_Face* face
+    , GeomAbs_JoinType join
+    , bool isOpenResult
+    , HSExceptionType* exType
+    , void** exPtr
+    );
+
+void hs_BRepOffsetAPI_MakeOffset_AddWire
+    ( BRepOffsetAPI_MakeOffset * builder
+    , TopoDS_Wire* wire
+    , HSExceptionType* exType
+    , void** exPtr
+    );
+
+void hs_BRepOffsetAPI_MakeOffset_Perform
+    ( BRepOffsetAPI_MakeOffset * builder
+    , double offset
+    , double alt
+    , HSExceptionType* exType
+    , void** exPtr
+    );
+        
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPOFFSETAPI_MAKEOFFSET_H
diff --git a/cpp/hs_BRepOffsetAPI_MakePipeShell.cpp b/cpp/hs_BRepOffsetAPI_MakePipeShell.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepOffsetAPI_MakePipeShell.cpp
@@ -0,0 +1,78 @@
+#include <BRepOffsetAPI_MakePipeShell.hxx>
+#include "hs_Exception.h"
+#include "hs_BRepOffsetAPI_MakePipeShell.h"
+
+BRepOffsetAPI_MakePipeShell * hs_new_BRepOffsetAPI_MakePipeShell(
+        TopoDS_Wire * spine,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [spine]{
+            return new BRepOffsetAPI_MakePipeShell(*spine);
+        });
+}
+
+void hs_delete_BRepOffsetAPI_MakePipeShell(BRepOffsetAPI_MakePipeShell * builder){
+    delete builder;
+}
+
+void hs_BRepOffsetAPI_MakePipeShell_setModeFrenet(BRepOffsetAPI_MakePipeShell * builder, bool isFrenet){
+    builder->SetMode(static_cast<bool>(isFrenet));
+}
+
+void hs_BRepOffsetAPI_MakePipeShell_setDiscreteMode(BRepOffsetAPI_MakePipeShell * builder){
+    builder->SetDiscreteMode();
+}
+
+void hs_BRepOffsetAPI_MakePipeShell_add(
+        BRepOffsetAPI_MakePipeShell * builder,
+        TopoDS_Wire * profile,
+        bool withContact,
+        bool withCorrection,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [builder, profile, withContact, withCorrection]{
+            builder->Add(*profile,
+                         static_cast<bool>(withContact),
+                         static_cast<bool>(withCorrection));
+        });
+}
+
+bool hs_BRepOffsetAPI_MakePipeShell_makeSolid(
+        BRepOffsetAPI_MakePipeShell * builder,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleExWithDefault(
+        exType,
+        exPtr,
+        [builder]{
+            return static_cast<bool>(builder->MakeSolid());
+        },
+        false);
+}
+
+void hs_BRepOffsetAPI_MakePipeShell_setTransitionMode(
+    BRepOffsetAPI_MakePipeShell * builder,
+    BRepBuilderAPI_TransitionMode mode, 
+    HSExceptionType* exType,
+    void** exPtr
+){
+    hs_handleExVoid(exType, exPtr, 
+        [builder, mode]{
+            builder->SetTransitionMode(mode);
+        }
+    );
+}
+
+
+bool hs_BRepOffsetAPI_MakePipeShell_isDone(BRepOffsetAPI_MakePipeShell * builder){
+    return builder->IsDone();
+}
diff --git a/cpp/hs_BRepOffsetAPI_MakePipeShell.h b/cpp/hs_BRepOffsetAPI_MakePipeShell.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepOffsetAPI_MakePipeShell.h
@@ -0,0 +1,50 @@
+#ifndef HS_BREPOFFSETAPI_MAKEPIPESHELL_H
+#define HS_BREPOFFSETAPI_MAKEPIPESHELL_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+BRepOffsetAPI_MakePipeShell * hs_new_BRepOffsetAPI_MakePipeShell(
+    TopoDS_Wire * spine,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+void hs_delete_BRepOffsetAPI_MakePipeShell(BRepOffsetAPI_MakePipeShell * builder);
+
+void hs_BRepOffsetAPI_MakePipeShell_setModeFrenet(BRepOffsetAPI_MakePipeShell * builder, bool isFrenet);
+
+void hs_BRepOffsetAPI_MakePipeShell_setDiscreteMode(BRepOffsetAPI_MakePipeShell * builder);
+
+void hs_BRepOffsetAPI_MakePipeShell_add(
+    BRepOffsetAPI_MakePipeShell * builder,
+    TopoDS_Wire * profile,
+    bool withContact,
+    bool withCorrection,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+bool hs_BRepOffsetAPI_MakePipeShell_makeSolid(
+    BRepOffsetAPI_MakePipeShell * builder,
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+bool hs_BRepOffsetAPI_MakePipeShell_isDone(BRepOffsetAPI_MakePipeShell * builder);
+
+void hs_BRepOffsetAPI_MakePipeShell_setTransitionMode(
+    BRepOffsetAPI_MakePipeShell * builder,
+    BRepBuilderAPI_TransitionMode mode, 
+    HSExceptionType* exType,
+    void** exPtr
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPOFFSETAPI_MAKEPIPESHELL_H
diff --git a/cpp/hs_BRepPrimAPI_MakeBox.cpp b/cpp/hs_BRepPrimAPI_MakeBox.cpp
--- a/cpp/hs_BRepPrimAPI_MakeBox.cpp
+++ b/cpp/hs_BRepPrimAPI_MakeBox.cpp
@@ -22,7 +22,7 @@
     delete builder;
 }
 
-TopoDS_Shape * hs_BRepPrimAPI_MakeBox_Solid(
+TopoDS_Solid * hs_BRepPrimAPI_MakeBox_Solid(
         BRepPrimAPI_MakeBox* builder,
         HSExceptionType* exType,
         void** exPtr
@@ -31,7 +31,7 @@
         exType,
         exPtr,
         [builder]{
-        return new TopoDS_Shape(builder->Solid());
+        return new TopoDS_Solid(builder->Solid());
     });
 }
 
diff --git a/cpp/hs_BRepPrimAPI_MakeBox.h b/cpp/hs_BRepPrimAPI_MakeBox.h
--- a/cpp/hs_BRepPrimAPI_MakeBox.h
+++ b/cpp/hs_BRepPrimAPI_MakeBox.h
@@ -15,7 +15,7 @@
 
 void hs_delete_BRepPrimAPI_MakeBox(BRepPrimAPI_MakeBox* builder);
 
-TopoDS_Shape * hs_BRepPrimAPI_MakeBox_Solid(
+TopoDS_Solid * hs_BRepPrimAPI_MakeBox_Solid(
     BRepPrimAPI_MakeBox* builder,
     HSExceptionType* exType,
     void** exPtr
diff --git a/cpp/hs_BRepPrimAPI_MakeRevol.cpp b/cpp/hs_BRepPrimAPI_MakeRevol.cpp
--- a/cpp/hs_BRepPrimAPI_MakeRevol.cpp
+++ b/cpp/hs_BRepPrimAPI_MakeRevol.cpp
@@ -15,6 +15,20 @@
     });
 }
 
+BRepPrimAPI_MakeRevol * hs_new_BRepPrimAPI_MakeRevol_fromShapeAx1AndAngle(
+        TopoDS_Shape * shape, gp_Ax1 * axis, double angle, bool copy,
+        HSExceptionType* exType,
+        void** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [shape, axis, angle, copy]{
+        return new BRepPrimAPI_MakeRevol(*shape, *axis, angle, copy);
+    });
+}
+
+
 void hs_delete_BRepPrimAPI_MakeRevol(BRepPrimAPI_MakeRevol * builder){
     delete builder;
 }
diff --git a/cpp/hs_BRepPrimAPI_MakeRevol.h b/cpp/hs_BRepPrimAPI_MakeRevol.h
--- a/cpp/hs_BRepPrimAPI_MakeRevol.h
+++ b/cpp/hs_BRepPrimAPI_MakeRevol.h
@@ -13,6 +13,12 @@
     void** exPtr
 );
 
+BRepPrimAPI_MakeRevol * hs_new_BRepPrimAPI_MakeRevol_fromShapeAx1AndAngle(
+        TopoDS_Shape * shape, gp_Ax1 * axis, double angle, bool copy,
+        HSExceptionType* exType,
+        void** exPtr
+);
+
 void hs_delete_BRepPrimAPI_MakeRevol(BRepPrimAPI_MakeRevol * builder);
 
 #ifdef __cplusplus
diff --git a/cpp/hs_BRepTools.cpp b/cpp/hs_BRepTools.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepTools.cpp
@@ -0,0 +1,31 @@
+#include <BRepTools.hxx>
+#include <TopoDS_Wire.hxx>
+#include <TopoDS_Face.hxx>
+#include "hs_Exception.h"
+#include "hs_BRepTools.h"
+
+TopoDS_Wire * hs_BRepTools_OuterWire(
+        TopoDS_Face * face,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleEx(
+        exType,
+        exPtr,
+        [face]{
+            return new TopoDS_Wire(BRepTools::OuterWire(*face));
+        }
+    );
+}
+
+void hs_BRepTools_Clean(
+        TopoDS_Shape * shape, bool force,
+        HSExceptionType* exType, void ** exPtr
+){
+    hs_handleExVoid(
+        exType,
+        exPtr,
+        [shape, force]{
+            BRepTools::Clean(*shape, force);
+        }
+    );
+}
diff --git a/cpp/hs_BRepTools.h b/cpp/hs_BRepTools.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_BRepTools.h
@@ -0,0 +1,24 @@
+#ifndef HS_BREPTOOLS_H
+#define HS_BREPTOOLS_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+TopoDS_Wire * hs_BRepTools_OuterWire(
+        TopoDS_Face * face,
+        HSExceptionType* exType, void ** exPtr
+);
+
+void hs_BRepTools_Clean(
+        TopoDS_Shape * shape, bool force,
+        HSExceptionType* exType, void ** exPtr
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_BREPTOOLS_H
diff --git a/cpp/hs_BRep_Tool.cpp b/cpp/hs_BRep_Tool.cpp
--- a/cpp/hs_BRep_Tool.cpp
+++ b/cpp/hs_BRep_Tool.cpp
@@ -75,4 +75,30 @@
     );
 }
 
+bool hs_BRep_Tool_degenerated(
+        TopoDS_Edge * edge,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleExWithDefault(
+        exType,
+        exPtr,
+        [edge]{
+            return BRep_Tool::Degenerated(*edge);
+        },
+        true
+    );
+}
 
+GeomAbs_Shape hs_BRep_Tool_continuity(
+    TopoDS_Edge *edge, TopoDS_Face *face1, TopoDS_Face* face2,
+    HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleExWithDefault(
+        exType,
+        exPtr,
+        [edge, face1, face2]{
+            return BRep_Tool::Continuity(*edge, *face1, *face2);
+        },
+        GeomAbs_C0
+    );
+}
diff --git a/cpp/hs_BRep_Tool.h b/cpp/hs_BRep_Tool.h
--- a/cpp/hs_BRep_Tool.h
+++ b/cpp/hs_BRep_Tool.h
@@ -32,6 +32,16 @@
     HSExceptionType* exType, void ** exPtr
 );
 
+bool hs_BRep_Tool_degenerated(
+        TopoDS_Edge * edge,
+        HSExceptionType* exType, void ** exPtr
+);
+
+GeomAbs_Shape hs_BRep_Tool_continuity(
+    TopoDS_Edge *edge, TopoDS_Face *face1, TopoDS_Face* face2,
+    HSExceptionType* exType, void ** exPtr
+);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpp/hs_Bnd_Box.cpp b/cpp/hs_Bnd_Box.cpp
--- a/cpp/hs_Bnd_Box.cpp
+++ b/cpp/hs_Bnd_Box.cpp
@@ -10,6 +10,15 @@
     delete box;
 }
 
+bool hs_Bnd_Box_isVoid(
+        Bnd_Box * box,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleExWithDefault(exType, exPtr, [box]{
+        return box->IsVoid();
+    }, true);
+}
+
 gp_Pnt * hs_Bnd_Box_cornerMin(
         Bnd_Box * box,
         HSExceptionType* exType, void ** exPtr
diff --git a/cpp/hs_Bnd_Box.h b/cpp/hs_Bnd_Box.h
--- a/cpp/hs_Bnd_Box.h
+++ b/cpp/hs_Bnd_Box.h
@@ -11,6 +11,11 @@
 
 void hs_delete_Bnd_Box(Bnd_Box * box);
 
+bool hs_Bnd_Box_isVoid(
+        Bnd_Box * box,
+        HSExceptionType* exType, void ** exPtr
+);
+
 gp_Pnt * hs_Bnd_Box_cornerMin(
     Bnd_Box * box,
     HSExceptionType* exType, void ** exPtr
diff --git a/cpp/hs_Font_BRepFont.cpp b/cpp/hs_Font_BRepFont.cpp
--- a/cpp/hs_Font_BRepFont.cpp
+++ b/cpp/hs_Font_BRepFont.cpp
@@ -65,5 +65,5 @@
 }
 
 double hs_Font_BRepFont_pointSize(Font_BRepFont * font){
-    return font->LineSpacing();
+    return font->PointSize();
 }
diff --git a/cpp/hs_Geom_BezierCurve.cpp b/cpp/hs_Geom_BezierCurve.cpp
--- a/cpp/hs_Geom_BezierCurve.cpp
+++ b/cpp/hs_Geom_BezierCurve.cpp
@@ -22,6 +22,12 @@
     return new Handle(Geom_BezierCurve)(new Geom_BezierCurve(*curve));
 }
 
+Handle(Geom_BezierCurve) * hs_Geom_BezierCurve_copy(Handle(Geom_BezierCurve) * curve){
+    return new Handle(Geom_BezierCurve)(
+        Handle(Geom_BezierCurve)::DownCast((*curve)->Copy())
+    );
+}
+
 int hs_Geom_BezierCurve_nbPoles(Handle(Geom_BezierCurve)* h){
     return (*h)->NbPoles();
 }
diff --git a/cpp/hs_Geom_BezierCurve.h b/cpp/hs_Geom_BezierCurve.h
--- a/cpp/hs_Geom_BezierCurve.h
+++ b/cpp/hs_Geom_BezierCurve.h
@@ -14,6 +14,8 @@
 
 Handle(Geom_BezierCurve) * hs_Geom_BezierCurve_toHandle(Geom_BezierCurve * curve);
 
+Handle(Geom_BezierCurve) * hs_Geom_BezierCurve_copy(Handle(Geom_BezierCurve) * curve);
+
 int hs_Geom_BezierCurve_nbPoles(Handle(Geom_BezierCurve)* h);
 
 gp_Pnt * hs_Geom_BezierCurve_pole(
diff --git a/cpp/hs_RWGltf_CafWriter.cpp b/cpp/hs_RWGltf_CafWriter.cpp
--- a/cpp/hs_RWGltf_CafWriter.cpp
+++ b/cpp/hs_RWGltf_CafWriter.cpp
@@ -12,18 +12,19 @@
     delete theWriter;   
 }
 
-void hs_RWGltf_CafWriter_Perform(
+bool hs_RWGltf_CafWriter_Perform(
     RWGltf_CafWriter * theWriter,
     Handle(TDocStd_Document) * theDocument,
     INDEXED_DATA_MAP(TCollection_AsciiString, TCollection_AsciiString, DEFAULT_HASHER(TCollection_AsciiString)) * theFileInfo,
     Message_ProgressRange * theProgress,
     HSExceptionType* exType, void ** exPtr
 ){
-    hs_handleExVoid(
+    return hs_handleExWithDefault(
         exType,
         exPtr,
         [theWriter, theDocument, theFileInfo, theProgress]{
-            theWriter->Perform(*theDocument, *theFileInfo, *theProgress);
+            return theWriter->Perform(*theDocument, *theFileInfo, *theProgress);
         }
+        , false
     );
 }
diff --git a/cpp/hs_RWGltf_CafWriter.h b/cpp/hs_RWGltf_CafWriter.h
--- a/cpp/hs_RWGltf_CafWriter.h
+++ b/cpp/hs_RWGltf_CafWriter.h
@@ -11,7 +11,7 @@
 
 void hs_delete_RWGltf_CafWriter(RWGltf_CafWriter * theWriter);
 
-void hs_RWGltf_CafWriter_Perform(
+bool hs_RWGltf_CafWriter_Perform(
     RWGltf_CafWriter * theWriter, 
     Handle(TDocStd_Document) * theDocument,
     INDEXED_DATA_MAP(TCollection_AsciiString, TCollection_AsciiString, DEFAULT_HASHER(TCollection_AsciiString)) * theFileInfo,
diff --git a/cpp/hs_RWObj_CafWriter.cpp b/cpp/hs_RWObj_CafWriter.cpp
--- a/cpp/hs_RWObj_CafWriter.cpp
+++ b/cpp/hs_RWObj_CafWriter.cpp
@@ -12,18 +12,19 @@
     delete writer;
 }
 
-void hs_RWObj_CafWriter_Perform(
+bool hs_RWObj_CafWriter_Perform(
     RWObj_CafWriter * theWriter,
     Handle(TDocStd_Document) * theDocument,
     INDEXED_DATA_MAP(TCollection_AsciiString, TCollection_AsciiString, DEFAULT_HASHER(TCollection_AsciiString)) * theFileInfo,
     Message_ProgressRange * theProgress,
     HSExceptionType* exType, void ** exPtr
 ){
-    hs_handleExVoid(
+    return hs_handleExWithDefault(
         exType,
         exPtr,
         [theWriter, theDocument, theFileInfo, theProgress]{
-            theWriter->Perform(*theDocument, *theFileInfo, *theProgress);
+            return theWriter->Perform(*theDocument, *theFileInfo, *theProgress);
         }
+        , false
     );
 }
diff --git a/cpp/hs_RWObj_CafWriter.h b/cpp/hs_RWObj_CafWriter.h
--- a/cpp/hs_RWObj_CafWriter.h
+++ b/cpp/hs_RWObj_CafWriter.h
@@ -11,7 +11,7 @@
 
 void hs_delete_RWObj_CafWriter(RWObj_CafWriter * theWriter);
 
-void hs_RWObj_CafWriter_Perform(
+bool hs_RWObj_CafWriter_Perform(
     RWObj_CafWriter * theWriter, Handle(TDocStd_Document) * theDocument, INDEXED_DATA_MAP(TCollection_AsciiString, TCollection_AsciiString, DEFAULT_HASHER(TCollection_AsciiString)) * theFileInfo, Message_ProgressRange * theProgress,
     HSExceptionType* exType, void ** exPtr
 );
diff --git a/cpp/hs_ShapeBuild_ReShape.cpp b/cpp/hs_ShapeBuild_ReShape.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeBuild_ReShape.cpp
@@ -0,0 +1,23 @@
+#include <ShapeBuild_ReShape.hxx>
+#include <Standard_Handle.hxx>
+#include <TopAbs_ShapeEnum.hxx>
+#include <TopoDS_Shape.hxx>
+#include "hs_Exception.h"
+#include "hs_ShapeBuild_ReShape.h"
+
+void hs_delete_Handle_ShapeBuild_ReShape(Handle(ShapeBuild_ReShape) * reShape){
+    delete reShape;
+}
+
+TopoDS_Shape * hs_ShapeBuild_ReShape_apply(
+        Handle(ShapeBuild_ReShape) * reShape, TopoDS_Shape * shape, TopAbs_ShapeEnum until,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleEx(exType, exPtr, [reShape, shape, until]{
+        return new TopoDS_Shape((*reShape)->Apply(*shape, until));
+    });
+}
+
+bool hs_ShapeBuild_ReShape_isRecorded(Handle(ShapeBuild_ReShape) * reShape, TopoDS_Shape * shape){
+    return (*reShape)->IsRecorded(*shape);
+}
diff --git a/cpp/hs_ShapeBuild_ReShape.h b/cpp/hs_ShapeBuild_ReShape.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeBuild_ReShape.h
@@ -0,0 +1,23 @@
+#ifndef HS_SHAPEBUILD_RESHAPE_H
+#define HS_SHAPEBUILD_RESHAPE_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void hs_delete_Handle_ShapeBuild_ReShape(Handle(ShapeBuild_ReShape) * reShape);
+
+TopoDS_Shape * hs_ShapeBuild_ReShape_apply(
+    Handle(ShapeBuild_ReShape) * reShape, TopoDS_Shape * shape, TopAbs_ShapeEnum until,
+    HSExceptionType* exType, void ** exPtr
+);
+
+bool hs_ShapeBuild_ReShape_isRecorded(Handle(ShapeBuild_ReShape) * reShape, TopoDS_Shape * shape);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_SHAPEBUILD_RESHAPE_H
diff --git a/cpp/hs_ShapeUpgrade_ShapeDivide.cpp b/cpp/hs_ShapeUpgrade_ShapeDivide.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeUpgrade_ShapeDivide.cpp
@@ -0,0 +1,45 @@
+#include <ShapeUpgrade_ShapeDivide.hxx>
+#include <ShapeBuild_ReShape.hxx>
+#include <Standard_Handle.hxx>
+#include <TopoDS_Shape.hxx>
+#include "hs_Exception.h"
+#include "hs_ShapeUpgrade_ShapeDivide.h"
+
+bool hs_ShapeUpgrade_ShapeDivide_perform(
+        ShapeUpgrade_ShapeDivide * divide, bool newContext,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleExWithDefault(
+        exType,
+        exPtr,
+        [divide, newContext]{
+            return static_cast<bool>(divide->Perform(newContext));
+        },
+        false
+    );
+}
+
+TopoDS_Shape * hs_ShapeUpgrade_ShapeDivide_result(
+        ShapeUpgrade_ShapeDivide * divide,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleEx(exType, exPtr, [divide]{
+        return new TopoDS_Shape(divide->Result());
+    });
+}
+
+Handle(ShapeBuild_ReShape) * hs_ShapeUpgrade_ShapeDivide_getContext(ShapeUpgrade_ShapeDivide * divide){
+    return new Handle(ShapeBuild_ReShape)(divide->GetContext());
+}
+
+void hs_ShapeUpgrade_ShapeDivide_setPrecision(ShapeUpgrade_ShapeDivide * divide, double precision){
+    divide->SetPrecision(precision);
+}
+
+void hs_ShapeUpgrade_ShapeDivide_setMaxTolerance(ShapeUpgrade_ShapeDivide * divide, double maxTolerance){
+    divide->SetMaxTolerance(maxTolerance);
+}
+
+void hs_ShapeUpgrade_ShapeDivide_setMinTolerance(ShapeUpgrade_ShapeDivide * divide, double minTolerance){
+    divide->SetMinTolerance(minTolerance);
+}
diff --git a/cpp/hs_ShapeUpgrade_ShapeDivide.h b/cpp/hs_ShapeUpgrade_ShapeDivide.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeUpgrade_ShapeDivide.h
@@ -0,0 +1,32 @@
+#ifndef HS_SHAPEUPGRADE_SHAPEDIVIDE_H
+#define HS_SHAPEUPGRADE_SHAPEDIVIDE_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+bool hs_ShapeUpgrade_ShapeDivide_perform(
+    ShapeUpgrade_ShapeDivide * divide, bool newContext,
+    HSExceptionType* exType, void ** exPtr
+);
+
+TopoDS_Shape * hs_ShapeUpgrade_ShapeDivide_result(
+    ShapeUpgrade_ShapeDivide * divide,
+    HSExceptionType* exType, void ** exPtr
+);
+
+Handle(ShapeBuild_ReShape) * hs_ShapeUpgrade_ShapeDivide_getContext(ShapeUpgrade_ShapeDivide * divide);
+
+void hs_ShapeUpgrade_ShapeDivide_setPrecision(ShapeUpgrade_ShapeDivide * divide, double precision);
+
+void hs_ShapeUpgrade_ShapeDivide_setMaxTolerance(ShapeUpgrade_ShapeDivide * divide, double maxTolerance);
+
+void hs_ShapeUpgrade_ShapeDivide_setMinTolerance(ShapeUpgrade_ShapeDivide * divide, double minTolerance);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_SHAPEUPGRADE_SHAPEDIVIDE_H
diff --git a/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.cpp b/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.cpp
@@ -0,0 +1,38 @@
+#include <ShapeUpgrade_ShapeDivideContinuity.hxx>
+#include <GeomAbs_Shape.hxx>
+#include <TopoDS_Shape.hxx>
+#include "hs_Exception.h"
+#include "hs_ShapeUpgrade_ShapeDivideContinuity.h"
+
+ShapeUpgrade_ShapeDivideContinuity * hs_new_ShapeUpgrade_ShapeDivideContinuity_fromShape(
+        TopoDS_Shape * shape,
+        HSExceptionType* exType, void ** exPtr
+){
+    return hs_handleEx(exType, exPtr, [shape]{
+        return new ShapeUpgrade_ShapeDivideContinuity(*shape);
+    });
+}
+
+void hs_delete_ShapeUpgrade_ShapeDivideContinuity(ShapeUpgrade_ShapeDivideContinuity * divide){
+    delete divide;
+}
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance(ShapeUpgrade_ShapeDivideContinuity * divide, double tolerance){
+    divide->SetTolerance(tolerance);
+}
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance2d(ShapeUpgrade_ShapeDivideContinuity * divide, double tolerance){
+    divide->SetTolerance2d(tolerance);
+}
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setBoundaryCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion){
+    divide->SetBoundaryCriterion(criterion);
+}
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setPCurveCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion){
+    divide->SetPCurveCriterion(criterion);
+}
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setSurfaceCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion){
+    divide->SetSurfaceCriterion(criterion);
+}
diff --git a/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.h b/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_ShapeUpgrade_ShapeDivideContinuity.h
@@ -0,0 +1,31 @@
+#ifndef HS_SHAPEUPGRADE_SHAPEDIVIDECONTINUITY_H
+#define HS_SHAPEUPGRADE_SHAPEDIVIDECONTINUITY_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ShapeUpgrade_ShapeDivideContinuity * hs_new_ShapeUpgrade_ShapeDivideContinuity_fromShape(
+    TopoDS_Shape * shape,
+    HSExceptionType* exType, void ** exPtr
+);
+
+void hs_delete_ShapeUpgrade_ShapeDivideContinuity(ShapeUpgrade_ShapeDivideContinuity * divide);
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance(ShapeUpgrade_ShapeDivideContinuity * divide, double tolerance);
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance2d(ShapeUpgrade_ShapeDivideContinuity * divide, double tolerance);
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setBoundaryCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion);
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setPCurveCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion);
+
+void hs_ShapeUpgrade_ShapeDivideContinuity_setSurfaceCriterion(ShapeUpgrade_ShapeDivideContinuity * divide, GeomAbs_Shape criterion);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_SHAPEUPGRADE_SHAPEDIVIDECONTINUITY_H
diff --git a/cpp/hs_TopExp.cpp b/cpp/hs_TopExp.cpp
--- a/cpp/hs_TopExp.cpp
+++ b/cpp/hs_TopExp.cpp
@@ -1,5 +1,7 @@
 #include <TopExp.hxx>
 #include <TopoDS_Shape.hxx>
+#include <TopoDS_Edge.hxx>
+#include <TopoDS_Vertex.hxx>
 #include "hs_Exception.h"
 #include "hs_TopExp.h"
 
@@ -10,5 +12,23 @@
     ){
     hs_handleExVoid(exType, exPtr, [shape, subshapeType, ancestorType, theMap]{
         TopExp::MapShapesAndAncestors(*shape, subshapeType, ancestorType, *theMap);
+    });
+}
+
+TopoDS_Vertex * hs_TopExp_firstVertex(
+        TopoDS_Edge * edge, bool cumOri,
+        HSExceptionType* exType, void ** exPtr
+    ){
+    return hs_handleEx(exType, exPtr, [edge, cumOri]{
+        return new TopoDS_Vertex(TopExp::FirstVertex(*edge, cumOri));
+    });
+}
+
+TopoDS_Vertex * hs_TopExp_lastVertex(
+        TopoDS_Edge * edge, bool cumOri,
+        HSExceptionType* exType, void ** exPtr
+    ){
+    return hs_handleEx(exType, exPtr, [edge, cumOri]{
+        return new TopoDS_Vertex(TopExp::LastVertex(*edge, cumOri));
     });
 }
diff --git a/cpp/hs_TopExp.h b/cpp/hs_TopExp.h
--- a/cpp/hs_TopExp.h
+++ b/cpp/hs_TopExp.h
@@ -13,6 +13,16 @@
         HSExceptionType* exType, void ** exPtr
     );
 
+TopoDS_Vertex * hs_TopExp_firstVertex(
+        TopoDS_Edge * edge, bool cumOri,
+        HSExceptionType* exType, void ** exPtr
+    );
+
+TopoDS_Vertex * hs_TopExp_lastVertex(
+        TopoDS_Edge * edge, bool cumOri,
+        HSExceptionType* exType, void ** exPtr
+    );
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpp/hs_XSControl_Reader.cpp b/cpp/hs_XSControl_Reader.cpp
--- a/cpp/hs_XSControl_Reader.cpp
+++ b/cpp/hs_XSControl_Reader.cpp
@@ -16,7 +16,7 @@
     );
 }
 
-bool hs_XSControl_Reader_transferRoots(
+int hs_XSControl_Reader_transferRoots(
     XSControl_Reader * reader,
     HSExceptionType* exType, void ** exPtr
     ){
@@ -27,7 +27,7 @@
         [reader]{
             return reader->TransferRoots();
         },
-        false
+        0
     );
 }
 
diff --git a/cpp/hs_XSControl_Reader.h b/cpp/hs_XSControl_Reader.h
--- a/cpp/hs_XSControl_Reader.h
+++ b/cpp/hs_XSControl_Reader.h
@@ -12,7 +12,7 @@
     HSExceptionType* exType, void ** exPtr
 );
 
-bool hs_XSControl_Reader_transferRoots(
+int hs_XSControl_Reader_transferRoots(
     XSControl_Reader * reader,
     HSExceptionType* exType, void ** exPtr
 );
diff --git a/cpp/hs_gp_GTrsf.cpp b/cpp/hs_gp_GTrsf.cpp
--- a/cpp/hs_gp_GTrsf.cpp
+++ b/cpp/hs_gp_GTrsf.cpp
@@ -22,3 +22,10 @@
         trsf->SetForm();
     });
 }
+
+
+bool hs_gp_GTrsf_isNegative(gp_GTrsf * trsf, HSExceptionType* exType, void ** exPtr){
+    return hs_handleExWithDefault(exType, exPtr, [trsf]{
+        return trsf->IsNegative();
+    }, false);
+}
diff --git a/cpp/hs_gp_GTrsf.h b/cpp/hs_gp_GTrsf.h
--- a/cpp/hs_gp_GTrsf.h
+++ b/cpp/hs_gp_GTrsf.h
@@ -16,6 +16,8 @@
 
 void hs_gp_GTrsf_setForm(gp_GTrsf * trsf, HSExceptionType* exType, void ** exPtr);
 
+bool hs_gp_GTrsf_isNegative(gp_GTrsf * trsf, HSExceptionType* exType, void ** exPtr);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpp/hs_gp_Lin.cpp b/cpp/hs_gp_Lin.cpp
--- a/cpp/hs_gp_Lin.cpp
+++ b/cpp/hs_gp_Lin.cpp
@@ -1,10 +1,15 @@
 #include <gp_Lin.hxx>
+#include "hs_Exception.h"
 #include "hs_gp_Lin.h"
 
 gp_Lin * hs_new_gp_Lin(gp_Pnt * origin, gp_Dir * direction){
     return new gp_Lin(*origin, *direction);
 }
 
+gp_Lin * hs_new_gp_Lin_fromAx1(gp_Ax1 * axis){
+    return new gp_Lin(*axis);
+}
+
 void hs_delete_gp_Lin(gp_Lin* lin){
     delete lin;
 }
@@ -15,4 +20,122 @@
 
 gp_Dir * hs_gp_Lin_Direction(gp_Lin* lin){
     return new gp_Dir(lin->Direction());
+}
+
+gp_Ax1 * hs_gp_Lin_Position(gp_Lin* lin){
+    return new gp_Ax1(lin->Position());
+}
+
+void hs_gp_Lin_SetLocation(gp_Lin* lin, gp_Pnt * pnt){
+    lin->SetLocation(*pnt);
+}
+
+void hs_gp_Lin_SetDirection(gp_Lin* lin, gp_Dir * dir){
+    lin->SetDirection(*dir);
+}
+
+void hs_gp_Lin_SetPosition(gp_Lin* lin, gp_Ax1 * axis){
+    lin->SetPosition(*axis);
+}
+
+void hs_gp_Lin_Reverse(gp_Lin* lin){
+    lin->Reverse();
+}
+
+gp_Lin * hs_gp_Lin_Reversed(gp_Lin* lin){
+    return new gp_Lin(lin->Reversed());
+}
+
+double hs_gp_Lin_Angle(gp_Lin* lin, gp_Lin* other){
+    return lin->Angle(*other);
+}
+
+bool hs_gp_Lin_Contains(gp_Lin* lin, gp_Pnt* pnt, double linearTolerance){
+    return lin->Contains(*pnt, linearTolerance);
+}
+
+double hs_gp_Lin_DistancePnt(gp_Lin* lin, gp_Pnt* pnt){
+    return lin->Distance(*pnt);
+}
+
+double hs_gp_Lin_DistanceLin(gp_Lin* lin, gp_Lin* other){
+    return lin->Distance(*other);
+}
+
+double hs_gp_Lin_SquareDistancePnt(gp_Lin* lin, gp_Pnt* pnt){
+    return lin->SquareDistance(*pnt);
+}
+
+double hs_gp_Lin_SquareDistanceLin(gp_Lin* lin, gp_Lin* other){
+    return lin->SquareDistance(*other);
+}
+
+gp_Lin * hs_gp_Lin_Normal(gp_Lin* lin, gp_Pnt* pnt, HSExceptionType* exType, void** exPtr){
+    return hs_handleEx(exType, exPtr, [lin, pnt]{
+        return new gp_Lin(lin->Normal(*pnt));
+    });
+}
+
+void hs_gp_Lin_Mirror(gp_Lin * lin, gp_Pnt * pnt){
+    lin->Mirror(*pnt);
+}
+
+gp_Lin * hs_gp_Lin_Mirrored(gp_Lin * lin, gp_Pnt * pnt){
+    return new gp_Lin(lin->Mirrored(*pnt));
+}
+
+void hs_gp_Lin_MirrorAboutAx1(gp_Lin * lin, gp_Ax1 * axis){
+    lin->Mirror(*axis);
+}
+
+gp_Lin * hs_gp_Lin_MirroredAboutAx1(gp_Lin * lin, gp_Ax1 * axis){
+    return new gp_Lin(lin->Mirrored(*axis));
+}
+
+void hs_gp_Lin_MirrorAboutAx2(gp_Lin * lin, gp_Ax2 * axis){
+    lin->Mirror(*axis);
+}
+
+gp_Lin * hs_gp_Lin_MirroredAboutAx2(gp_Lin * lin, gp_Ax2 * axis){
+    return new gp_Lin(lin->Mirrored(*axis));
+}
+
+void hs_gp_Lin_Rotate(gp_Lin * lin, gp_Ax1 * axis, double amount){
+    lin->Rotate(*axis, amount);
+}
+
+gp_Lin * hs_gp_Lin_Rotated(gp_Lin * lin, gp_Ax1 * axis, double amount){
+    return new gp_Lin(lin->Rotated(*axis, amount));
+}
+
+void hs_gp_Lin_Scale(gp_Lin * lin, gp_Pnt * origin, double amount){
+    lin->Scale(*origin, amount);
+}
+
+gp_Lin * hs_gp_Lin_Scaled(gp_Lin * lin, gp_Pnt * origin, double amount){
+    return new gp_Lin(lin->Scaled(*origin, amount));
+}
+
+void hs_gp_Lin_Transform(gp_Lin * lin, gp_Trsf * trsf){
+    lin->Transform(*trsf);
+}
+
+gp_Lin * hs_gp_Lin_Transformed(gp_Lin * lin, gp_Trsf * trsf){
+    return new gp_Lin(lin->Transformed(*trsf));
+}
+
+void hs_gp_Lin_Translate(gp_Lin * lin, gp_Vec * vec){
+    lin->Translate(*vec);
+}
+
+gp_Lin * hs_gp_Lin_Translated(gp_Lin * lin, gp_Vec * vec){
+    return new gp_Lin(lin->Translated(*vec));
+}
+
+void hs_gp_Lin_TranslateRelative(gp_Lin * lin, gp_Pnt * from, gp_Pnt * to){
+    lin->Translate(*from, *to);
+}
+
+gp_Lin * hs_gp_Lin_TranslatedRelative(gp_Lin * lin, gp_Pnt * from, gp_Pnt * to){
+    return new gp_Lin(lin->Translated(*from, *to));
 }
diff --git a/cpp/hs_gp_Lin.h b/cpp/hs_gp_Lin.h
--- a/cpp/hs_gp_Lin.h
+++ b/cpp/hs_gp_Lin.h
@@ -9,11 +9,71 @@
 
 gp_Lin * hs_new_gp_Lin(gp_Pnt * origin, gp_Dir * direction);
 
+gp_Lin * hs_new_gp_Lin_fromAx1(gp_Ax1 * axis);
+
 void hs_delete_gp_Lin(gp_Lin* lin);
 
 gp_Pnt * hs_gp_Lin_Location(gp_Lin* lin);
 
 gp_Dir * hs_gp_Lin_Direction(gp_Lin* lin);
+
+gp_Ax1 * hs_gp_Lin_Position(gp_Lin* lin);
+
+void hs_gp_Lin_SetLocation(gp_Lin* lin, gp_Pnt * pnt);
+
+void hs_gp_Lin_SetDirection(gp_Lin* lin, gp_Dir * dir);
+
+void hs_gp_Lin_SetPosition(gp_Lin* lin, gp_Ax1 * axis);
+
+void hs_gp_Lin_Reverse(gp_Lin* lin);
+
+gp_Lin * hs_gp_Lin_Reversed(gp_Lin* lin);
+
+double hs_gp_Lin_Angle(gp_Lin* lin, gp_Lin* other);
+
+bool hs_gp_Lin_Contains(gp_Lin* lin, gp_Pnt* pnt, double linearTolerance);
+
+double hs_gp_Lin_DistancePnt(gp_Lin* lin, gp_Pnt* pnt);
+
+double hs_gp_Lin_DistanceLin(gp_Lin* lin, gp_Lin* other);
+
+double hs_gp_Lin_SquareDistancePnt(gp_Lin* lin, gp_Pnt* pnt);
+
+double hs_gp_Lin_SquareDistanceLin(gp_Lin* lin, gp_Lin* other);
+
+gp_Lin * hs_gp_Lin_Normal(gp_Lin* lin, gp_Pnt* pnt, HSExceptionType* exType, void** exPtr);
+
+void hs_gp_Lin_Mirror(gp_Lin * lin, gp_Pnt * pnt);
+
+gp_Lin * hs_gp_Lin_Mirrored(gp_Lin * lin, gp_Pnt * pnt);
+
+void hs_gp_Lin_MirrorAboutAx1(gp_Lin * lin, gp_Ax1 * axis);
+
+gp_Lin * hs_gp_Lin_MirroredAboutAx1(gp_Lin * lin, gp_Ax1 * axis);
+
+void hs_gp_Lin_MirrorAboutAx2(gp_Lin * lin, gp_Ax2 * axis);
+
+gp_Lin * hs_gp_Lin_MirroredAboutAx2(gp_Lin * lin, gp_Ax2 * axis);
+
+void hs_gp_Lin_Rotate(gp_Lin * lin, gp_Ax1 * axis, double amount);
+
+gp_Lin * hs_gp_Lin_Rotated(gp_Lin * lin, gp_Ax1 * axis, double amount);
+
+void hs_gp_Lin_Scale(gp_Lin * lin, gp_Pnt * origin, double amount);
+
+gp_Lin * hs_gp_Lin_Scaled(gp_Lin * lin, gp_Pnt * origin, double amount);
+
+void hs_gp_Lin_Transform(gp_Lin * lin, gp_Trsf * trsf);
+
+gp_Lin * hs_gp_Lin_Transformed(gp_Lin * lin, gp_Trsf * trsf);
+
+void hs_gp_Lin_Translate(gp_Lin * lin, gp_Vec * vec);
+
+gp_Lin * hs_gp_Lin_Translated(gp_Lin * lin, gp_Vec * vec);
+
+void hs_gp_Lin_TranslateRelative(gp_Lin * lin, gp_Pnt * from, gp_Pnt * to);
+
+gp_Lin * hs_gp_Lin_TranslatedRelative(gp_Lin * lin, gp_Pnt * from, gp_Pnt * to);
 
 #ifdef __cplusplus
 }
diff --git a/cpp/hs_gp_Pln.cpp b/cpp/hs_gp_Pln.cpp
new file mode 100644
--- /dev/null
+++ b/cpp/hs_gp_Pln.cpp
@@ -0,0 +1,172 @@
+#include <gp_Pln.hxx>
+#include "hs_Exception.h"
+#include "hs_gp_Pln.h"
+
+gp_Pln * hs_new_gp_Pln(){
+    return new gp_Pln();
+}
+
+void hs_delete_gp_Pln(gp_Pln * pln) {
+    delete pln;
+}
+
+gp_Pln * hs_new_gp_Pln_fromAx3(gp_Ax3 * ax){
+    return new gp_Pln(*ax);
+}
+
+gp_Pln * hs_new_gp_Pln_fromPntAndDir(gp_Pnt * pnt, gp_Dir * dir){
+    return new gp_Pln(*pnt, *dir);
+}
+
+gp_Pln * hs_new_gp_Pln_fromCartesianEquation(double theA, double theB, double theC, double theD, HSExceptionType* exType, void** exPtr) {
+    return hs_handleEx(exType, exPtr, [theA, theB, theC, theD]{
+        return new gp_Pln(theA, theB, theC, theD);
+    });
+}
+
+void hs_gp_Pln_SetAxis(gp_Pln * pln, gp_Ax1 *ax, HSExceptionType* exType, void** exPtr) {
+    hs_handleExVoid(exType, exPtr, [pln, ax]{
+        pln->SetAxis(*ax);
+    });
+}
+
+void hs_gp_Pln_SetLocation(gp_Pln * pln, gp_Pnt * loc){
+    pln->SetLocation(*loc);
+}
+
+void hs_gp_Pln_SetPosition(gp_Pln * pln, gp_Ax3 * pos){
+    pln->SetPosition(*pos);
+}
+
+void hs_gp_Pln_VReverse(gp_Pln *pln){
+    pln->VReverse();
+}
+
+void hs_gp_Pln_UReverse(gp_Pln *pln){
+    pln->UReverse();
+}
+
+bool hs_gp_Pln_Direct(gp_Pln *pln){
+    return pln->Direct();
+}
+
+gp_Ax1 * hs_gp_Pln_Axis (gp_Pln *pln){
+    return new gp_Ax1(pln->Axis());
+}
+
+gp_Pnt * hs_gp_Pln_Location(gp_Pln * pln){
+    return new gp_Pnt(pln->Location());
+}
+
+gp_Ax3 * hs_gp_Pln_Position(gp_Pln * pln){
+    return new gp_Ax3(pln->Position());
+}
+
+double hs_gp_Pln_DistancePnt(gp_Pln * pln, gp_Pnt* pnt) {
+    return pln->Distance(*pnt);
+}
+
+double hs_gp_Pln_DistanceLin(gp_Pln * pln, gp_Lin* lin) {
+    return pln->Distance(*lin);
+}
+
+double hs_gp_Pln_DistancePln(gp_Pln * pln, gp_Pln* other) {
+    return pln->Distance(*other);
+}
+
+
+double hs_gp_Pln_SquareDistancePnt(gp_Pln * pln, gp_Pnt* pnt) {
+    return pln->SquareDistance(*pnt);
+}
+
+double hs_gp_Pln_SquareDistanceLin(gp_Pln * pln, gp_Lin* lin) {
+    return pln->SquareDistance(*lin);
+}
+
+double hs_gp_Pln_SquareDistancePln(gp_Pln * pln, gp_Pln* other) {
+    return pln->SquareDistance(*other);
+}
+
+gp_Ax1 * hs_gp_Pln_XAxis(gp_Pln * pln) {
+    return new gp_Ax1(pln->XAxis());
+}
+
+gp_Ax1 * hs_gp_Pln_YAxis(gp_Pln * pln) {
+    return new gp_Ax1(pln->YAxis());
+}
+
+bool hs_gp_Pln_ContainsPnt(gp_Pln * pln, gp_Pnt* pnt, double tolerance){
+    return pln->Contains(*pnt, tolerance);
+}
+
+bool hs_gp_Pln_ContainsLin(gp_Pln * pln, gp_Lin* lin, double linearTolerance, double angularTolerance){
+    return pln->Contains(*lin, linearTolerance, angularTolerance);
+}
+
+void hs_gp_Pln_Coefficients(gp_Pln * pln, double * a, double * b, double * c, double * d){
+    pln->Coefficients(*a, *b, *c, *d);
+}
+
+void hs_gp_Pln_Mirror(gp_Pln * pln, gp_Pnt * pnt){
+    pln->Mirror(*pnt);
+}
+
+gp_Pln * hs_gp_Pln_Mirrored(gp_Pln * pln, gp_Pnt * pnt){
+    return new gp_Pln(pln->Mirrored(*pnt));
+}
+
+void hs_gp_Pln_MirrorAboutAx1(gp_Pln * pln, gp_Ax1 * axis){
+    pln->Mirror(*axis);
+}
+
+gp_Pln * hs_gp_Pln_MirroredAboutAx1(gp_Pln * pln, gp_Ax1 * axis){
+    return new gp_Pln(pln->Mirrored(*axis));
+}
+
+void hs_gp_Pln_MirrorAboutAx2(gp_Pln * pln, gp_Ax2 * axis){
+    pln->Mirror(*axis);
+}
+
+gp_Pln * hs_gp_Pln_MirroredAboutAx2(gp_Pln * pln, gp_Ax2 * axis){
+    return new gp_Pln(pln->Mirrored(*axis));
+}
+
+void hs_gp_Pln_Rotate(gp_Pln * pln, gp_Ax1 * axis, double amount){
+    pln->Rotate(*axis, amount);
+}
+
+gp_Pln * hs_gp_Pln_Rotated(gp_Pln * pln, gp_Ax1 * axis, double amount){
+    return new gp_Pln(pln->Rotated(*axis, amount));
+}
+
+void hs_gp_Pln_Scale(gp_Pln * pln, gp_Pnt * origin, double amount){
+    pln->Scale(*origin, amount);
+}
+
+gp_Pln * hs_gp_Pln_Scaled(gp_Pln * pln, gp_Pnt * origin, double amount){
+    return new gp_Pln(pln->Scaled(*origin, amount));
+}
+
+void hs_gp_Pln_Transform(gp_Pln * pln, gp_Trsf * trsf){
+    pln->Transform(*trsf);
+}
+
+gp_Pln * hs_gp_Pln_Transformed(gp_Pln * pln, gp_Trsf * trsf){
+    return new gp_Pln(pln->Transformed(*trsf));
+}
+
+void hs_gp_Pln_Translate(gp_Pln * pln, gp_Vec * vec){
+    pln->Translate(*vec);
+}
+
+gp_Pln * hs_gp_Pln_Translated(gp_Pln * pln, gp_Vec * vec){
+    return new gp_Pln(pln->Translated(*vec));
+}
+
+void hs_gp_Pln_TranslateRelative(gp_Pln * pln, gp_Pnt * from, gp_Pnt * to){
+    pln->Translate(*from, *to);
+}
+
+gp_Pln * hs_gp_Pln_TranslatedRelative(gp_Pln * pln, gp_Pnt * from, gp_Pnt * to){
+    return new gp_Pln(pln->Translated(*from, *to));
+}
diff --git a/cpp/hs_gp_Pln.h b/cpp/hs_gp_Pln.h
new file mode 100644
--- /dev/null
+++ b/cpp/hs_gp_Pln.h
@@ -0,0 +1,96 @@
+#ifndef HS_GP_PLN_H
+#define HS_GP_PLN_H
+
+#include "hs_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+gp_Pln * hs_new_gp_Pln();
+
+void hs_delete_gp_Pln(gp_Pln * pln) ;
+
+gp_Pln * hs_new_gp_Pln_fromAx3(gp_Ax3 * ax);
+
+gp_Pln * hs_new_gp_Pln_fromPntAndDir(gp_Pnt * pnt, gp_Dir * dir);
+
+gp_Pln * hs_new_gp_Pln_fromCartesianEquation(double theA, double theB, double theC, double theD, HSExceptionType* exType, void** exPtr);
+
+void hs_gp_Pln_SetAxis(gp_Pln * pln, gp_Ax1 *ax, HSExceptionType* exType, void** exPtr);
+
+void hs_gp_Pln_SetLocation(gp_Pln * pln, gp_Pnt * loc);
+
+void hs_gp_Pln_SetPosition(gp_Pln * pln, gp_Ax3 * pos);
+
+void hs_gp_Pln_VReverse(gp_Pln *pln);
+
+void hs_gp_Pln_UReverse(gp_Pln *pln);
+
+bool hs_gp_Pln_Direct(gp_Pln *pln);
+
+gp_Ax1 * hs_gp_Pln_Axis (gp_Pln *pln);
+
+gp_Pnt * hs_gp_Pln_Location(gp_Pln * pln);
+
+gp_Ax3 * hs_gp_Pln_Position(gp_Pln * pln);
+
+double hs_gp_Pln_DistancePnt(gp_Pln * pln, gp_Pnt* pnt) ;
+
+double hs_gp_Pln_DistanceLin(gp_Pln * pln, gp_Lin* lin) ;
+
+double hs_gp_Pln_DistancePln(gp_Pln * pln, gp_Pln* other) ;
+
+double hs_gp_Pln_SquareDistancePnt(gp_Pln * pln, gp_Pnt* pnt) ;
+
+double hs_gp_Pln_SquareDistanceLin(gp_Pln * pln, gp_Lin* lin) ;
+
+double hs_gp_Pln_SquareDistancePln(gp_Pln * pln, gp_Pln* other) ;
+
+gp_Ax1 * hs_gp_Pln_XAxis(gp_Pln * pln) ;
+
+gp_Ax1 * hs_gp_Pln_YAxis(gp_Pln * pln) ;
+
+bool hs_gp_Pln_ContainsPnt(gp_Pln * pln, gp_Pnt* pnt, double tolerance);
+
+bool hs_gp_Pln_ContainsLin(gp_Pln * pln, gp_Lin* lin, double linearTolerance, double angularTolerance);
+
+void hs_gp_Pln_Coefficients(gp_Pln * pln, double * a, double * b, double * c, double * d);
+
+void hs_gp_Pln_Mirror(gp_Pln * pln, gp_Pnt * pnt);
+
+gp_Pln * hs_gp_Pln_Mirrored(gp_Pln * pln, gp_Pnt * pnt);
+
+void hs_gp_Pln_MirrorAboutAx1(gp_Pln * pln, gp_Ax1 * axis);
+
+gp_Pln * hs_gp_Pln_MirroredAboutAx1(gp_Pln * pln, gp_Ax1 * axis);
+
+void hs_gp_Pln_MirrorAboutAx2(gp_Pln * pln, gp_Ax2 * axis);
+
+gp_Pln * hs_gp_Pln_MirroredAboutAx2(gp_Pln * pln, gp_Ax2 * axis);
+
+void hs_gp_Pln_Rotate(gp_Pln * pln, gp_Ax1 * axis, double amount);
+
+gp_Pln * hs_gp_Pln_Rotated(gp_Pln * pln, gp_Ax1 * axis, double amount);
+
+void hs_gp_Pln_Scale(gp_Pln * pln, gp_Pnt * origin, double amount);
+
+gp_Pln * hs_gp_Pln_Scaled(gp_Pln * pln, gp_Pnt * origin, double amount);
+
+void hs_gp_Pln_Transform(gp_Pln * pln, gp_Trsf * trsf);
+
+gp_Pln * hs_gp_Pln_Transformed(gp_Pln * pln, gp_Trsf * trsf);
+
+void hs_gp_Pln_Translate(gp_Pln * pln, gp_Vec * vec);
+
+gp_Pln * hs_gp_Pln_Translated(gp_Pln * pln, gp_Vec * vec);
+
+void hs_gp_Pln_TranslateRelative(gp_Pln * pln, gp_Pnt * from, gp_Pnt * to);
+
+gp_Pln * hs_gp_Pln_TranslatedRelative(gp_Pln * pln, gp_Pnt * from, gp_Pnt * to);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HS_GP_PLN_H
diff --git a/cpp/hs_types.h b/cpp/hs_types.h
--- a/cpp/hs_types.h
+++ b/cpp/hs_types.h
@@ -29,6 +29,7 @@
 typedef void gp_Trsf;
 typedef void gp_GTrsf;
 typedef void gp_Lin;
+typedef void gp_Pln;
 typedef void gp_Trsf2d;
 typedef void gp_XYZ;
 typedef void BRep_Builder;
@@ -58,6 +59,7 @@
 typedef void Geom_BSplineCurve;
 typedef int GeomFill_Trihedron; 
 typedef void BRepOffsetAPI_ThruSections;
+typedef void BRepOffsetAPI_MakePipeShell;
 typedef void BRepMesh_IncrementalMesh;
 typedef void StlAPI_Writer;
 typedef void StlAPI_Reader;
@@ -72,6 +74,7 @@
 typedef int Graphic3d_HorizontalTextAlignment;
 typedef int Graphic3d_VerticalTextAlignment;
 typedef void BRepOffsetAPI_MakeOffsetShape;
+typedef void BRepOffsetAPI_MakeOffset;
 typedef int BRepOffset_Mode;
 typedef int GeomAbs_JoinType;
 typedef void GProp_GProps;
@@ -99,6 +102,9 @@
 typedef void STEPCAFControl_Writer;
 typedef void ShapeFix_Solid;
 typedef void ShapeUpgrade_UnifySameDomain;
+typedef void ShapeUpgrade_ShapeDivide;
+typedef void ShapeUpgrade_ShapeDivideContinuity;
+typedef void ShapeBuild_ReShape;
 typedef void ShapeExtend_WireData;
 typedef int ShapeExtend_Status;
 typedef void Poly_Triangulation;
@@ -117,15 +123,21 @@
 typedef void BRepAlgoAPI_Fuse;
 typedef void BRepAlgoAPI_Cut;
 typedef void BRepAlgoAPI_Common;
+typedef void BRepAlgoAPI_Section;
+typedef void BRepAlgoAPI_BuilderAlgo;
+typedef void BRepAlgoAPI_BooleanOperation;
 typedef void BOPAlgo_Builder;
 typedef void BOPAlgo_BOP;
+typedef void BOPAlgo_CellsBuilder;
 typedef int BOPAlgo_Operation;
+typedef int BRepBuilderAPI_TransitionMode;
 typedef void IntCurvesFace_ShapeIntersector;
 typedef void GCPnts_AbscissaPoint;
 typedef void Standard_Failure;
 typedef void HS_STANDARD_FAILURE;
 typedef void STD_EXCEPTION;
 typedef void STD_RUNTIME_ERROR;
+
 
 typedef int HSExceptionType;
 
diff --git a/opencascade-hs.cabal b/opencascade-hs.cabal
--- a/opencascade-hs.cabal
+++ b/opencascade-hs.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           opencascade-hs
-version:        0.8.0.0
+version:        0.9.0.0
 synopsis:       Thin Wrapper for the OpenCASCADE CAD Kernel
 description:    Please see the README on GitHub at <https://github.com/joe-warren/opencascade-hs#readme>
 category:       Graphics,FFI
@@ -25,12 +25,16 @@
     cpp/hs_Bnd_OBB.h
     cpp/hs_BOPAlgo_BOP.h
     cpp/hs_BOPAlgo_Builder.h
+    cpp/hs_BOPAlgo_CellsBuilder.h
     cpp/hs_BOPAlgo_Tools.h
     cpp/hs_BRep_Tool.h
     cpp/hs_BRepAdaptor_Curve.h
+    cpp/hs_BRepAlgoAPI_BooleanOperation.h
+    cpp/hs_BRepAlgoAPI_BuilderAlgo.h
     cpp/hs_BRepAlgoAPI_Common.h
     cpp/hs_BRepAlgoAPI_Cut.h
     cpp/hs_BRepAlgoAPI_Fuse.h
+    cpp/hs_BRepAlgoAPI_Section.h
     cpp/hs_BRepBndLib.h
     cpp/hs_BRepBuilderAPI_Copy.h
     cpp/hs_BRepBuilderAPI_GTransform.h
@@ -48,8 +52,10 @@
     cpp/hs_BRepGProp.h
     cpp/hs_BRepLib.h
     cpp/hs_BRepMesh_IncrementalMesh.h
+    cpp/hs_BRepOffsetAPI_MakeOffset.h
     cpp/hs_BRepOffsetAPI_MakeOffsetShape.h
     cpp/hs_BRepOffsetAPI_MakePipe.h
+    cpp/hs_BRepOffsetAPI_MakePipeShell.h
     cpp/hs_BRepOffsetAPI_ThruSections.h
     cpp/hs_BRepPrimAPI_MakeBox.h
     cpp/hs_BRepPrimAPI_MakeCone.h
@@ -58,6 +64,7 @@
     cpp/hs_BRepPrimAPI_MakeRevol.h
     cpp/hs_BRepPrimAPI_MakeSphere.h
     cpp/hs_BRepPrimAPI_MakeTorus.h
+    cpp/hs_BRepTools.h
     cpp/hs_BRepTools_WireExplorer.h
     cpp/hs_Exception.h
     cpp/hs_Font_BRepFont.h
@@ -81,6 +88,7 @@
     cpp/hs_gp_Dir2d.h
     cpp/hs_gp_GTrsf.h
     cpp/hs_gp_Lin.h
+    cpp/hs_gp_Pln.h
     cpp/hs_gp_Pnt.h
     cpp/hs_gp_Pnt2d.h
     cpp/hs_gp_Trsf.h
@@ -107,9 +115,12 @@
     cpp/hs_RWMesh_CafReader.h
     cpp/hs_RWObj_CafReader.h
     cpp/hs_RWObj_CafWriter.h
+    cpp/hs_ShapeBuild_ReShape.h
     cpp/hs_ShapeConstruct_Curve.h
     cpp/hs_ShapeExtend_WireData.h
     cpp/hs_ShapeFix_Solid.h
+    cpp/hs_ShapeUpgrade_ShapeDivide.h
+    cpp/hs_ShapeUpgrade_ShapeDivideContinuity.h
     cpp/hs_ShapeUpgrade_UnifySameDomain.h
     cpp/hs_Standard_Failure.h
     cpp/hs_STEPCAFControl_Writer.h
@@ -154,6 +165,7 @@
       OpenCascade.Bnd.Types
       OpenCascade.BOPAlgo.BOP
       OpenCascade.BOPAlgo.Builder
+      OpenCascade.BOPAlgo.CellsBuilder
       OpenCascade.BOPAlgo.Internal.Destructors
       OpenCascade.BOPAlgo.Operation
       OpenCascade.BOPAlgo.Tools
@@ -164,10 +176,13 @@
       OpenCascade.BRepAdaptor.Internal.Destructors
       OpenCascade.BRepAdaptor.Types
       OpenCascade.BRepAlgoAPI
+      OpenCascade.BRepAlgoAPI.BooleanOperation
+      OpenCascade.BRepAlgoAPI.BuilderAlgo
       OpenCascade.BRepAlgoAPI.Common
       OpenCascade.BRepAlgoAPI.Cut
       OpenCascade.BRepAlgoAPI.Fuse
       OpenCascade.BRepAlgoAPI.Internal.Destructors
+      OpenCascade.BRepAlgoAPI.Section
       OpenCascade.BRepAlgoAPI.Types
       OpenCascade.BRepBndLib
       OpenCascade.BRepBuilderAPI
@@ -184,6 +199,7 @@
       OpenCascade.BRepBuilderAPI.MakeWire
       OpenCascade.BRepBuilderAPI.Sewing
       OpenCascade.BRepBuilderAPI.Transform
+      OpenCascade.BRepBuilderAPI.TransitionMode
       OpenCascade.BRepBuilderAPI.Types
       OpenCascade.BRepBuilderAPI.WireError
       OpenCascade.BRepFilletAPI
@@ -200,8 +216,10 @@
       OpenCascade.BRepOffset.Mode
       OpenCascade.BRepOffsetAPI
       OpenCascade.BRepOffsetAPI.Internal.Destructors
+      OpenCascade.BRepOffsetAPI.MakeOffset
       OpenCascade.BRepOffsetAPI.MakeOffsetShape
       OpenCascade.BRepOffsetAPI.MakePipe
+      OpenCascade.BRepOffsetAPI.MakePipeShell
       OpenCascade.BRepOffsetAPI.ThruSections
       OpenCascade.BRepOffsetAPI.Types
       OpenCascade.BRepPrimAPI
@@ -256,6 +274,7 @@
       OpenCascade.GP.GTrsf
       OpenCascade.GP.Internal.Destructors
       OpenCascade.GP.Lin
+      OpenCascade.GP.Pln
       OpenCascade.GP.Pnt
       OpenCascade.GP.Pnt2d
       OpenCascade.GP.Trsf
@@ -319,6 +338,9 @@
       OpenCascade.RWObj.CafWriter
       OpenCascade.RWObj.Internal.Destructors
       OpenCascade.RWObj.Types
+      OpenCascade.ShapeBuild.Internal.Destructors
+      OpenCascade.ShapeBuild.ReShape
+      OpenCascade.ShapeBuild.Types
       OpenCascade.ShapeConstruct.Curve
       OpenCascade.ShapeConstruct.Internal.Destructors
       OpenCascade.ShapeConstruct.Types
@@ -330,6 +352,8 @@
       OpenCascade.ShapeFix.Solid
       OpenCascade.ShapeFix.Types
       OpenCascade.ShapeUpgrade.Internal.Destructors
+      OpenCascade.ShapeUpgrade.ShapeDivide
+      OpenCascade.ShapeUpgrade.ShapeDivideContinuity
       OpenCascade.ShapeUpgrade.Types
       OpenCascade.ShapeUpgrade.UnifySameDomain
       OpenCascade.Standard.Failure
@@ -420,17 +444,22 @@
   else
     include-dirs:
         /usr/include/opencascade
+        /usr/local/include/opencascade
     cxx-sources:
         cpp/hs_Bnd_Box.cpp
         cpp/hs_Bnd_OBB.cpp
         cpp/hs_BOPAlgo_BOP.cpp
         cpp/hs_BOPAlgo_Builder.cpp
+        cpp/hs_BOPAlgo_CellsBuilder.cpp
         cpp/hs_BOPAlgo_Tools.cpp
         cpp/hs_BRep_Tool.cpp
         cpp/hs_BRepAdaptor_Curve.cpp
+        cpp/hs_BRepAlgoAPI_BooleanOperation.cpp
+        cpp/hs_BRepAlgoAPI_BuilderAlgo.cpp
         cpp/hs_BRepAlgoAPI_Common.cpp
         cpp/hs_BRepAlgoAPI_Cut.cpp
         cpp/hs_BRepAlgoAPI_Fuse.cpp
+        cpp/hs_BRepAlgoAPI_Section.cpp
         cpp/hs_BRepBndLib.cpp
         cpp/hs_BRepBuilderAPI_Copy.cpp
         cpp/hs_BRepBuilderAPI_GTransform.cpp
@@ -448,8 +477,10 @@
         cpp/hs_BRepGProp.cpp
         cpp/hs_BRepLib.cpp
         cpp/hs_BRepMesh_IncrementalMesh.cpp
+        cpp/hs_BRepOffsetAPI_MakeOffset.cpp
         cpp/hs_BRepOffsetAPI_MakeOffsetShape.cpp
         cpp/hs_BRepOffsetAPI_MakePipe.cpp
+        cpp/hs_BRepOffsetAPI_MakePipeShell.cpp
         cpp/hs_BRepOffsetAPI_ThruSections.cpp
         cpp/hs_BRepPrimAPI_MakeBox.cpp
         cpp/hs_BRepPrimAPI_MakeCone.cpp
@@ -458,6 +489,7 @@
         cpp/hs_BRepPrimAPI_MakeRevol.cpp
         cpp/hs_BRepPrimAPI_MakeSphere.cpp
         cpp/hs_BRepPrimAPI_MakeTorus.cpp
+        cpp/hs_BRepTools.cpp
         cpp/hs_BRepTools_WireExplorer.cpp
         cpp/hs_Exception.cpp
         cpp/hs_Font_BRepFont.cpp
@@ -481,6 +513,7 @@
         cpp/hs_gp_Dir2d.cpp
         cpp/hs_gp_GTrsf.cpp
         cpp/hs_gp_Lin.cpp
+        cpp/hs_gp_Pln.cpp
         cpp/hs_gp_Pnt.cpp
         cpp/hs_gp_Pnt2d.cpp
         cpp/hs_gp_Trsf.cpp
@@ -507,9 +540,12 @@
         cpp/hs_RWMesh_CafReader.cpp
         cpp/hs_RWObj_CafReader.cpp
         cpp/hs_RWObj_CafWriter.cpp
+        cpp/hs_ShapeBuild_ReShape.cpp
         cpp/hs_ShapeConstruct_Curve.cpp
         cpp/hs_ShapeExtend_WireData.cpp
         cpp/hs_ShapeFix_Solid.cpp
+        cpp/hs_ShapeUpgrade_ShapeDivide.cpp
+        cpp/hs_ShapeUpgrade_ShapeDivideContinuity.cpp
         cpp/hs_ShapeUpgrade_UnifySameDomain.cpp
         cpp/hs_Standard_Failure.cpp
         cpp/hs_STEPCAFControl_Writer.cpp
@@ -567,3 +603,12 @@
         TKService
         TKShHealing
         TKXSBase
+    if os(linux)
+      extra-lib-dirs:
+          /usr/lib64/opencascade
+          /usr/lib/opencascade
+    if os(darwin) && arch(aarch64)
+      include-dirs:
+          /opt/homebrew/include/opencascade
+      extra-lib-dirs:
+          /opt/homebrew/lib
diff --git a/src/OpenCascade/BOPAlgo/Builder.hs b/src/OpenCascade/BOPAlgo/Builder.hs
--- a/src/OpenCascade/BOPAlgo/Builder.hs
+++ b/src/OpenCascade/BOPAlgo/Builder.hs
@@ -5,6 +5,7 @@
 , addArgument
 , setRunParallel
 , setFuzzyValue
+, setNonDestructive
 , shape
 , perform
 , modified
@@ -44,6 +45,11 @@
 
 setRunParallel :: Ptr Builder -> Bool -> IO ()
 setRunParallel builder = rawSetRunParallel builder . boolToCBool
+
+foreign import capi unsafe "hs_BOPAlgo_Builder.h hs_BOPAlgo_Builder_SetNonDestructive" rawSetNonDestructive :: Ptr Builder -> CBool -> IO ()
+
+setNonDestructive :: Ptr Builder -> Bool -> IO ()
+setNonDestructive builder = rawSetNonDestructive builder . boolToCBool
 
 foreign import capi unsafe "hs_BOPAlgo_Builder.h hs_BOPAlgo_Builder_Shape" rawShape
     :: Ptr Builder
diff --git a/src/OpenCascade/BOPAlgo/CellsBuilder.hs b/src/OpenCascade/BOPAlgo/CellsBuilder.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BOPAlgo/CellsBuilder.hs
@@ -0,0 +1,101 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BOPAlgo.CellsBuilder
+( CellsBuilder
+, new
+, addToResult
+, addAllToResult
+, removeFromResult
+, removeAllFromResult
+, removeInternalBoundaries
+, getAllParts
+, makeContainers
+) where
+
+import OpenCascade.BOPAlgo.Types
+import OpenCascade.BOPAlgo.Internal.Destructors (deleteCellsBuilder)
+import qualified OpenCascade.TopoDS.Types as TopoDS
+import OpenCascade.TopoDS.Internal.Destructors (deleteShape)
+import OpenCascade.Internal.Exception (wrapException)
+import OpenCascade.Internal.Bool (boolToCBool)
+import qualified OpenCascade.NCollection.Types as NCollection
+import Foreign.Ptr (Ptr)
+import Foreign.C (CBool (..), CInt (..))
+import Data.Acquire (Acquire, mkAcquire)
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_new_BOPAlgo_CellsBuilder" rawNew :: IO (Ptr CellsBuilder)
+
+new :: Acquire (Ptr CellsBuilder)
+new = mkAcquire rawNew deleteCellsBuilder
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_AddToResult" rawAddToResult
+    :: Ptr CellsBuilder
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> CInt
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+addToResult :: Ptr CellsBuilder -> Ptr (NCollection.List TopoDS.Shape) -> Ptr (NCollection.List TopoDS.Shape) -> Int -> Bool -> IO ()
+addToResult builder toTake toAvoid material update =
+    wrapException $ rawAddToResult builder toTake toAvoid (fromIntegral material) (boolToCBool update)
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_AddAllToResult" rawAddAllToResult
+    :: Ptr CellsBuilder
+    -> CInt
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+addAllToResult :: Ptr CellsBuilder -> Int -> Bool -> IO ()
+addAllToResult builder material update =
+    wrapException $ rawAddAllToResult builder (fromIntegral material) (boolToCBool update)
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_RemoveFromResult" rawRemoveFromResult
+    :: Ptr CellsBuilder
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+removeFromResult :: Ptr CellsBuilder -> Ptr (NCollection.List TopoDS.Shape) -> Ptr (NCollection.List TopoDS.Shape) -> IO ()
+removeFromResult builder toTake toAvoid = wrapException $ rawRemoveFromResult builder toTake toAvoid
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_RemoveAllFromResult" rawRemoveAllFromResult
+    :: Ptr CellsBuilder
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+removeAllFromResult :: Ptr CellsBuilder -> IO ()
+removeAllFromResult builder = wrapException $ rawRemoveAllFromResult builder
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_RemoveInternalBoundaries" rawRemoveInternalBoundaries
+    :: Ptr CellsBuilder
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+removeInternalBoundaries :: Ptr CellsBuilder -> IO ()
+removeInternalBoundaries builder = wrapException $ rawRemoveInternalBoundaries builder
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_GetAllParts" rawGetAllParts
+    :: Ptr CellsBuilder
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Shape)
+
+getAllParts :: Ptr CellsBuilder -> Acquire (Ptr TopoDS.Shape)
+getAllParts builder = mkAcquire (wrapException $ rawGetAllParts builder) deleteShape
+
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_BOPAlgo_CellsBuilder_MakeContainers" rawMakeContainers
+    :: Ptr CellsBuilder
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+makeContainers :: Ptr CellsBuilder -> IO ()
+makeContainers builder = wrapException $ rawMakeContainers builder
diff --git a/src/OpenCascade/BOPAlgo/Internal/Destructors.hs b/src/OpenCascade/BOPAlgo/Internal/Destructors.hs
--- a/src/OpenCascade/BOPAlgo/Internal/Destructors.hs
+++ b/src/OpenCascade/BOPAlgo/Internal/Destructors.hs
@@ -2,6 +2,7 @@
 module OpenCascade.BOPAlgo.Internal.Destructors 
 ( deleteBuilder
 , deleteBOP
+, deleteCellsBuilder
 ) where
 
 import OpenCascade.BOPAlgo.Types
@@ -9,3 +10,4 @@
 
 foreign import capi unsafe "hs_BOPAlgo_Builder.h hs_delete_BOPAlgo_Builder" deleteBuilder :: Ptr Builder -> IO ()
 foreign import capi unsafe "hs_BOPAlgo_BOP.h hs_delete_BOPAlgo_BOP" deleteBOP :: Ptr BOP -> IO ()
+foreign import capi unsafe "hs_BOPAlgo_CellsBuilder.h hs_delete_BOPAlgo_CellsBuilder" deleteCellsBuilder :: Ptr CellsBuilder -> IO ()
diff --git a/src/OpenCascade/BOPAlgo/Types.hs b/src/OpenCascade/BOPAlgo/Types.hs
--- a/src/OpenCascade/BOPAlgo/Types.hs
+++ b/src/OpenCascade/BOPAlgo/Types.hs
@@ -3,11 +3,14 @@
 module OpenCascade.BOPAlgo.Types
 ( Builder
 , BOP
+, CellsBuilder
 ) where
 
 import qualified OpenCascade.Inheritance as Inheritance
 
 data Builder
 data BOP
+data CellsBuilder
 
 instance Inheritance.SubTypeOf Builder BOP
+instance Inheritance.SubTypeOf Builder CellsBuilder
diff --git a/src/OpenCascade/BRep/Tool.hs b/src/OpenCascade/BRep/Tool.hs
--- a/src/OpenCascade/BRep/Tool.hs
+++ b/src/OpenCascade/BRep/Tool.hs
@@ -5,6 +5,8 @@
 , curveParamLast
 , pnt
 , triangulation
+, degenerated
+, continuity
 ) where
 
 import qualified OpenCascade.Geom as Geom
@@ -18,10 +20,12 @@
 import OpenCascade.Geom.Internal.Destructors (deleteHandleCurve)
 import OpenCascade.GP.Internal.Destructors (deletePnt)
 import OpenCascade.Internal.Exception (wrapException)
+import OpenCascade.Internal.Bool (cBoolToBool)
 import Foreign.Ptr
 import Foreign.C
 import Data.Coerce
 import Data.Acquire (Acquire, mkAcquire)
+import qualified OpenCascade.GeomAbs.Shape as GeomAbs
 
 foreign import capi unsafe "hs_BRep_Tool.h hs_BRep_Tool_curve" rawCurve
     :: Ptr (TopoDS.Edge)
@@ -68,3 +72,25 @@
 
 triangulation :: Ptr TopoDS.Face -> Ptr TopLoc.Location -> Acquire (Ptr (Handle Poly.Triangulation))
 triangulation face loc = mkAcquire (wrapException $ rawTriangulation face loc) deleteHandleTriangulation
+
+
+foreign import capi unsafe "hs_BRep_Tool.h hs_BRep_Tool_degenerated" rawDegenerated
+    :: Ptr (TopoDS.Edge)
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (CBool)
+
+degenerated :: Ptr TopoDS.Edge -> IO Bool
+degenerated edge = cBoolToBool <$> wrapException (rawDegenerated edge)
+
+
+foreign import capi unsafe "hs_BRep_Tool.h hs_BRep_Tool_continuity" rawContinuity
+    :: Ptr (TopoDS.Edge)
+    -> Ptr (TopoDS.Face)
+    -> Ptr (TopoDS.Face)
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (CInt)
+
+continuity :: Ptr TopoDS.Edge -> Ptr TopoDS.Face -> Ptr TopoDS.Face -> IO GeomAbs.Shape
+continuity edge face1 face2 = toEnum . fromIntegral <$> wrapException (rawContinuity edge face1 face2)
diff --git a/src/OpenCascade/BRepAlgoAPI/BooleanOperation.hs b/src/OpenCascade/BRepAlgoAPI/BooleanOperation.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepAlgoAPI/BooleanOperation.hs
@@ -0,0 +1,23 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BRepAlgoAPI.BooleanOperation 
+( BooleanOperation
+, setTools
+) where
+
+import OpenCascade.BRepAlgoAPI.Types (BooleanOperation)
+import Foreign.C (CInt (..))
+import Foreign.Ptr (Ptr)
+import OpenCascade.Internal.Exception(wrapException)
+import qualified OpenCascade.NCollection as NCollection
+import qualified OpenCascade.TopoDS as TopoDS
+
+
+foreign import capi unsafe "hs_BRepAlgoAPI_BooleanOperation.h hs_BRepAlgoAPI_BooleanOperation_setTools" rawSetTools
+    :: Ptr BooleanOperation
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+setTools :: Ptr BooleanOperation -> Ptr (NCollection.List TopoDS.Shape) -> IO ()
+setTools builder arguments = wrapException (rawSetTools builder arguments)
diff --git a/src/OpenCascade/BRepAlgoAPI/BuilderAlgo.hs b/src/OpenCascade/BRepAlgoAPI/BuilderAlgo.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepAlgoAPI/BuilderAlgo.hs
@@ -0,0 +1,33 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BRepAlgoAPI.BuilderAlgo
+( BuilderAlgo
+, setArguments
+, setNonDestructive
+) where
+
+import OpenCascade.BRepAlgoAPI.Types (BuilderAlgo)
+import Foreign.C (CBool (..), CInt (..))
+import Foreign.Ptr (Ptr)
+import OpenCascade.Internal.Bool (boolToCBool)
+import OpenCascade.Internal.Exception(wrapException)
+import qualified OpenCascade.NCollection as NCollection
+import qualified OpenCascade.TopoDS as TopoDS
+
+
+foreign import capi unsafe "hs_BRepAlgoAPI_BuilderAlgo.h hs_BRepAlgoAPI_BuilderAlgo_setNonDestructive" rawSetNonDestructive
+    :: Ptr BuilderAlgo
+    -> CBool
+    -> IO ()
+
+setNonDestructive :: Ptr BuilderAlgo -> Bool -> IO ()
+setNonDestructive builder nonDestructive = rawSetNonDestructive builder (boolToCBool nonDestructive)
+
+foreign import capi unsafe "hs_BRepAlgoAPI_BuilderAlgo.h hs_BRepAlgoAPI_BuilderAlgo_setArguments" rawSetArguments
+    :: Ptr BuilderAlgo
+    -> Ptr (NCollection.List TopoDS.Shape)
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+setArguments :: Ptr BuilderAlgo -> Ptr (NCollection.List TopoDS.Shape) -> IO ()
+setArguments builder arguments = wrapException (rawSetArguments builder arguments)
diff --git a/src/OpenCascade/BRepAlgoAPI/Common.hs b/src/OpenCascade/BRepAlgoAPI/Common.hs
--- a/src/OpenCascade/BRepAlgoAPI/Common.hs
+++ b/src/OpenCascade/BRepAlgoAPI/Common.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepAlgoAPI.Common
 ( Common
+, new
 , fromShapes
 ) where
 
@@ -11,6 +12,12 @@
 import Foreign.C (CInt)
 import Foreign.Ptr
 import Data.Acquire
+
+foreign import capi unsafe "hs_BRepAlgoAPI_Common.h hs_new_BRepAlgoAPI_Common" rawNew
+    :: IO (Ptr Common)
+
+new :: Acquire (Ptr Common)
+new = mkAcquire rawNew deleteCommon
 
 foreign import capi unsafe "hs_BRepAlgoAPI_Common.h hs_new_BRepAlgoAPI_Common_fromShapes" rawFromShapes
     :: Ptr TopoDS.Shape
diff --git a/src/OpenCascade/BRepAlgoAPI/Cut.hs b/src/OpenCascade/BRepAlgoAPI/Cut.hs
--- a/src/OpenCascade/BRepAlgoAPI/Cut.hs
+++ b/src/OpenCascade/BRepAlgoAPI/Cut.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepAlgoAPI.Cut
 ( Cut
+, new
 , fromShapes
 ) where
 
@@ -11,6 +12,12 @@
 import Foreign.C (CInt)
 import Foreign.Ptr
 import Data.Acquire
+
+foreign import capi unsafe "hs_BRepAlgoAPI_Cut.h hs_new_BRepAlgoAPI_Cut" rawNew
+    :: IO (Ptr Cut)
+
+new :: Acquire (Ptr Cut)
+new = mkAcquire rawNew deleteCut
 
 foreign import capi unsafe "hs_BRepAlgoAPI_Cut.h hs_new_BRepAlgoAPI_Cut_fromShapes" rawFromShapes
     :: Ptr TopoDS.Shape
diff --git a/src/OpenCascade/BRepAlgoAPI/Fuse.hs b/src/OpenCascade/BRepAlgoAPI/Fuse.hs
--- a/src/OpenCascade/BRepAlgoAPI/Fuse.hs
+++ b/src/OpenCascade/BRepAlgoAPI/Fuse.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepAlgoAPI.Fuse
 ( Fuse
+, new
 , fromShapes
 ) where
 
@@ -11,6 +12,12 @@
 import Foreign.C (CInt)
 import Foreign.Ptr
 import Data.Acquire
+
+foreign import capi unsafe "hs_BRepAlgoAPI_Fuse.h hs_new_BRepAlgoAPI_Fuse" rawNew
+    :: IO (Ptr Fuse)
+
+new :: Acquire (Ptr Fuse)
+new = mkAcquire rawNew deleteFuse
 
 foreign import capi unsafe "hs_BRepAlgoAPI_Fuse.h hs_new_BRepAlgoAPI_Fuse_fromShapes" rawFromShapes
     :: Ptr TopoDS.Shape
diff --git a/src/OpenCascade/BRepAlgoAPI/Internal/Destructors.hs b/src/OpenCascade/BRepAlgoAPI/Internal/Destructors.hs
--- a/src/OpenCascade/BRepAlgoAPI/Internal/Destructors.hs
+++ b/src/OpenCascade/BRepAlgoAPI/Internal/Destructors.hs
@@ -3,6 +3,7 @@
 ( deleteFuse
 , deleteCut
 , deleteCommon
+, deleteSection
 ) where
 
 import OpenCascade.BRepAlgoAPI.Types
@@ -11,3 +12,4 @@
 foreign import capi unsafe "hs_BRepAlgoAPI_Fuse.h hs_delete_BRepAlgoAPI_Fuse" deleteFuse :: Ptr Fuse -> IO ()
 foreign import capi unsafe "hs_BRepAlgoAPI_Cut.h hs_delete_BRepAlgoAPI_Cut" deleteCut :: Ptr Cut -> IO ()
 foreign import capi unsafe "hs_BRepAlgoAPI_Common.h hs_delete_BRepAlgoAPI_Common" deleteCommon :: Ptr Common -> IO ()
+foreign import capi unsafe "hs_BRepAlgoAPI_Section.h hs_delete_BRepAlgoAPI_Section" deleteSection :: Ptr Section -> IO ()
diff --git a/src/OpenCascade/BRepAlgoAPI/Section.hs b/src/OpenCascade/BRepAlgoAPI/Section.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepAlgoAPI/Section.hs
@@ -0,0 +1,23 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BRepAlgoAPI.Section
+( Section
+, fromShapes
+) where
+
+import OpenCascade.BRepAlgoAPI.Types (Section)
+import OpenCascade.BRepAlgoAPI.Internal.Destructors (deleteSection)
+import qualified OpenCascade.TopoDS as TopoDS
+import OpenCascade.Internal.Exception (wrapException)
+import Foreign.C (CInt)
+import Foreign.Ptr
+import Data.Acquire
+
+foreign import capi unsafe "hs_BRepAlgoAPI_Section.h hs_new_BRepAlgoAPI_Section_fromShapes" rawFromShapes
+    :: Ptr TopoDS.Shape
+    -> Ptr TopoDS.Shape
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr Section)
+
+fromShapes :: Ptr TopoDS.Shape -> Ptr TopoDS.Shape -> Acquire (Ptr Section)
+fromShapes a b = mkAcquire (wrapException $ rawFromShapes a b) deleteSection
diff --git a/src/OpenCascade/BRepAlgoAPI/Types.hs b/src/OpenCascade/BRepAlgoAPI/Types.hs
--- a/src/OpenCascade/BRepAlgoAPI/Types.hs
+++ b/src/OpenCascade/BRepAlgoAPI/Types.hs
@@ -4,6 +4,9 @@
 ( Fuse
 , Cut
 , Common
+, Section
+, BuilderAlgo
+, BooleanOperation
 ) where
 
 import qualified OpenCascade.Inheritance as Inheritance
@@ -12,7 +15,19 @@
 data Fuse
 data Cut
 data Common
+data Section
+data BooleanOperation
+data BuilderAlgo
 
 instance Inheritance.SubTypeOf MakeShape Fuse
 instance Inheritance.SubTypeOf MakeShape Cut
 instance Inheritance.SubTypeOf MakeShape Common
+instance Inheritance.SubTypeOf MakeShape Section
+instance Inheritance.SubTypeOf BooleanOperation Fuse
+instance Inheritance.SubTypeOf BooleanOperation Cut
+instance Inheritance.SubTypeOf BooleanOperation Common
+instance Inheritance.SubTypeOf BooleanOperation Section
+instance Inheritance.SubTypeOf BuilderAlgo Fuse
+instance Inheritance.SubTypeOf BuilderAlgo Cut
+instance Inheritance.SubTypeOf BuilderAlgo Common
+instance Inheritance.SubTypeOf BuilderAlgo Section
diff --git a/src/OpenCascade/BRepBuilderAPI/Copy.hs b/src/OpenCascade/BRepBuilderAPI/Copy.hs
--- a/src/OpenCascade/BRepBuilderAPI/Copy.hs
+++ b/src/OpenCascade/BRepBuilderAPI/Copy.hs
@@ -20,4 +20,4 @@
     -> IO (Ptr TopoDS.Shape)
 
 copy :: Ptr TopoDS.Shape -> Bool -> Bool -> Acquire (Ptr TopoDS.Shape)
-copy shape copyGeom copyMesh = mkAcquire (wrapException $ rawCopy shape (boolToCBool copyMesh) (boolToCBool copyGeom)) TopoDS.Destructors.deleteShape
+copy shape copyGeom copyMesh = mkAcquire (wrapException $ rawCopy shape (boolToCBool copyGeom) (boolToCBool copyMesh)) TopoDS.Destructors.deleteShape
diff --git a/src/OpenCascade/BRepBuilderAPI/MakeFace.hs b/src/OpenCascade/BRepBuilderAPI/MakeFace.hs
--- a/src/OpenCascade/BRepBuilderAPI/MakeFace.hs
+++ b/src/OpenCascade/BRepBuilderAPI/MakeFace.hs
@@ -11,6 +11,8 @@
 , add
 , isDone
 , error
+, fromPln
+, fromPlnAndWire
 ) where
 
 import Prelude hiding (error)
@@ -27,6 +29,7 @@
 import Foreign.C
 import Foreign.Ptr
 import Data.Acquire 
+import qualified OpenCascade.GP as GP
 
 -- new
 
@@ -98,6 +101,30 @@
 
 fromWire :: Ptr TopoDS.Wire -> Bool -> Acquire (Ptr MakeFace)
 fromWire wire onlyPlane = mkAcquire (wrapException $ rawFromWire wire (boolToCBool onlyPlane)) deleteMakeFace
+
+-- fromPln
+
+foreign import capi unsafe "hs_BRepBuilderAPI_MakeFace.h hs_new_BRepBuilderAPI_MakeFace_fromPln" rawFromPln
+    :: Ptr GP.Pln
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr MakeFace)
+
+fromPln :: Ptr GP.Pln -> Acquire (Ptr MakeFace)
+fromPln pln = mkAcquire (wrapException $ rawFromPln pln) deleteMakeFace
+
+-- fromPlnAndWire
+
+foreign import capi unsafe "hs_BRepBuilderAPI_MakeFace.h hs_new_BRepBuilderAPI_MakeFace_fromPlnAndWire" rawFromPlnAndWire
+    :: Ptr GP.Pln
+    -> Ptr TopoDS.Wire
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr MakeFace)
+
+fromPlnAndWire :: Ptr GP.Pln -> Ptr TopoDS.Wire -> Bool -> Acquire (Ptr MakeFace)
+fromPlnAndWire pln wire inside = mkAcquire (wrapException $ rawFromPlnAndWire pln wire (boolToCBool inside)) deleteMakeFace
 
 -- add
 foreign import capi unsafe "hs_BRepBuilderAPI_MakeFace.h hs_BRepBuilderAPI_MakeFace_Add" rawAdd
diff --git a/src/OpenCascade/BRepBuilderAPI/MakeShape.hs b/src/OpenCascade/BRepBuilderAPI/MakeShape.hs
--- a/src/OpenCascade/BRepBuilderAPI/MakeShape.hs
+++ b/src/OpenCascade/BRepBuilderAPI/MakeShape.hs
@@ -6,6 +6,7 @@
 , modified
 , generated
 , isDeleted
+, isDone
 ) where
 import OpenCascade.BRepBuilderAPI.Types
 import qualified OpenCascade.TopoDS as TopoDS
@@ -65,3 +66,11 @@
 
 isDeleted :: Ptr MakeShape -> Ptr TopoDS.Shape -> IO Bool
 isDeleted builder s = cBoolToBool <$> wrapException (rawIsDeleted builder s)
+
+
+foreign import capi unsafe "hs_BRepBuilderAPI_MakeShape.h hs_BRepBuilderAPI_MakeShape_isDone" rawIsDone
+    :: Ptr MakeShape
+    -> IO CBool
+
+isDone :: Ptr MakeShape -> IO Bool
+isDone builder = cBoolToBool <$> rawIsDone builder
diff --git a/src/OpenCascade/BRepBuilderAPI/TransitionMode.hs b/src/OpenCascade/BRepBuilderAPI/TransitionMode.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepBuilderAPI/TransitionMode.hs
@@ -0,0 +1,7 @@
+module OpenCascade.BRepBuilderAPI.TransitionMode
+( TransitionMode (..)
+) where
+
+-- this should match the enumeration in BRepBuilderAPI_TransitionMode
+data TransitionMode = Transformed | RightCorner | RoundCorner
+    deriving (Show, Eq, Ord, Enum)
diff --git a/src/OpenCascade/BRepGProp.hs b/src/OpenCascade/BRepGProp.hs
--- a/src/OpenCascade/BRepGProp.hs
+++ b/src/OpenCascade/BRepGProp.hs
@@ -1,16 +1,19 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepGProp 
 ( volumeProperties
+, volumePropertiesWithEps
 , surfaceProperties
+, surfacePropertiesWithEps
 , linearProperties
 ) where
 
 import OpenCascade.TopoDS.Types (Shape)
 import OpenCascade.GProp.Types (GProps)
 import Foreign.Ptr (Ptr)
-import Foreign.C (CBool (..), CInt)
+import Foreign.C (CBool (..), CInt, CDouble (..))
 import OpenCascade.Internal.Bool (boolToCBool)
 import OpenCascade.Internal.Exception (wrapException)
+import Data.Coerce (coerce)
 
 foreign import capi unsafe "hs_BRepGProp.h hs_BRepGProp_VolumeProperties" rawVolumeProperties
     :: Ptr Shape
@@ -26,6 +29,20 @@
 volumeProperties shape props onlyClosed skipShared useTriangulation =
     wrapException $ rawVolumeProperties shape props (boolToCBool onlyClosed) (boolToCBool skipShared) (boolToCBool useTriangulation)
 
+foreign import capi unsafe "hs_BRepGProp.h hs_BRepGProp_VolumePropertiesWithEps" rawVolumePropertiesWithEps
+    :: Ptr Shape
+    -> Ptr GProps
+    -> CDouble
+    -> CBool
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+volumePropertiesWithEps :: Ptr Shape -> Ptr GProps -> Double -> Bool -> Bool -> IO ()
+volumePropertiesWithEps shape props eps onlyClosed skipShared =
+    wrapException $ rawVolumePropertiesWithEps shape props (coerce eps) (boolToCBool onlyClosed) (boolToCBool skipShared) 
+
 foreign import capi unsafe "hs_BRepGProp.h hs_BRepGProp_SurfaceProperties" rawSurfaceProperties
     :: Ptr Shape
     -> Ptr GProps
@@ -39,6 +56,18 @@
 surfaceProperties shape props skipShared useTriangulation =
     wrapException $ rawSurfaceProperties shape props (boolToCBool skipShared) (boolToCBool useTriangulation)
 
+foreign import capi unsafe "hs_BRepGProp.h hs_BRepGProp_SurfacePropertiesWithEps" rawSurfacePropertiesWithEps
+    :: Ptr Shape
+    -> Ptr GProps
+    -> CDouble
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+surfacePropertiesWithEps :: Ptr Shape -> Ptr GProps -> Double -> Bool -> IO ()
+surfacePropertiesWithEps shape props eps skipShared =
+    wrapException $ rawSurfacePropertiesWithEps shape props (coerce eps) (boolToCBool skipShared)
 
 foreign import capi unsafe "hs_BRepGProp.h hs_BRepGProp_LinearProperties" rawLinearProperties
     :: Ptr Shape
diff --git a/src/OpenCascade/BRepLib.hs b/src/OpenCascade/BRepLib.hs
--- a/src/OpenCascade/BRepLib.hs
+++ b/src/OpenCascade/BRepLib.hs
@@ -2,28 +2,29 @@
 module OpenCascade.BRepLib 
 ( orientClosedSolid
 , buildCurve3d
+, encodeRegularity
 ) where 
 
-import OpenCascade.TopoDS.Types (Solid, Edge)
 import qualified OpenCascade.GeomAbs.Shape as GeomAbs.Shape
 import Foreign.Ptr (Ptr)
 import Foreign.C (CBool (..), CDouble (..), CInt (..))
 import OpenCascade.Internal.Bool (cBoolToBool)
 import OpenCascade.Internal.Exception (wrapException)
 import Data.Coerce (coerce)
+import qualified OpenCascade.TopoDS as TopoDS
 
 foreign import capi unsafe "hs_BRepLib.h hs_BRepLib_orientClosedSolid" rawOrientClosedSolid
-    :: Ptr Solid
+    :: Ptr TopoDS.Solid
     -> Ptr CInt
     -> Ptr (Ptr ())
     -> IO (CBool)
 
-orientClosedSolid :: Ptr Solid -> IO Bool
+orientClosedSolid :: Ptr TopoDS.Solid -> IO Bool
 orientClosedSolid s = cBoolToBool <$> wrapException (rawOrientClosedSolid s)
 
 
 foreign import capi unsafe "hs_BRepLib.h hs_BRepLib_buildCurve3d" rawBuildCurve3d
-    :: Ptr Edge
+    :: Ptr TopoDS.Edge
     -> CDouble
     -> CInt
     -> CInt
@@ -32,7 +33,17 @@
     -> Ptr (Ptr ())
     -> IO CBool
 
-buildCurve3d :: Ptr Edge -> Double -> GeomAbs.Shape.Shape -> Int -> Int -> IO Bool
+buildCurve3d :: Ptr TopoDS.Edge -> Double -> GeomAbs.Shape.Shape -> Int -> Int -> IO Bool
 buildCurve3d edge tolerance continuity maxDegree maxSegment =
     cBoolToBool <$> wrapException (rawBuildCurve3d edge (coerce tolerance) (fromIntegral . fromEnum $ continuity) (fromIntegral maxDegree) (fromIntegral maxSegment))
 
+
+foreign import capi unsafe "hs_BRepLib.h hs_BRepLib_encodeRegularity" rawEncodeRegularity
+    :: Ptr TopoDS.Shape
+    -> CDouble
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+encodeRegularity :: Ptr TopoDS.Shape -> Double -> IO ()
+encodeRegularity s angularTolerance = wrapException (rawEncodeRegularity s (coerce angularTolerance))
diff --git a/src/OpenCascade/BRepOffsetAPI/Internal/Destructors.hs b/src/OpenCascade/BRepOffsetAPI/Internal/Destructors.hs
--- a/src/OpenCascade/BRepOffsetAPI/Internal/Destructors.hs
+++ b/src/OpenCascade/BRepOffsetAPI/Internal/Destructors.hs
@@ -1,6 +1,8 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepOffsetAPI.Internal.Destructors
 ( deleteMakePipe
+, deleteMakePipeShell
+, deleteMakeOffset
 , deleteMakeOffsetShape
 , deleteThruSections
 ) where
@@ -10,5 +12,7 @@
 import Foreign.Ptr
 
 foreign import capi unsafe "hs_BRepOffsetAPI_MakePipe.h hs_delete_BRepOffsetAPI_MakePipe" deleteMakePipe :: Ptr MakePipe -> IO ()
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_delete_BRepOffsetAPI_MakePipeShell" deleteMakePipeShell :: Ptr MakePipeShell -> IO ()
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_delete_BRepOffsetAPI_MakeOffset" deleteMakeOffset :: Ptr MakeOffset -> IO ()
 foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffsetShape.h hs_delete_BRepOffsetAPI_MakeOffsetShape" deleteMakeOffsetShape :: Ptr MakeOffsetShape -> IO ()
 foreign import capi unsafe "hs_BRepOffsetAPI_ThruSections.h hs_delete_BRepOffsetAPI_ThruSections" deleteThruSections :: Ptr ThruSections -> IO ()
diff --git a/src/OpenCascade/BRepOffsetAPI/MakeOffset.hs b/src/OpenCascade/BRepOffsetAPI/MakeOffset.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepOffsetAPI/MakeOffset.hs
@@ -0,0 +1,85 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BRepOffsetAPI.MakeOffset
+( MakeOffset
+, new
+, fromFace
+, init
+, addWire
+, perform
+) where
+
+import Prelude hiding (init)
+import OpenCascade.BRepOffsetAPI.Types (MakeOffset)
+import Data.Acquire
+import OpenCascade.BRepOffsetAPI.Internal.Destructors (deleteMakeOffset)
+import Foreign (Ptr)
+import qualified OpenCascade.TopoDS as TopoDS
+import Foreign.C
+import Data.Coerce (coerce)
+import qualified OpenCascade.GeomAbs.JoinType as GeomAbs.JoinType
+import OpenCascade.Internal.Bool (boolToCBool)
+import OpenCascade.Internal.Exception (wrapException)
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_new_BRepOffsetAPI_MakeOffset" rawNew :: IO (Ptr MakeOffset)
+
+new :: Acquire (Ptr MakeOffset)
+new = mkAcquire rawNew deleteMakeOffset
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_new_BRepOffsetAPI_MakeOffset_fromFace" rawFromFace 
+    :: Ptr TopoDS.Face 
+    -> CInt
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr MakeOffset)
+
+fromFace :: Ptr TopoDS.Face -> GeomAbs.JoinType.JoinType -> Bool -> Acquire (Ptr MakeOffset)
+fromFace face join isOpen = 
+    mkAcquire (
+        wrapException (
+            rawFromFace face (fromIntegral $ fromEnum join) (boolToCBool isOpen)
+        )
+    ) 
+    deleteMakeOffset
+
+    
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_BRepOffsetAPI_MakeOffset_Init" rawInit 
+    :: Ptr MakeOffset
+    -> Ptr TopoDS.Face 
+    -> CInt
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+init :: Ptr MakeOffset -> Ptr TopoDS.Face -> GeomAbs.JoinType.JoinType -> Bool -> IO ()
+init builder face join isOpen = 
+        wrapException (
+            rawInit builder face (fromIntegral $ fromEnum join) (boolToCBool isOpen)
+        )
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_BRepOffsetAPI_MakeOffset_AddWire" rawAddWire
+    :: Ptr MakeOffset
+    -> Ptr TopoDS.Wire
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+addWire :: Ptr MakeOffset -> Ptr TopoDS.Wire -> IO ()
+addWire builder wire = wrapException (rawAddWire builder wire)
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakeOffset.h hs_BRepOffsetAPI_MakeOffset_Perform" rawPerform
+    :: Ptr MakeOffset
+    -> CDouble
+    -> CDouble
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+perform :: Ptr MakeOffset -> Double -> Double -> IO ()
+perform builder amount alt = 
+        wrapException (
+            (coerce rawPerform) builder amount alt
+        )
+
+
diff --git a/src/OpenCascade/BRepOffsetAPI/MakePipeShell.hs b/src/OpenCascade/BRepOffsetAPI/MakePipeShell.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/BRepOffsetAPI/MakePipeShell.hs
@@ -0,0 +1,54 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.BRepOffsetAPI.MakePipeShell
+( MakePipeShell
+, new
+, setModeFrenet
+, setDiscreteMode
+, setTransitionMode
+, add
+, makeSolid
+, isDone
+) where
+
+import OpenCascade.BRepOffsetAPI.Types (MakePipeShell)
+import OpenCascade.BRepOffsetAPI.Internal.Destructors (deleteMakePipeShell)
+import qualified OpenCascade.BRepBuilderAPI.TransitionMode as BRepBuilderAPI.TransitionMode
+import qualified OpenCascade.TopoDS as TopoDS
+import OpenCascade.Internal.Bool (boolToCBool, cBoolToBool)
+import OpenCascade.Internal.Exception (wrapException)
+import Foreign.Ptr
+import Foreign.C (CBool (..), CInt (..))
+import Data.Acquire
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_new_BRepOffsetAPI_MakePipeShell" rawNew :: Ptr TopoDS.Wire -> Ptr CInt -> Ptr (Ptr ()) -> IO (Ptr MakePipeShell)
+
+new :: Ptr TopoDS.Wire -> Acquire (Ptr MakePipeShell)
+new spine = mkAcquire (wrapException $ rawNew spine) deleteMakePipeShell
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_setModeFrenet" rawSetModeFrenet :: Ptr MakePipeShell -> CBool -> IO ()
+
+setModeFrenet :: Ptr MakePipeShell -> Bool -> IO ()
+setModeFrenet builder isFrenet = rawSetModeFrenet builder (boolToCBool isFrenet)
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_setDiscreteMode" setDiscreteMode :: Ptr MakePipeShell -> IO ()
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_add" rawAdd :: Ptr MakePipeShell -> Ptr TopoDS.Wire -> CBool -> CBool -> Ptr CInt -> Ptr (Ptr ()) -> IO ()
+
+add :: Ptr MakePipeShell -> Ptr TopoDS.Wire -> Bool -> Bool -> IO ()
+add builder profile withContact withCorrection =
+    wrapException $ rawAdd builder profile (boolToCBool withContact) (boolToCBool withCorrection)
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_setTransitionMode" rawSetTransitionMode :: Ptr MakePipeShell -> CInt -> Ptr CInt -> Ptr (Ptr ()) -> IO ()
+
+setTransitionMode :: Ptr MakePipeShell -> BRepBuilderAPI.TransitionMode.TransitionMode -> IO ()
+setTransitionMode builder mode = wrapException (rawSetTransitionMode builder (fromIntegral . fromEnum $ mode))
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_makeSolid" rawMakeSolid :: Ptr MakePipeShell -> Ptr CInt -> Ptr (Ptr ()) -> IO CBool
+
+makeSolid :: Ptr MakePipeShell -> IO Bool
+makeSolid builder = cBoolToBool <$> wrapException (rawMakeSolid builder)
+
+foreign import capi unsafe "hs_BRepOffsetAPI_MakePipeShell.h hs_BRepOffsetAPI_MakePipeShell_isDone" rawIsDone :: Ptr MakePipeShell -> IO CBool
+
+isDone :: Ptr MakePipeShell -> IO Bool
+isDone = fmap cBoolToBool . rawIsDone
diff --git a/src/OpenCascade/BRepOffsetAPI/Types.hs b/src/OpenCascade/BRepOffsetAPI/Types.hs
--- a/src/OpenCascade/BRepOffsetAPI/Types.hs
+++ b/src/OpenCascade/BRepOffsetAPI/Types.hs
@@ -2,6 +2,8 @@
 {-# LANGUAGE EmptyDataDecls #-}
 module OpenCascade.BRepOffsetAPI.Types
 ( MakePipe
+, MakePipeShell
+, MakeOffset
 , MakeOffsetShape
 , ThruSections
 ) where
@@ -10,9 +12,13 @@
 import OpenCascade.BRepBuilderAPI.MakeShape (MakeShape)
 
 data MakePipe
+data MakePipeShell
+data MakeOffset
 data MakeOffsetShape
 data ThruSections
 
 instance Inheritance.SubTypeOf MakeShape MakePipe
+instance Inheritance.SubTypeOf MakeShape MakePipeShell
+instance Inheritance.SubTypeOf MakeShape MakeOffset
 instance Inheritance.SubTypeOf MakeShape MakeOffsetShape
 instance Inheritance.SubTypeOf MakeShape ThruSections
diff --git a/src/OpenCascade/BRepPrimAPI/MakeRevol.hs b/src/OpenCascade/BRepPrimAPI/MakeRevol.hs
--- a/src/OpenCascade/BRepPrimAPI/MakeRevol.hs
+++ b/src/OpenCascade/BRepPrimAPI/MakeRevol.hs
@@ -2,6 +2,7 @@
 module OpenCascade.BRepPrimAPI.MakeRevol 
 ( MakeRevol
 , fromShapeAndAx1
+, fromShapeAx1AndAngle
 ) where
 
 import OpenCascade.BRepPrimAPI.Types (MakeRevol)
@@ -14,6 +15,7 @@
 import Foreign.C
 import Foreign.Ptr
 import Data.Acquire
+import Data.Coerce (coerce)
 
 foreign import capi unsafe "hs_BRepPrimAPI_MakeRevol.h hs_new_BRepPrimAPI_MakeRevol_fromShapeAndAx1" rawFromShapeAndAx1
     :: Ptr TopoDS.Shape
@@ -25,3 +27,25 @@
 
 fromShapeAndAx1 :: Ptr TopoDS.Shape -> Ptr GP.Ax1 -> Bool -> Acquire (Ptr MakeRevol)
 fromShapeAndAx1 shape axis copy = mkAcquire (wrapException $ rawFromShapeAndAx1 shape axis (boolToCBool copy)) deleteMakeRevol
+
+foreign import capi unsafe "hs_BRepPrimAPI_MakeRevol.h hs_new_BRepPrimAPI_MakeRevol_fromShapeAx1AndAngle" rawFromShapeAndAx1AndAngle
+    :: Ptr TopoDS.Shape
+    -> Ptr GP.Ax1
+    -> CDouble
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr MakeRevol)
+
+fromShapeAx1AndAngle :: Ptr TopoDS.Shape -> Ptr GP.Ax1 -> Double -> Bool -> Acquire (Ptr MakeRevol)
+fromShapeAx1AndAngle shape axis angle copy = 
+    mkAcquire 
+        (wrapException $ 
+            rawFromShapeAndAx1AndAngle 
+                shape 
+                axis 
+                (coerce angle) 
+                (boolToCBool copy)
+        )
+        deleteMakeRevol
+
diff --git a/src/OpenCascade/BRepTools.hs b/src/OpenCascade/BRepTools.hs
--- a/src/OpenCascade/BRepTools.hs
+++ b/src/OpenCascade/BRepTools.hs
@@ -1,5 +1,35 @@
+{-# LANGUAGE CApiFFI #-}
 module OpenCascade.BRepTools
 ( module OpenCascade.BRepTools.Types
+, outerWire
+, clean
 ) where
 
+import Data.Acquire (Acquire, mkAcquire)
+import qualified OpenCascade.TopoDS as TopoDS
+import OpenCascade.TopoDS.Internal.Destructors (deleteShape)
 import OpenCascade.BRepTools.Types
+import Foreign.Ptr (Ptr)
+import Foreign.C (CBool (..), CInt (..))
+import OpenCascade.Inheritance (upcast)
+import OpenCascade.Internal.Exception (wrapException)
+import OpenCascade.Internal.Bool (boolToCBool)
+
+foreign import capi unsafe "hs_BRepTools.h hs_BRepTools_OuterWire" rawOuterWire
+    :: Ptr TopoDS.Face
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Wire)
+
+outerWire :: Ptr TopoDS.Face -> Acquire (Ptr TopoDS.Wire)
+outerWire face = mkAcquire (wrapException (rawOuterWire face)) (deleteShape . upcast)
+
+foreign import capi unsafe "hs_BRepTools.h hs_BRepTools_Clean" rawClean
+    :: Ptr TopoDS.Shape
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO ()
+
+clean :: Ptr TopoDS.Shape -> Bool -> IO ()
+clean shape force = wrapException (rawClean shape (boolToCBool force))
diff --git a/src/OpenCascade/Bnd/Box.hs b/src/OpenCascade/Bnd/Box.hs
--- a/src/OpenCascade/Bnd/Box.hs
+++ b/src/OpenCascade/Bnd/Box.hs
@@ -2,6 +2,7 @@
 module OpenCascade.Bnd.Box
 ( Box
 , new
+, isVoid
 , cornerMin
 , cornerMax
 ) where
@@ -11,14 +12,24 @@
 import OpenCascade.GP.Types (Pnt)
 import OpenCascade.GP.Internal.Destructors (deletePnt)
 import OpenCascade.Internal.Exception (wrapException)
+import OpenCascade.Internal.Bool (cBoolToBool)
 import Data.Acquire (Acquire, mkAcquire)
-import Foreign.C (CInt)
+import Foreign.C (CInt, CBool (..))
 import Foreign.Ptr (Ptr)
 
 foreign import capi unsafe "hs_Bnd_Box.h hs_new_Bnd_Box" rawNew ::  IO (Ptr Box)
 
 new :: Acquire (Ptr Box)
 new = mkAcquire rawNew deleteBox
+
+foreign import capi unsafe "hs_Bnd_Box.h hs_Bnd_Box_isVoid" rawIsVoid
+    :: Ptr Box
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO CBool
+
+isVoid :: Ptr Box -> IO Bool
+isVoid box = cBoolToBool <$> wrapException (rawIsVoid box)  
 
 foreign import capi unsafe "hs_Bnd_Box.h hs_Bnd_Box_cornerMin" rawCornerMin
     :: Ptr Box
diff --git a/src/OpenCascade/Font/FontAspect.hs b/src/OpenCascade/Font/FontAspect.hs
--- a/src/OpenCascade/Font/FontAspect.hs
+++ b/src/OpenCascade/Font/FontAspect.hs
@@ -2,4 +2,25 @@
 ( FontAspect (..)
 ) where
 
-data FontAspect = Undefined | Regular | Bold | Italic | BoldItalic deriving (Enum, Show)
+data FontAspect = Undefined | Regular | Bold | Italic | BoldItalic deriving (Eq, Ord, Show, Bounded)
+
+-- this can't derive Enum, because FontAspect_Undefined is defined as -1
+instance Enum FontAspect where
+    fromEnum Undefined = -1
+    fromEnum Regular = 0
+    fromEnum Bold = 1
+    fromEnum Italic = 2
+    fromEnum BoldItalic = 3
+    toEnum (-1) = Undefined
+    toEnum 0 = Regular
+    toEnum 1 = Bold
+    toEnum 2 = Italic
+    toEnum 3 = BoldItalic
+    toEnum _ = error "toEnum: out of range for FontAspect"
+    enumFrom x = enumFromTo x maxBound
+    enumFromThen x y = 
+        enumFromThenTo x y (
+            if fromEnum y >= fromEnum x 
+                then maxBound 
+                else minBound
+            )
diff --git a/src/OpenCascade/GP/GTrsf.hs b/src/OpenCascade/GP/GTrsf.hs
--- a/src/OpenCascade/GP/GTrsf.hs
+++ b/src/OpenCascade/GP/GTrsf.hs
@@ -4,11 +4,13 @@
 , new
 , setValue
 , setForm
+, isNegative
 ) where
 
 import OpenCascade.GP.Types
 import OpenCascade.GP.Internal.Destructors
 import OpenCascade.Internal.Exception (wrapException)
+import OpenCascade.Internal.Bool (cBoolToBool)
 import Foreign.C
 import Foreign.Ptr
 import Data.Coerce (coerce)
@@ -28,3 +30,9 @@
 
 setForm :: Ptr GTrsf -> IO ()
 setForm trsf = wrapException $ rawSetForm trsf
+
+
+foreign import capi unsafe "hs_gp_GTrsf.h hs_gp_GTrsf_isNegative" rawIsNegative :: Ptr GTrsf -> Ptr CInt -> Ptr (Ptr ()) -> IO (CBool)
+
+isNegative :: Ptr GTrsf -> IO Bool
+isNegative gtrsf = fmap cBoolToBool . wrapException $ rawIsNegative gtrsf
diff --git a/src/OpenCascade/GP/Internal/Destructors.hs b/src/OpenCascade/GP/Internal/Destructors.hs
--- a/src/OpenCascade/GP/Internal/Destructors.hs
+++ b/src/OpenCascade/GP/Internal/Destructors.hs
@@ -14,6 +14,7 @@
 , deleteTrsf2d
 , deleteGTrsf
 , deleteLin
+, deletePln
 , deleteXYZ
 ) where
 
@@ -37,3 +38,4 @@
 foreign import capi unsafe "hs_gp_XYZ.h hs_delete_gp_XYZ" deleteXYZ :: Ptr XYZ -> IO ()
 
 foreign import capi unsafe "hs_gp_Lin.h hs_delete_gp_Lin" deleteLin :: Ptr Lin -> IO ()
+foreign import capi unsafe "hs_gp_Pln.h hs_delete_gp_Pln" deletePln :: Ptr Pln -> IO ()
diff --git a/src/OpenCascade/GP/Lin.hs b/src/OpenCascade/GP/Lin.hs
--- a/src/OpenCascade/GP/Lin.hs
+++ b/src/OpenCascade/GP/Lin.hs
@@ -2,13 +2,48 @@
 module OpenCascade.GP.Lin
 ( Lin
 , new
+, fromAx1
 , location
 , direction
+, position
+, setLocation
+, setDirection
+, setPosition
+, reverse
+, reversed
+, angle
+, contains
+, distancePnt
+, distanceLin
+, squareDistancePnt
+, squareDistanceLin
+, normal
+, mirror
+, mirrored
+, mirrorAboutAx1
+, mirroredAboutAx1
+, mirrorAboutAx2
+, mirroredAboutAx2
+, rotate
+, rotated
+, scale
+, scaled
+, transform
+, transformed
+, translate
+, translated
+, translateRelative
+, translatedRelative
 ) where
 
+import Prelude hiding (reverse)
 import OpenCascade.GP.Types
 import OpenCascade.GP.Internal.Destructors
+import OpenCascade.Internal.Bool (cBoolToBool)
+import OpenCascade.Internal.Exception (wrapException)
+import Foreign.C
 import Foreign.Ptr
+import Data.Coerce (coerce)
 import Data.Acquire
 
 foreign import capi unsafe "hs_gp_Lin.h hs_new_gp_Lin" rawNew :: Ptr Pnt -> Ptr Dir -> IO (Ptr Lin)
@@ -16,6 +51,11 @@
 new :: Ptr Pnt -> Ptr Dir -> Acquire (Ptr Lin)
 new origin dir = mkAcquire (rawNew origin dir) deleteLin
 
+foreign import capi unsafe "hs_gp_Lin.h hs_new_gp_Lin_fromAx1" rawFromAx1 :: Ptr Ax1 -> IO (Ptr Lin)
+
+fromAx1 :: Ptr Ax1 -> Acquire (Ptr Lin)
+fromAx1 axis = mkAcquire (rawFromAx1 axis) deleteLin
+
 foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Location" rawLocation :: Ptr Lin -> IO (Ptr Pnt)
 
 location :: Ptr Lin -> Acquire (Ptr Pnt)
@@ -25,3 +65,118 @@
 
 direction :: Ptr Lin -> Acquire (Ptr Dir)
 direction lin = mkAcquire (rawDirection lin) deleteDir
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Position" rawPosition :: Ptr Lin -> IO (Ptr Ax1)
+
+position :: Ptr Lin -> Acquire (Ptr Ax1)
+position lin = mkAcquire (rawPosition lin) deleteAx1
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_SetLocation" setLocation :: Ptr Lin -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_SetDirection" setDirection :: Ptr Lin -> Ptr Dir -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_SetPosition" setPosition :: Ptr Lin -> Ptr Ax1 -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Reverse" reverse :: Ptr Lin -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Reversed" rawReversed :: Ptr Lin -> IO (Ptr Lin)
+
+reversed :: Ptr Lin -> Acquire (Ptr Lin)
+reversed lin = mkAcquire (rawReversed lin) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Angle" rawAngle :: Ptr Lin -> Ptr Lin -> IO CDouble
+
+angle :: Ptr Lin -> Ptr Lin -> IO Double
+angle = coerce rawAngle
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Contains" rawContains :: Ptr Lin -> Ptr Pnt -> CDouble -> IO CBool
+
+contains :: Ptr Lin -> Ptr Pnt -> Double -> IO Bool
+contains lin pnt linearTolerance = cBoolToBool <$> rawContains lin pnt (CDouble linearTolerance)
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_DistancePnt" rawDistancePnt :: Ptr Lin -> Ptr Pnt -> IO CDouble
+
+distancePnt :: Ptr Lin -> Ptr Pnt -> IO Double
+distancePnt = coerce rawDistancePnt
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_DistanceLin" rawDistanceLin :: Ptr Lin -> Ptr Lin -> IO CDouble
+
+distanceLin :: Ptr Lin -> Ptr Lin -> IO Double
+distanceLin = coerce rawDistanceLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_SquareDistancePnt" rawSquareDistancePnt :: Ptr Lin -> Ptr Pnt -> IO CDouble
+
+squareDistancePnt :: Ptr Lin -> Ptr Pnt -> IO Double
+squareDistancePnt = coerce rawSquareDistancePnt
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_SquareDistanceLin" rawSquareDistanceLin :: Ptr Lin -> Ptr Lin -> IO CDouble
+
+squareDistanceLin :: Ptr Lin -> Ptr Lin -> IO Double
+squareDistanceLin = coerce rawSquareDistanceLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Normal" rawNormal :: Ptr Lin -> Ptr Pnt -> Ptr CInt -> Ptr (Ptr ()) -> IO (Ptr Lin)
+
+normal :: Ptr Lin -> Ptr Pnt -> Acquire (Ptr Lin)
+normal lin pnt = mkAcquire (wrapException $ rawNormal lin pnt) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Mirror" mirror :: Ptr Lin -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Mirrored" rawMirrored :: Ptr Lin -> Ptr Pnt -> IO (Ptr Lin)
+
+mirrored :: Ptr Lin -> Ptr Pnt -> Acquire (Ptr Lin)
+mirrored lin pnt = mkAcquire (rawMirrored lin pnt) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_MirrorAboutAx1" mirrorAboutAx1 :: Ptr Lin -> Ptr Ax1 -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_MirroredAboutAx1" rawMirroredAboutAx1 :: Ptr Lin -> Ptr Ax1 -> IO (Ptr Lin)
+
+mirroredAboutAx1 :: Ptr Lin -> Ptr Ax1 -> Acquire (Ptr Lin)
+mirroredAboutAx1 lin axis = mkAcquire (rawMirroredAboutAx1 lin axis) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_MirrorAboutAx2" mirrorAboutAx2 :: Ptr Lin -> Ptr Ax2 -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_MirroredAboutAx2" rawMirroredAboutAx2 :: Ptr Lin -> Ptr Ax2 -> IO (Ptr Lin)
+
+mirroredAboutAx2 :: Ptr Lin -> Ptr Ax2 -> Acquire (Ptr Lin)
+mirroredAboutAx2 lin axis = mkAcquire (rawMirroredAboutAx2 lin axis) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Rotate" rawRotate :: Ptr Lin -> Ptr Ax1 -> CDouble -> IO ()
+
+rotate :: Ptr Lin -> Ptr Ax1 -> Double -> IO ()
+rotate = coerce rawRotate
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Rotated" rawRotated :: Ptr Lin -> Ptr Ax1 -> CDouble -> IO (Ptr Lin)
+
+rotated :: Ptr Lin -> Ptr Ax1 -> Double -> Acquire (Ptr Lin)
+rotated lin axis amount = mkAcquire (rawRotated lin axis (CDouble amount)) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Scale" rawScale :: Ptr Lin -> Ptr Pnt -> CDouble -> IO ()
+
+scale :: Ptr Lin -> Ptr Pnt -> Double -> IO ()
+scale = coerce rawScale
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Scaled" rawScaled :: Ptr Lin -> Ptr Pnt -> CDouble -> IO (Ptr Lin)
+
+scaled :: Ptr Lin -> Ptr Pnt -> Double -> Acquire (Ptr Lin)
+scaled lin origin amount = mkAcquire (rawScaled lin origin (CDouble amount)) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Transform" transform :: Ptr Lin -> Ptr Trsf -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Transformed" rawTransformed :: Ptr Lin -> Ptr Trsf -> IO (Ptr Lin)
+
+transformed :: Ptr Lin -> Ptr Trsf -> Acquire (Ptr Lin)
+transformed lin trsf = mkAcquire (rawTransformed lin trsf) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Translate" translate :: Ptr Lin -> Ptr Vec -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_Translated" rawTranslated :: Ptr Lin -> Ptr Vec -> IO (Ptr Lin)
+
+translated :: Ptr Lin -> Ptr Vec -> Acquire (Ptr Lin)
+translated lin vec = mkAcquire (rawTranslated lin vec) deleteLin
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_TranslateRelative" translateRelative :: Ptr Lin -> Ptr Pnt -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Lin.h hs_gp_Lin_TranslatedRelative" rawTranslatedRelative :: Ptr Lin -> Ptr Pnt -> Ptr Pnt -> IO (Ptr Lin)
+
+translatedRelative :: Ptr Lin -> Ptr Pnt -> Ptr Pnt -> Acquire (Ptr Lin)
+translatedRelative lin from to = mkAcquire (rawTranslatedRelative lin from to) deleteLin
diff --git a/src/OpenCascade/GP/Pln.hs b/src/OpenCascade/GP/Pln.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/GP/Pln.hs
@@ -0,0 +1,224 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.GP.Pln 
+( Pln
+, new
+, fromAx3
+, fromPntAndDir
+, fromCartesianEquation
+, setAxis
+, setLocation
+, setPosition
+, vReverse
+, uReverse
+, direct
+, coefficients
+, axis
+, location
+, position
+, distancePnt
+, distanceLin
+, distancePln
+, squareDistancePnt
+, squareDistanceLin
+, squareDistancePln
+, xAxis
+, yAxis
+, containsPnt
+, containsLin
+, mirror
+, mirrored
+, mirrorAboutAx1
+, mirroredAboutAx1
+, mirrorAboutAx2
+, mirroredAboutAx2
+, rotate
+, rotated
+, scale
+, scaled
+, transform
+, transformed
+, translate
+, translated
+, translateRelative
+, translatedRelative
+) where
+
+import OpenCascade.GP.Types
+import OpenCascade.GP.Internal.Destructors
+import Foreign.C
+import Foreign.Ptr
+import Data.Coerce (coerce)
+import Data.Acquire 
+import OpenCascade.Internal.Bool (cBoolToBool)
+import OpenCascade.Internal.Exception (wrapException)
+
+foreign import capi unsafe "hs_gp_Pln.h hs_new_gp_Pln" rawNew ::  IO (Ptr Pln)
+
+new :: Acquire (Ptr Pln)
+new = mkAcquire rawNew deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_new_gp_Pln_fromAx3" rawNewFromAx3 :: Ptr Ax3 -> IO (Ptr Pln)
+
+fromAx3 :: Ptr Ax3 -> Acquire (Ptr Pln)
+fromAx3 ax = mkAcquire (rawNewFromAx3 ax) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_new_gp_Pln_fromPntAndDir" rawNewFromPntAndDir :: Ptr Pnt -> Ptr Dir -> IO (Ptr Pln)
+
+fromPntAndDir :: Ptr Pnt -> Ptr Dir -> Acquire (Ptr Pln)
+fromPntAndDir pnt dir = mkAcquire (rawNewFromPntAndDir pnt dir) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_new_gp_Pln_fromCartesianEquation" rawNewFromCartesianEquation :: CDouble -> CDouble -> CDouble -> CDouble -> Ptr CInt -> Ptr (Ptr ()) -> IO (Ptr Pln)
+
+fromCartesianEquation :: Double -> Double -> Double -> Double -> Acquire (Ptr Pln)
+fromCartesianEquation a b c d = mkAcquire (wrapException $ rawNewFromCartesianEquation (CDouble a) (CDouble b) (CDouble c) (CDouble d)) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SetAxis" rawSetAxis :: Ptr Pln -> Ptr Ax1 -> Ptr CInt -> Ptr (Ptr ()) -> IO ()
+
+setAxis :: Ptr Pln -> Ptr Ax1 -> IO ()
+setAxis pln ax = wrapException $ rawSetAxis pln ax
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SetLocation" setLocation :: Ptr Pln -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SetPosition" setPosition :: Ptr Pln -> Ptr Ax3 -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_VReverse" vReverse :: Ptr Pln -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_UReverse" uReverse :: Ptr Pln -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Direct" rawDirect :: Ptr Pln -> IO CBool
+
+direct :: Ptr Pln -> IO Bool
+direct pln = cBoolToBool <$> rawDirect pln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Coefficients" rawCoefficients :: Ptr Pln -> Ptr CDouble -> Ptr CDouble -> Ptr CDouble -> Ptr CDouble -> IO ()
+
+coefficients :: Ptr Pln -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> IO ()
+coefficients = coerce rawCoefficients
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Axis" rawAxis :: Ptr Pln -> IO (Ptr Ax1)
+
+axis :: Ptr Pln -> Acquire (Ptr Ax1)
+axis pln = mkAcquire (rawAxis pln) deleteAx1
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Location" rawLocation :: Ptr Pln -> IO (Ptr Pnt)
+
+location :: Ptr Pln -> Acquire (Ptr Pnt)
+location pln = mkAcquire (rawLocation pln) deletePnt
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Position" rawPosition :: Ptr Pln -> IO (Ptr Ax3)
+
+position :: Ptr Pln -> Acquire (Ptr Ax3)
+position pln = mkAcquire (rawPosition pln) deleteAx3
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_DistancePnt" rawDistancePnt :: Ptr Pln -> Ptr Pnt -> IO CDouble
+
+distancePnt :: Ptr Pln -> Ptr Pnt -> IO Double
+distancePnt = coerce rawDistancePnt
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_DistanceLin" rawDistanceLin :: Ptr Pln -> Ptr Lin -> IO CDouble
+
+distanceLin :: Ptr Pln -> Ptr Lin -> IO Double
+distanceLin = coerce rawDistanceLin
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_DistancePln" rawDistancePln :: Ptr Pln -> Ptr Pln -> IO CDouble
+
+distancePln :: Ptr Pln -> Ptr Pln -> IO Double
+distancePln = coerce rawDistancePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SquareDistancePnt" rawSquareDistancePnt :: Ptr Pln -> Ptr Pnt -> IO CDouble
+
+squareDistancePnt :: Ptr Pln -> Ptr Pnt -> IO Double
+squareDistancePnt = coerce rawSquareDistancePnt
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SquareDistanceLin" rawSquareDistanceLin :: Ptr Pln -> Ptr Lin -> IO CDouble
+
+squareDistanceLin :: Ptr Pln -> Ptr Lin -> IO Double
+squareDistanceLin = coerce rawSquareDistanceLin
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_SquareDistancePln" rawSquareDistancePln :: Ptr Pln -> Ptr Pln -> IO CDouble
+
+squareDistancePln :: Ptr Pln -> Ptr Pln -> IO Double
+squareDistancePln = coerce rawSquareDistancePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_XAxis" rawXAxis :: Ptr Pln -> IO (Ptr Ax1)
+
+xAxis :: Ptr Pln -> Acquire (Ptr Ax1)
+xAxis pln = mkAcquire (rawXAxis pln) deleteAx1
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_YAxis" rawYAxis :: Ptr Pln -> IO (Ptr Ax1)
+
+yAxis :: Ptr Pln -> Acquire (Ptr Ax1)
+yAxis pln = mkAcquire (rawYAxis pln) deleteAx1
+
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_ContainsPnt" rawContainsPnt :: Ptr Pln -> Ptr Pnt -> CDouble -> IO CBool
+
+containsPnt :: Ptr Pln -> Ptr Pnt -> Double -> IO Bool
+containsPnt pln pnt tolerance = cBoolToBool <$> rawContainsPnt pln pnt (coerce tolerance)
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_ContainsLin" rawContainsLin :: Ptr Pln -> Ptr Lin -> CDouble -> CDouble -> IO CBool
+
+containsLin :: Ptr Pln -> Ptr Lin -> Double -> Double -> IO Bool
+containsLin pln lin linearTolerance angularTolerance = cBoolToBool <$> coerce rawContainsLin pln lin linearTolerance angularTolerance
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Mirror" mirror :: Ptr Pln -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Mirrored" rawMirrored :: Ptr Pln -> Ptr Pnt -> IO (Ptr Pln)
+
+mirrored :: Ptr Pln -> Ptr Pnt -> Acquire (Ptr Pln)
+mirrored pln pnt = mkAcquire (rawMirrored pln pnt) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_MirrorAboutAx1" mirrorAboutAx1 :: Ptr Pln -> Ptr Ax1 -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_MirroredAboutAx1" rawMirroredAboutAx1 :: Ptr Pln -> Ptr Ax1 -> IO (Ptr Pln)
+
+mirroredAboutAx1 :: Ptr Pln -> Ptr Ax1 -> Acquire (Ptr Pln)
+mirroredAboutAx1 pln ax = mkAcquire (rawMirroredAboutAx1 pln ax) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_MirrorAboutAx2" mirrorAboutAx2 :: Ptr Pln -> Ptr Ax2 -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_MirroredAboutAx2" rawMirroredAboutAx2 :: Ptr Pln -> Ptr Ax2 -> IO (Ptr Pln)
+
+mirroredAboutAx2 :: Ptr Pln -> Ptr Ax2 -> Acquire (Ptr Pln)
+mirroredAboutAx2 pln ax = mkAcquire (rawMirroredAboutAx2 pln ax) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Rotate" rawRotate :: Ptr Pln -> Ptr Ax1 -> CDouble -> IO ()
+
+rotate :: Ptr Pln -> Ptr Ax1 -> Double -> IO ()
+rotate = coerce rawRotate
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Rotated" rawRotated :: Ptr Pln -> Ptr Ax1 -> CDouble -> IO (Ptr Pln)
+
+rotated :: Ptr Pln -> Ptr Ax1 -> Double -> Acquire (Ptr Pln)
+rotated pln ax amount = mkAcquire (rawRotated pln ax (CDouble amount)) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Scale" rawScale :: Ptr Pln -> Ptr Pnt -> CDouble -> IO ()
+
+scale :: Ptr Pln -> Ptr Pnt -> Double -> IO ()
+scale = coerce rawScale
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Scaled" rawScaled :: Ptr Pln -> Ptr Pnt -> CDouble -> IO (Ptr Pln)
+
+scaled :: Ptr Pln -> Ptr Pnt -> Double -> Acquire (Ptr Pln)
+scaled pln origin amount = mkAcquire (rawScaled pln origin (CDouble amount)) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Transform" transform :: Ptr Pln -> Ptr Trsf -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Transformed" rawTransformed :: Ptr Pln -> Ptr Trsf -> IO (Ptr Pln)
+
+transformed :: Ptr Pln -> Ptr Trsf -> Acquire (Ptr Pln)
+transformed pln trsf = mkAcquire (rawTransformed pln trsf) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Translate" translate :: Ptr Pln -> Ptr Vec -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_Translated" rawTranslated :: Ptr Pln -> Ptr Vec -> IO (Ptr Pln)
+
+translated :: Ptr Pln -> Ptr Vec -> Acquire (Ptr Pln)
+translated pln vec = mkAcquire (rawTranslated pln vec) deletePln
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_TranslateRelative" translateRelative :: Ptr Pln -> Ptr Pnt -> Ptr Pnt -> IO ()
+
+foreign import capi unsafe "hs_gp_Pln.h hs_gp_Pln_TranslatedRelative" rawTranslatedRelative :: Ptr Pln -> Ptr Pnt -> Ptr Pnt -> IO (Ptr Pln)
+
+translatedRelative :: Ptr Pln -> Ptr Pnt -> Ptr Pnt -> Acquire (Ptr Pln)
+translatedRelative pln from to = mkAcquire (rawTranslatedRelative pln from to) deletePln
diff --git a/src/OpenCascade/GP/Types.hs b/src/OpenCascade/GP/Types.hs
--- a/src/OpenCascade/GP/Types.hs
+++ b/src/OpenCascade/GP/Types.hs
@@ -14,6 +14,7 @@
 , Trsf2d
 , GTrsf
 , Lin
+, Pln
 , XYZ
 ) where
 
@@ -31,4 +32,5 @@
 data Trsf2d
 data GTrsf
 data Lin
+data Pln
 data XYZ
diff --git a/src/OpenCascade/GP/Vec2d.hs b/src/OpenCascade/GP/Vec2d.hs
--- a/src/OpenCascade/GP/Vec2d.hs
+++ b/src/OpenCascade/GP/Vec2d.hs
@@ -269,9 +269,9 @@
 
 -- transform/transformed
 
-foreign import capi unsafe "hs_gp_Vec2d.h hs_gp_Vec2d_Transform" transform :: Ptr Vec2d -> Ptr Trsf -> IO ()
+foreign import capi unsafe "hs_gp_Vec2d.h hs_gp_Vec2d_Transform" transform :: Ptr Vec2d -> Ptr Trsf2d -> IO ()
 
-foreign import capi unsafe "hs_gp_Vec2d.h hs_gp_Vec2d_Transformed" rawTransformed :: Ptr Vec2d -> Ptr Trsf -> IO (Ptr Vec2d)
+foreign import capi unsafe "hs_gp_Vec2d.h hs_gp_Vec2d_Transformed" rawTransformed :: Ptr Vec2d -> Ptr Trsf2d -> IO (Ptr Vec2d)
 
-transformed :: Ptr Vec2d -> Ptr Trsf -> Acquire (Ptr Vec2d)
+transformed :: Ptr Vec2d -> Ptr Trsf2d -> Acquire (Ptr Vec2d)
 transformed point trsf = mkAcquire (rawTransformed point trsf) deleteVec2d
diff --git a/src/OpenCascade/Geom/BezierCurve.hs b/src/OpenCascade/Geom/BezierCurve.hs
--- a/src/OpenCascade/Geom/BezierCurve.hs
+++ b/src/OpenCascade/Geom/BezierCurve.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.Geom.BezierCurve 
 ( fromPnts
+, copy
 , toHandle
 , nbPoles
 , pole
@@ -29,6 +30,14 @@
 
 fromPnts :: Ptr (Array1 Pnt) -> Acquire (Ptr BezierCurve)
 fromPnts arr = mkAcquire (wrapException $ rawFromPnts arr) (deleteBezierCurve)
+
+
+foreign import capi unsafe "hs_Geom_BezierCurve.h hs_Geom_BezierCurve_copy" rawCopy
+    :: Ptr (Handle BezierCurve)
+    -> IO (Ptr (Handle BezierCurve))
+
+copy :: Ptr (Handle BezierCurve) -> Acquire (Ptr (Handle BezierCurve))
+copy theCurve = mkAcquire (rawCopy theCurve) deleteHandleBezierCurve
 
 foreign import capi unsafe "hs_Geom_BezierCurve.h hs_Geom_BezierCurve_toHandle" rawToHandle :: Ptr BezierCurve -> IO (Ptr (Handle BezierCurve))
 
diff --git a/src/OpenCascade/GeomAbs/Shape.hs b/src/OpenCascade/GeomAbs/Shape.hs
--- a/src/OpenCascade/GeomAbs/Shape.hs
+++ b/src/OpenCascade/GeomAbs/Shape.hs
@@ -4,4 +4,4 @@
 
 -- This needs to stay up to date with GeomAbs_Shape.hxx
 data Shape = C0 | G1 | C1 | G2 | C2 | C3 | CN 
-    deriving (Enum, Show)
+    deriving (Eq, Ord, Enum, Show)
diff --git a/src/OpenCascade/Graphic3D/AlphaMode.hs b/src/OpenCascade/Graphic3D/AlphaMode.hs
--- a/src/OpenCascade/Graphic3D/AlphaMode.hs
+++ b/src/OpenCascade/Graphic3D/AlphaMode.hs
@@ -3,7 +3,7 @@
 ) where
 
 -- Should match the values in Graphic3D_AlphaMode.hxx
-data AlphaMode = BlendAuto | Opaque | Mask | Blend | MaskBlend deriving (Show, Eq)
+data AlphaMode = BlendAuto | Opaque | Mask | Blend | MaskBlend deriving (Show, Eq, Ord, Bounded)
 
 -- this can't derive Enum, because Graphic3d_AlphaMode_BlendAuto is defined as -1
 instance Enum AlphaMode where
@@ -18,3 +18,10 @@
     toEnum 2 = Blend
     toEnum 3 = MaskBlend
     toEnum _ = error "toEnum: out of range for Graphic3D.AlphaMode"
+    enumFrom x = enumFromTo x maxBound
+    enumFromThen x y = 
+        enumFromThenTo x y (
+            if fromEnum y >= fromEnum x 
+                then maxBound 
+                else minBound
+            )
diff --git a/src/OpenCascade/RWGltf/CafWriter.hs b/src/OpenCascade/RWGltf/CafWriter.hs
--- a/src/OpenCascade/RWGltf/CafWriter.hs
+++ b/src/OpenCascade/RWGltf/CafWriter.hs
@@ -11,7 +11,7 @@
 import Foreign.C.String (CString, withCString)
 import Foreign.C (CBool (..), CInt)
 import Data.Acquire (Acquire, mkAcquire)
-import OpenCascade.Internal.Bool (boolToCBool)
+import OpenCascade.Internal.Bool (boolToCBool, cBoolToBool)
 import OpenCascade.Internal.Exception (wrapException)
 import OpenCascade.Handle (Handle)
 import qualified OpenCascade.TDocStd.Types as TDocStd
@@ -31,7 +31,12 @@
     -> Ptr (Message.ProgressRange)
     -> Ptr CInt
     -> Ptr (Ptr ())
-    -> IO ()
+    -> IO CBool
 
-perform :: Ptr CafWriter -> Ptr (Handle TDocStd.Document) -> Ptr (NCollection.IndexedDataMap TCollection.AsciiString TCollection.AsciiString) -> Ptr (Message.ProgressRange) -> IO ()
-perform writer doc fileInfo progress = wrapException $ rawPerform writer doc fileInfo progress
+perform
+    :: Ptr CafWriter
+    -> Ptr (Handle TDocStd.Document)
+    -> Ptr (NCollection.IndexedDataMap TCollection.AsciiString TCollection.AsciiString)
+    -> Ptr (Message.ProgressRange)
+    -> IO Bool
+perform writer doc fileInfo progress = fmap cBoolToBool . wrapException $ rawPerform writer doc fileInfo progress
diff --git a/src/OpenCascade/RWObj/CafWriter.hs b/src/OpenCascade/RWObj/CafWriter.hs
--- a/src/OpenCascade/RWObj/CafWriter.hs
+++ b/src/OpenCascade/RWObj/CafWriter.hs
@@ -9,7 +9,7 @@
 import OpenCascade.RWObj.Internal.Destructors (deleteCafWriter)
 import Foreign.Ptr (Ptr)
 import Foreign.C.String (CString, withCString)
-import Foreign.C (CInt)
+import Foreign.C (CInt, CBool (..))
 import Data.Acquire (Acquire, mkAcquire)
 import OpenCascade.Internal.Exception (wrapException)
 import OpenCascade.Handle (Handle)
@@ -17,6 +17,7 @@
 import qualified OpenCascade.NCollection.Types as NCollection
 import qualified OpenCascade.TCollection.Types as TCollection
 import qualified OpenCascade.Message.Types as Message
+import OpenCascade.Internal.Bool (cBoolToBool)
 
 foreign import capi unsafe "hs_RWObj_CafWriter.h hs_new_RWObj_CafWriter" rawNew :: CString -> IO (Ptr CafWriter)
 
@@ -30,7 +31,12 @@
     -> Ptr (Message.ProgressRange)
     -> Ptr CInt
     -> Ptr (Ptr ())
-    -> IO ()
+    -> IO CBool
 
-perform :: Ptr CafWriter -> Ptr (Handle TDocStd.Document) -> Ptr (NCollection.IndexedDataMap TCollection.AsciiString TCollection.AsciiString) -> Ptr (Message.ProgressRange) -> IO ()
-perform writer doc fileInfo progress = wrapException $ rawPerform writer doc fileInfo progress
+perform 
+    :: Ptr CafWriter 
+    -> Ptr (Handle TDocStd.Document)
+    -> Ptr (NCollection.IndexedDataMap TCollection.AsciiString TCollection.AsciiString)
+    -> Ptr (Message.ProgressRange)
+    -> IO Bool
+perform writer doc fileInfo progress = fmap cBoolToBool . wrapException $ rawPerform writer doc fileInfo progress
diff --git a/src/OpenCascade/ShapeBuild/Internal/Destructors.hs b/src/OpenCascade/ShapeBuild/Internal/Destructors.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/ShapeBuild/Internal/Destructors.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.ShapeBuild.Internal.Destructors
+( deleteHandleReShape
+) where
+
+import OpenCascade.ShapeBuild.Types (ReShape)
+import OpenCascade.Handle (Handle)
+import Foreign.Ptr (Ptr)
+
+foreign import capi unsafe "hs_ShapeBuild_ReShape.h hs_delete_Handle_ShapeBuild_ReShape" deleteHandleReShape :: Ptr (Handle ReShape) -> IO ()
diff --git a/src/OpenCascade/ShapeBuild/ReShape.hs b/src/OpenCascade/ShapeBuild/ReShape.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/ShapeBuild/ReShape.hs
@@ -0,0 +1,39 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.ShapeBuild.ReShape
+( ReShape
+, apply
+, isRecorded
+) where
+
+import OpenCascade.ShapeBuild.Types (ReShape)
+import OpenCascade.TopoDS.Internal.Destructors (deleteShape)
+import qualified OpenCascade.TopoDS.Types as TopoDS
+import qualified OpenCascade.TopAbs.ShapeEnum as TopAbs.ShapeEnum
+import OpenCascade.Handle (Handle)
+import OpenCascade.Internal.Bool (cBoolToBool)
+import OpenCascade.Internal.Exception (wrapException)
+import Data.Acquire (Acquire, mkAcquire)
+import Foreign.Ptr (Ptr)
+import Foreign.C (CInt (..), CBool (..))
+
+foreign import capi unsafe "hs_ShapeBuild_ReShape.h hs_ShapeBuild_ReShape_apply" rawApply
+    :: Ptr (Handle ReShape)
+    -> Ptr TopoDS.Shape
+    -> CInt
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Shape)
+
+apply :: Ptr (Handle ReShape) -> Ptr TopoDS.Shape -> TopAbs.ShapeEnum.ShapeEnum -> Acquire (Ptr TopoDS.Shape)
+apply reShape shape untilType =
+    mkAcquire
+        (wrapException $ rawApply reShape shape (fromIntegral . fromEnum $ untilType))
+        deleteShape
+
+foreign import capi unsafe "hs_ShapeBuild_ReShape.h hs_ShapeBuild_ReShape_isRecorded" rawIsRecorded
+    :: Ptr (Handle ReShape)
+    -> Ptr TopoDS.Shape
+    -> IO CBool
+
+isRecorded :: Ptr (Handle ReShape) -> Ptr TopoDS.Shape -> IO Bool
+isRecorded reShape shape = cBoolToBool <$> rawIsRecorded reShape shape
diff --git a/src/OpenCascade/ShapeBuild/Types.hs b/src/OpenCascade/ShapeBuild/Types.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/ShapeBuild/Types.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE EmptyDataDecls #-}
+module OpenCascade.ShapeBuild.Types
+( ReShape
+) where
+
+data ReShape
diff --git a/src/OpenCascade/ShapeUpgrade/Internal/Destructors.hs b/src/OpenCascade/ShapeUpgrade/Internal/Destructors.hs
--- a/src/OpenCascade/ShapeUpgrade/Internal/Destructors.hs
+++ b/src/OpenCascade/ShapeUpgrade/Internal/Destructors.hs
@@ -1,9 +1,12 @@
 {-# LANGUAGE CApiFFI #-}
 module OpenCascade.ShapeUpgrade.Internal.Destructors
 ( deleteUnifySameDomain
+, deleteShapeDivideContinuity
 ) where
 
-import OpenCascade.ShapeUpgrade.Types (UnifySameDomain)
+import OpenCascade.ShapeUpgrade.Types (UnifySameDomain, ShapeDivideContinuity)
 import Foreign.Ptr (Ptr)
 
 foreign import capi unsafe "hs_ShapeUpgrade_UnifySameDomain.h hs_delete_ShapeUpgrade_UnifySameDomain" deleteUnifySameDomain :: Ptr UnifySameDomain -> IO ()
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_delete_ShapeUpgrade_ShapeDivideContinuity" deleteShapeDivideContinuity :: Ptr ShapeDivideContinuity -> IO ()
diff --git a/src/OpenCascade/ShapeUpgrade/ShapeDivide.hs b/src/OpenCascade/ShapeUpgrade/ShapeDivide.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/ShapeUpgrade/ShapeDivide.hs
@@ -0,0 +1,64 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.ShapeUpgrade.ShapeDivide
+( ShapeDivide
+, perform
+, result
+, getContext
+, setPrecision
+, setMaxTolerance
+, setMinTolerance
+) where
+
+import OpenCascade.ShapeUpgrade.Types (ShapeDivide)
+import qualified OpenCascade.ShapeBuild.Types as ShapeBuild
+import OpenCascade.ShapeBuild.Internal.Destructors (deleteHandleReShape)
+import OpenCascade.TopoDS.Internal.Destructors (deleteShape)
+import qualified OpenCascade.TopoDS.Types as TopoDS
+import OpenCascade.Handle (Handle)
+import OpenCascade.Internal.Bool (boolToCBool, cBoolToBool)
+import OpenCascade.Internal.Exception (wrapException)
+import Data.Acquire (Acquire, mkAcquire)
+import Data.Coerce (coerce)
+import Foreign.Ptr (Ptr)
+import Foreign.C (CInt (..), CBool (..), CDouble (..))
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_perform" rawPerform
+    :: Ptr ShapeDivide
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO CBool
+
+perform :: Ptr ShapeDivide -> Bool -> IO Bool
+perform divide newContext = cBoolToBool <$> wrapException (rawPerform divide (boolToCBool newContext))
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_result" rawResult
+    :: Ptr ShapeDivide
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Shape)
+
+result :: Ptr ShapeDivide -> Acquire (Ptr TopoDS.Shape)
+result divide = mkAcquire (wrapException $ rawResult divide) deleteShape
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_getContext" rawGetContext
+    :: Ptr ShapeDivide
+    -> IO (Ptr (Handle ShapeBuild.ReShape))
+
+getContext :: Ptr ShapeDivide -> Acquire (Ptr (Handle ShapeBuild.ReShape))
+getContext divide = mkAcquire (rawGetContext divide) deleteHandleReShape
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_setPrecision" rawSetPrecision :: Ptr ShapeDivide -> CDouble -> IO ()
+
+setPrecision :: Ptr ShapeDivide -> Double -> IO ()
+setPrecision = coerce rawSetPrecision
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_setMaxTolerance" rawSetMaxTolerance :: Ptr ShapeDivide -> CDouble -> IO ()
+
+setMaxTolerance :: Ptr ShapeDivide -> Double -> IO ()
+setMaxTolerance = coerce rawSetMaxTolerance
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivide.h hs_ShapeUpgrade_ShapeDivide_setMinTolerance" rawSetMinTolerance :: Ptr ShapeDivide -> CDouble -> IO ()
+
+setMinTolerance :: Ptr ShapeDivide -> Double -> IO ()
+setMinTolerance = coerce rawSetMinTolerance
diff --git a/src/OpenCascade/ShapeUpgrade/ShapeDivideContinuity.hs b/src/OpenCascade/ShapeUpgrade/ShapeDivideContinuity.hs
new file mode 100644
--- /dev/null
+++ b/src/OpenCascade/ShapeUpgrade/ShapeDivideContinuity.hs
@@ -0,0 +1,54 @@
+{-# LANGUAGE CApiFFI #-}
+module OpenCascade.ShapeUpgrade.ShapeDivideContinuity
+( ShapeDivideContinuity
+, fromShape
+, setTolerance
+, setTolerance2d
+, setBoundaryCriterion
+, setPCurveCriterion
+, setSurfaceCriterion
+) where
+
+import OpenCascade.ShapeUpgrade.Types (ShapeDivideContinuity)
+import OpenCascade.ShapeUpgrade.Internal.Destructors (deleteShapeDivideContinuity)
+import qualified OpenCascade.TopoDS.Types as TopoDS
+import qualified OpenCascade.GeomAbs.Shape as GeomAbs.Shape
+import OpenCascade.Internal.Exception (wrapException)
+import Data.Acquire (Acquire, mkAcquire)
+import Data.Coerce (coerce)
+import Foreign.Ptr (Ptr)
+import Foreign.C (CInt (..), CDouble (..))
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_new_ShapeUpgrade_ShapeDivideContinuity_fromShape" rawFromShape
+    :: Ptr TopoDS.Shape
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr ShapeDivideContinuity)
+
+fromShape :: Ptr TopoDS.Shape -> Acquire (Ptr ShapeDivideContinuity)
+fromShape s = mkAcquire (wrapException $ rawFromShape s) deleteShapeDivideContinuity
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance" rawSetTolerance :: Ptr ShapeDivideContinuity -> CDouble -> IO ()
+
+setTolerance :: Ptr ShapeDivideContinuity -> Double -> IO ()
+setTolerance = coerce rawSetTolerance
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_ShapeUpgrade_ShapeDivideContinuity_setTolerance2d" rawSetTolerance2d :: Ptr ShapeDivideContinuity -> CDouble -> IO ()
+
+setTolerance2d :: Ptr ShapeDivideContinuity -> Double -> IO ()
+setTolerance2d = coerce rawSetTolerance2d
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_ShapeUpgrade_ShapeDivideContinuity_setBoundaryCriterion" rawSetBoundaryCriterion :: Ptr ShapeDivideContinuity -> CInt -> IO ()
+
+setBoundaryCriterion :: Ptr ShapeDivideContinuity -> GeomAbs.Shape.Shape -> IO ()
+setBoundaryCriterion divide = rawSetBoundaryCriterion divide . fromIntegral . fromEnum
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_ShapeUpgrade_ShapeDivideContinuity_setPCurveCriterion" rawSetPCurveCriterion :: Ptr ShapeDivideContinuity -> CInt -> IO ()
+
+setPCurveCriterion :: Ptr ShapeDivideContinuity -> GeomAbs.Shape.Shape -> IO ()
+setPCurveCriterion divide = rawSetPCurveCriterion divide . fromIntegral . fromEnum
+
+foreign import capi unsafe "hs_ShapeUpgrade_ShapeDivideContinuity.h hs_ShapeUpgrade_ShapeDivideContinuity_setSurfaceCriterion" rawSetSurfaceCriterion :: Ptr ShapeDivideContinuity -> CInt -> IO ()
+
+setSurfaceCriterion :: Ptr ShapeDivideContinuity -> GeomAbs.Shape.Shape -> IO ()
+setSurfaceCriterion divide = rawSetSurfaceCriterion divide . fromIntegral . fromEnum
diff --git a/src/OpenCascade/ShapeUpgrade/Types.hs b/src/OpenCascade/ShapeUpgrade/Types.hs
--- a/src/OpenCascade/ShapeUpgrade/Types.hs
+++ b/src/OpenCascade/ShapeUpgrade/Types.hs
@@ -1,6 +1,15 @@
 {-# LANGUAGE EmptyDataDecls #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
 module OpenCascade.ShapeUpgrade.Types
 ( UnifySameDomain
+, ShapeDivide
+, ShapeDivideContinuity
 ) where
 
+import OpenCascade.Inheritance (SubTypeOf)
+
 data UnifySameDomain
+data ShapeDivide
+data ShapeDivideContinuity
+
+instance SubTypeOf ShapeDivide ShapeDivideContinuity
diff --git a/src/OpenCascade/TopExp.hs b/src/OpenCascade/TopExp.hs
--- a/src/OpenCascade/TopExp.hs
+++ b/src/OpenCascade/TopExp.hs
@@ -2,15 +2,21 @@
 module OpenCascade.TopExp
 ( module OpenCascade.TopExp.Types
 , mapShapesAndAncestors
+, firstVertex
+, lastVertex
 ) where
 
 import OpenCascade.TopExp.Types
 import qualified OpenCascade.TopoDS.Types as TopoDS
+import qualified OpenCascade.TopoDS.Internal.Destructors as TopoDS.Destructors
 import qualified OpenCascade.TopAbs as TopAbs
 import qualified OpenCascade.NCollection.Types as NCollection
+import OpenCascade.Inheritance (upcast)
+import OpenCascade.Internal.Bool (boolToCBool)
 import OpenCascade.Internal.Exception (wrapException)
+import Data.Acquire (Acquire, mkAcquire)
 import Foreign.Ptr (Ptr)
-import Foreign.C (CInt (..))
+import Foreign.C (CInt (..), CBool (..))
 
 foreign import capi unsafe "hs_TopExp.h hs_TopExp_mapShapesAndAncestors" rawMapShapesAndAncestors
     :: Ptr TopoDS.Shape
@@ -33,3 +39,29 @@
         (fromIntegral . fromEnum $ subshapeType)
         (fromIntegral . fromEnum $ ancestorType)
         theMap
+
+foreign import capi unsafe "hs_TopExp.h hs_TopExp_firstVertex" rawFirstVertex
+    :: Ptr TopoDS.Edge
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Vertex)
+
+firstVertex :: Ptr TopoDS.Edge -> Bool -> Acquire (Ptr TopoDS.Vertex)
+firstVertex edge cumOri =
+    mkAcquire
+        (wrapException $ rawFirstVertex edge (boolToCBool cumOri))
+        (TopoDS.Destructors.deleteShape . upcast)
+
+foreign import capi unsafe "hs_TopExp.h hs_TopExp_lastVertex" rawLastVertex
+    :: Ptr TopoDS.Edge
+    -> CBool
+    -> Ptr CInt
+    -> Ptr (Ptr ())
+    -> IO (Ptr TopoDS.Vertex)
+
+lastVertex :: Ptr TopoDS.Edge -> Bool -> Acquire (Ptr TopoDS.Vertex)
+lastVertex edge cumOri =
+    mkAcquire
+        (wrapException $ rawLastVertex edge (boolToCBool cumOri))
+        (TopoDS.Destructors.deleteShape . upcast)
diff --git a/src/OpenCascade/TopoDS/Types.hs b/src/OpenCascade/TopoDS/Types.hs
--- a/src/OpenCascade/TopoDS/Types.hs
+++ b/src/OpenCascade/TopoDS/Types.hs
@@ -23,6 +23,7 @@
 import qualified OpenCascade.TopAbs.ShapeEnum as ShapeEnum
 import Foreign.Ptr
 import Foreign.C
+import OpenCascade.Internal.Bool (cBoolToBool)
 
 
 data Shape
@@ -37,20 +38,31 @@
 
 data Builder
 
--- duplicate definition of shape type from TopoDS.Shape
+-- duplicate definition of shape type and isNull from TopoDS.Shape
 -- to simultaniously avoid Orphan Instances + circular dependencies
 foreign import capi unsafe "hs_TopoDS_Shape.h hs_TopoDS_Shape_ShapeType" rawShapeType :: Ptr Shape -> Ptr CInt -> Ptr (Ptr ()) -> IO CInt
 
 shapeType :: Ptr Shape -> IO ShapeEnum
 shapeType s = toEnum . fromIntegral <$> wrapException (rawShapeType s)
 
+-- isNull
+--
+foreign import capi unsafe "hs_TopoDS_Shape.h hs_TopoDS_Shape_IsNull" rawIsNull :: Ptr Shape -> Ptr CInt -> Ptr (Ptr ()) -> IO CBool
+
+isNull :: Ptr Shape -> IO Bool
+isNull s = cBoolToBool <$> wrapException (rawIsNull s)
+
 enumDowncast :: ShapeEnum -> Ptr Shape -> IO (Maybe (Ptr t))
 enumDowncast enum p = do
-    e <- shapeType p
-    return $ if e == enum 
-                then Just (castPtr p)
-                else Nothing
-
+    shapeIsNull <- isNull p
+    if shapeIsNull 
+        then return Nothing
+        else do
+            e <- shapeType p
+            return $ 
+                if e == enum 
+                    then Just (castPtr p)
+                    else Nothing
 
 instance SubTypeOf Shape Compound
 
diff --git a/src/OpenCascade/XSControl/Reader.hs b/src/OpenCascade/XSControl/Reader.hs
--- a/src/OpenCascade/XSControl/Reader.hs
+++ b/src/OpenCascade/XSControl/Reader.hs
@@ -11,9 +11,8 @@
 import OpenCascade.IFSelect.ReturnStatus (ReturnStatus)
 import qualified OpenCascade.TopoDS.Types as TopoDS
 import OpenCascade.TopoDS.Internal.Destructors (deleteShape)
-import OpenCascade.Internal.Bool (cBoolToBool)
 import Foreign.C.String (CString, withCString)
-import Foreign.C (CInt (..), CBool (..))
+import Foreign.C (CInt (..))
 import Foreign.Ptr (Ptr)
 import Data.Acquire (Acquire, mkAcquire)
 import OpenCascade.Internal.Exception (wrapException)
@@ -32,10 +31,10 @@
     :: Ptr Reader 
     -> Ptr CInt
     -> Ptr (Ptr ())
-    -> IO (CBool)
+    -> IO (CInt)
 
-transferRoots :: Ptr Reader -> IO Bool
-transferRoots reader = cBoolToBool <$> wrapException (rawTransferRoots reader)
+transferRoots :: Ptr Reader -> IO Int
+transferRoots reader = fromIntegral <$> wrapException (rawTransferRoots reader)
 
 foreign import capi unsafe "hs_XSControl_Reader.h hs_XSControl_Reader_oneShape" rawOneShape
     :: Ptr Reader  
