def build_segment(self): result = librt.struct_carc_seg() result.magic = librt.CURVE_CARC_MAGIC result.start = self._points[0] result.end = self._points[1] result.radius = self.radius result.center_is_left = cta.bool(self.center_is_left) result.orientation = cta.bool(self.clock_wise) return result
def __init__(self, file_name, dbtype=DBType.DB, existing_only=True): self.file_name = file_name result = libged.ged_open(dbtype, file_name, cta.bool(existing_only)) if not result: raise BRLCADException("Error creating GED !") self._ged_pointer = result