WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Function generateRevcloudBulgePoints

    • Generate revision-cloud style BulgePoints from a polyline path.

      Each straight segment between consecutive path points is subdivided into equal chord-length intervals. Every sub-vertex receives the specified bulge value (default 1 = semicircle), producing the characteristic cloud silhouette used by AutoCAD's REVCLOUD command.

      Parameters

      • pathPoints: PointInput[]

        Ordered path vertices (at least 2). Accepts Point2D, [x, y], or any PointInput.

      • Optionaloptions: RevcloudOptions

        Optional generation parameters.

      Returns BulgePoints

      A BulgePoints collection ready for new PolylineEnt(bulgePoints).

      import { PolylineEnt, Point2D } from 'vjcad';
      import { generateRevcloudBulgePoints } from 'vjcad';

      const bp = generateRevcloudBulgePoints(
      [[0, 0], [200, 0], [200, 100], [0, 100]],
      { arcLength: 30, isClosed: true }
      );
      const cloud = new PolylineEnt(bp);
      cloud.isClosed = true;