TBLApproximationOptions
Options used to describe how geometry is approximated.
This record cannot be simply zeroed and then passed to functions that accept approximation options. Use TBLApproximationOptions.Default
to setup defaults and then alter values you want to change.
Example of using TBLApproximationOptions
:
// Initialize with defaults first.
var Approx := TBLApproximationOptions.Default;
// Override values you want to change.
Ppprox.SimplifyTolerance = 0.02;
// ... now safely use approximation options in your code ...
Definition
Unit: Blend2D
Properties
Name | Description |
---|---|
FlattenMode | Specifies how curves are flattened. |
FlattenTolerance | Tolerance used to flatten curves. |
OffsetMode | Specifies how curves are offsetted (used by stroking). |
OffsetParameter | Curve offsetting parameter, exact meaning depends on offsetMode . |
SimplifyTolerance | Tolerance used to approximate cubic curves with quadratic curves. |
Property Descriptions
FlattenMode
Specifies how curves are flattened.
property FlattenMode: TBLFlattenMode read GetFlattenMode write SetFlattenMode
Type: TBLFlattenMode
FlattenTolerance
Tolerance used to flatten curves.
property FlattenTolerance: Double read FFlattenTolerance write FFlattenTolerance
Type: Double
OffsetMode
Specifies how curves are offsetted (used by stroking).
property OffsetMode: TBLOffsetMode read GetOffsetMode write SetOffsetMode
Type: TBLOffsetMode
OffsetParameter
Curve offsetting parameter, exact meaning depends on offsetMode
.
property OffsetParameter: Double read FOffsetParameter write FOffsetParameter
Type: Double
SimplifyTolerance
Tolerance used to approximate cubic curves with quadratic curves.
property SimplifyTolerance: Double read FSimplifyTolerance write FSimplifyTolerance
Type: Double