File tree Expand file tree Collapse file tree
occt-worker/lib/api/occt/shapes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -622,6 +622,18 @@ export class OCCTWire {
622622 return this . occWorkerManager . genericCallToWorkerPromise ( "shapes.wire.reversedWireFromReversedEdges" , inputs ) ;
623623 }
624624
625+ /**
626+ * Checks whether wire is closed
627+ * @param inputs wire
628+ * @returns boolean
629+ * @group get
630+ * @shortname is wire closed
631+ * @drawable false
632+ */
633+ isWireClosed ( inputs : Inputs . OCCT . ShapeDto < Inputs . OCCT . TopoDSWirePointer > ) : Promise < boolean > {
634+ return this . occWorkerManager . genericCallToWorkerPromise ( "shapes.wire.isWireClosed" , inputs ) ;
635+ }
636+
625637 /**
626638 * Gets the wire length
627639 * @param inputs wire
Original file line number Diff line number Diff line change @@ -241,6 +241,10 @@ export class OCCTWire {
241241 return this . och . wiresService . getWiresLengths ( inputs ) ;
242242 }
243243
244+ isWireClosed ( inputs : Inputs . OCCT . ShapeDto < TopoDS_Wire > ) : boolean {
245+ return this . och . wiresService . isWireClosed ( inputs ) ;
246+ }
247+
244248 getWireCenterOfMass ( inputs : Inputs . OCCT . ShapeDto < TopoDS_Wire > ) : Inputs . Base . Point3 {
245249 return this . och . wiresService . getWireCenterOfMass ( inputs ) ;
246250 }
You can’t perform that action at this time.
0 commit comments