An arc is a portion of the circumference of a circle drawn in the XY plane. The Arc design is defined by the startAngle, endAngle, radius and the position.
Angles are measured from the +X axis counter-clockwise about the +Z axis
Parameter Rules
endAngle: | Ending angle in degrees from +X axis |
Example: | 180 ; |
radius: | Radius of the arc |
Example: | 0.375 ; |
startAngle: | Starting angle in degrees from +X axis |
Example: | 90 ; |
facetResolution: | The number of segments per arc segment. |
Example: | 32 |
Mixins
ArcRenderMixin
BaseAssembly
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
endAngle |
number |
360 |
Inputs |
Cached |
radius |
number |
1.0 |
Inputs |
Cached |
startAngle |
number |
0.0 |
Inputs |
Cached |
facetResolution |
integer |
32 |
Geometry |
Cached |
Project Example:
In your kBridge Examples Projects folder, open the project called ‘Geometry Examples’.
Reference Location:
'world.geometry_examples.arc_line.arc_ltop'
Link: https://knowledgebridge.engineer/projects
Open the Geometry Examples project.
If you look at the Geometry Examples design you will see in the Arc_LTop design these parameter settings:
endAngle: | 180 |
radius: | this.Test1Radius <0.375> |
startAngle: | 90 |
position: | var myRadius = child.radius; |
var x = this.Test1Width/2-myRadius; |
var y = this.Test1Length/2-myRadius; |
return { origin: p(-x,y , 0, this.parent.transform ) }; |
Note: | //The position or origin is the center of the radius (arc). |