Skip to content
HALOWERK

File Formats and Conversion

hpgl plot stroke join gaps

HP-GL stroke join analysis counts consecutively drawn strokes of the same pen whose endpoints fall within a requested tolerance. Use it when an agent needs locating neighboring strokes that could share a continuous path.

POST https://format.halowerk.com/v1/hpgl-plot-stroke-join-gaps

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
hpglstringYes
tolerance_mmnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "hpgl": {
      "type": "string",
      "maxLength": 24000,
      "minLength": 1
    },
    "tolerance_mm": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    }
  },
  "required": [
    "hpgl",
    "tolerance_mm"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "hpgl": "IN;SP1;PA;PU0,0;PD600,0;PU0,0;PD0,120;PU;SP2;PU600,0;PR;PD0,120;PU;",
  "tolerance_mm": 20
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "same_pen_pairs": {
          "type": "integer"
        },
        "within_tolerance": {
          "type": "integer"
        },
        "joinable_gap_mm": {
          "type": "number"
        }
      },
      "required": [
        "same_pen_pairs",
        "within_tolerance",
        "joinable_gap_mm"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’