• Preparing search index...
  • The search index is not available
RealDWG-Web
  • RealDWG-Web
  • @mlightcad/data-model
  • acdbDrawTessellateOptions

Function acdbDrawTessellateOptions

  • acdbDrawTessellateOptions(
        renderer?:
            | Pick<AcGiRenderer<AcGiEntity>, "context">
            | { context?: { database?: unknown } },
    ): AcGeTessellateOptions
  • Draw-time tessellation options for the current database.

    Uses AcDbDatabase.drawCircleSides from AcGiContext.database (set by AcDbEntity.worldDraw). When the renderer has no database this falls back to AcGeCircArc2d.DEFAULT_CIRCLE_SIDES.

    AutoCAD VIEWRES is not read here. DWG files often store 1000, which would inflate GPU memory and HTML export size unless the user explicitly chooses a high-quality preset. Opening a drawing without AcDbOpenDatabaseOptions.circleSides uses ACDB_DRAW_CIRCLE_SIDES_DRAFT.

    Renderer implementations of circularArc / ellipticalArc / area should use the same helper so Circle, Arc, and Ellipse honour the open-time setting.

    Parameters

    • Optionalrenderer: Pick<AcGiRenderer<AcGiEntity>, "context"> | { context?: { database?: unknown } }

      Current renderer; context.database is duck-typed

    Returns AcGeTessellateOptions

    • Defined in packages/data-model/src/misc/AcDbDrawTessellate.ts:33

Settings

Member Visibility
RealDWG-Web
  • Loading...

Generated using TypeDoc