SketchLines.addEdgePolygon Method

Parent Object: SketchLines
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/SketchLines.h>

Description

Creates a polygon where two points specify an edge of the polygon. By specifying an edge, the size and position of the polygon is also defined.

Syntax

"sketchLines_var" is a variable referencing a SketchLines object.
returnValue = sketchLines_var.addEdgePolygon(pointOne, pointTwo, isRight, edgeCount)
"sketchLines_var" is a variable referencing a SketchLines object.

#include <Fusion/Sketch/SketchLines.h>

returnValue = sketchLines_var->addEdgePolygon(pointOne, pointTwo, isRight, edgeCount);

Return Value

Type Description
SketchLineList Returns a list of the sketch lines that were created to represent the polygon or null in the case of bad input.

Parameters

Name Type Description
pointOne Base The first point of the edge.
pointTwo Base The second point of the edge.
isRight boolean After defining points one and two, a polygon can be created on either side of the line defined by the two points. This argument specifies which side of the line the polygon will be created on. If this is true, the polygon will be created to the right of the line from the perspective of looking from point one to point two. If false, it will be to the left of the line.
edgeCount integer The number of edges in the resulting polygon.

Version

Introduced in version January 2024