Container for exposure vectors. The polyline mode of a newly created hatching block is bsPolylineIterator.nPolyHatch.
Sets the floating point value attribute with unique identifier sId to the value fValue. The value is set for all hatching blocks which contain the floating point value attribute. The floating point value attribute must be declared using declareBuildAttributes.
sId : Unique identifier of floating point value attribute
fValue : Floating point value
Returns the value of the floating point value attribute with the unique identifier sId. The floating point value attribute must be declared using declareBuildAttributes. If the attribute is not available then the return value is 0.0.
Value of the attribute. If the attribute is not available then the return value is 0.0.
Returns the value of the floating point value attribute with the unique identifier sId. The floating point value attribute must be declared using declareBuildAttributes. If the attribute is not available then the undefined value is returned.
Value of the attribute. If the attribute is not available then the undefined value is returned.
Sets the integer value attribute with unique identifier sId to the value nValue. The value is set for all hatching blocks which contain the integer value attribute. The integer value attribute must be declared using declareBuildAttributes.
sId : Unique identifier of integer value attribute
nValue : Integer value
Returns the value of the integer value attribute with the unique identifier sId. The integer value attribute must be declared using declareBuildAttributes. If the attribute is not available then the return value is 0.
Value of the attribute. If the attribute is not available then the return value is 0.
Returns the value of the integer value attribute with the unique identifier sId. The integer value attribute must be declared using declareBuildAttributes. If the attribute is not available then the undefined value is returned.
Value of the attribute. If the attribute is not available then the undefined value is returned.
Returns the value of the integer value attribute with the unique identifier sId of the point at index nPointIndex. The integer value attribute must be declared using declareBuildAttributes. If the attribute is not available then the return value is 0.
nPointIndex : Index of point (first point at index 0)
sId : Unique identifier of integer value attribute
Value of the attribute. If the attribute is not available then the return value is 0.
Returns the value of the integer value attribute with the unique identifier sId of the point at index nPointIndex. The integer value attribute must be declared using declareBuildAttributes. If the attribute is not available then the undefined value is returned.
nPointIndex : Index of point (first point at index 0)
sId : Unique identifier of integer value attribute
Value of the attribute. If the attribute is not available then the undefined value is returned.
Returns the value of the floating point value attribute with the unique identifier sId of the point at index nPointIndex. The floating point value attribute must be declared using declareBuildAttributes. If the attribute is not available then the return value is 0.0.
nPointIndex : Index of point
sId : Unique identifier of floating point value attribute
Value of the attribute. If the attribute is not available then the return value is 0.0.
Returns the value of the floating point value attribute with the unique identifier sId of the point at index nPointIndex. The floating point value attribute must be declared using declareBuildAttributes. If the attribute is not available then the undefined value is returned.
nPointIndex : Index of point
sId : Unique identifier of floating point value attribute
Value of the attribute. If the attribute is not available then the undefined value is returned.
Sets the integer value attribute with unique identifier a_id of the point at index nPointIndex to the value nValue. The integer value attribute must be declared using declareBuildAttributes.
nPointIndex : Index of point
sId : Unique identifier of integer value attribute
nValue : Integer value
bEdge : If true then the attribute is handled as an edge attribute. If false then the attribute is handled as a point attribute.
Sets the real value attribute with unique identifier sId of the point at index nPointIndex to the value fValue. The real value attribute must be declared using declareBuildAttributes.
nPointIndex : Index of point
sId : Unique identifier of integer value attribute
fValue : real value
bEdge : If true then the attribute is handled as an edge attribute. If false then the attribute is handled as a point attribute.
Remove attributes with given ids.
True if any attributes have been removed, else false.
Remove attributes with given ids.
nPointIndex : Index of point where to remove the attributes (-1 for all points)
sId : Attribute unique identifier(s). Can be a single string (e.g. “bsid”) or an array (e.g. [“bsid1”,”bsid2”])
True if any attributes have been removed.
Calculates the whole length of all exposure vectors in mm.
Whole length of all exposure vectors.
Calculates the whole length of all skip vectors in mm.
Whole length of all skip vectors.
Returns the total number of skip vectors. If the block is not in hatch mode then the result is always zero (see getPolylineMode()).
Total number of skip vectors.
Creates a copy of this container.
Copy of this bsHatchBlock.
Removes all data from the container.
Removes all data from the container.
Check if the container is empty.
true if container is empty. false if container is not empty.
Check if the hatch is a continuous path.
true: open polyline from p0 to pn false: hatch segments p0–p1, p2–p3, etc..
Returns the total number of points.
Total number of points.
Returns the point on given index.
Point data (vec2).
Returns the point at given index.
nIndex : Index of point
point : Point data (vec2)
Returns boundaries.
Point data (bsBounds2D).
Sets the polyline mode.
Returns the polyline mode.
The polyline mode (bsPolylineIterator.nPolyClosed , bsPolylineIterator.nPolyOpen , bsPolylineIterator.nPolyHatch , bsPolylineIterator.nPolyModeInvalid)
Appends point(s) to this container.
Flips the orientation of the exposure data in this bsHatchBlock.
This bsHatchBlock.
Delete all short lines/segments which are shorter than the given length.
Number of deleted lines/segments.
Split all long segments which are longer than the given length. For polygons/polylines the subsegments are processed.
Number of split segments (including subsegments of polygons/polylines).
Queries the part sub-type of the hatch data.
Sub-type of the polyline. E.g. nSubtypePart, nSubtypeSupport (see bsModel).
Links: bsModel
Sets the part sub-type of the hatch data.
Links: bsModel