Skip to content

Can't add node to closed FaceQueue #16

@Beakerboy

Description

@Beakerboy

The following produces the error Can't add node to closed FaceQueue in version 1.1.0.

const points = [
  [ - 26.544995859742947, - 13.287698137967746 ],
  [ 9.913632585162611, - 3.7917336660976004 ],
  [ 20.559427587754445, - 1.0229359802622613 ],
  [ 29.651770143672465, 1.3455778947287382 ],
  [ 26.53923658090192, 13.287889287788659 ],
  [ - 29.651791704140486, - 1.334219836371914 ],
  [ - 26.951441512330682, - 11.708727230072542 ]
 ];

const polygon = [ points ];
const multipolygon = [ polygon ];
const result = SkeletonBuilder.BuildFromGeoJSON( multipolygon );

/** OR */

const vecList = new List();
points.forEach( ( point ) => vecList.Add( new Vector2d( ...point ) ) );
const result = SkeletonBuilder.Build( vecList );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions