/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package org.jcae.opencascade.jni; public class TopoDS_Builder { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected TopoDS_Builder(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(TopoDS_Builder obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_TopoDS_Builder(swigCPtr); } swigCPtr = 0; } } public void makeWire(TopoDS_Wire W) { OccJavaJNI.TopoDS_Builder_makeWire(swigCPtr, this, TopoDS_Wire.getCPtr(W), W); } public void makeCompound(TopoDS_Compound C) { OccJavaJNI.TopoDS_Builder_makeCompound(swigCPtr, this, TopoDS_Compound.getCPtr(C), C); } public void add(TopoDS_Shape S, TopoDS_Shape C) { OccJavaJNI.TopoDS_Builder_add(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, TopoDS_Shape.getCPtr(C), C); } public void remove(TopoDS_Shape S, TopoDS_Shape C) { OccJavaJNI.TopoDS_Builder_remove(swigCPtr, this, TopoDS_Shape.getCPtr(S), S, TopoDS_Shape.getCPtr(C), C); } }