Create Line (2D)

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Description

This Step is used to create 2D lines based on geometric features such as points and lines.

Usage Scenario

This Step is commonly used to generate feature lines for measurement assistance or as fundamental data for subsequent geometric calculations.

Input and Output

Input

Input port Data type Description

Line

Shape2D/Line

The line used for calculation.

Image

Image

2D image.

Output

Output port Data type Description

Created Line

Shape2D/Line

Created Line

Point X

Number

The X value of the point on the line.

Point Y

Number

The Y value of the point on the line.

Line Angle

Number

Angle between the line and the positive X-axis.

Parameter Description

Line Type

The method to create a line.

For different types of lines, the geometric features input into the Step and the parameters that need to be adjusted will vary accordingly. The specific correspondences are as follows:

Line Type Geometric Features to be Input Parameter Adjustment

Constant Line (Custom)

-

You need to set the coordinates of two constant points in the Parameters section. After the Step is run, it outputs the line connecting the two points.

Given Line

Point 1, Point 2

After the Step is run, it outputs the line connecting the two points. No other parameters need to be adjusted.

Parallel Line from Point and Line

Point, Line

After the Step is run, it outputs a line that passes through the given point and is parallel to the given line. No other parameters need to be adjusted.

Rotate Line around Point

Point, Line

You need to set the Rotation Angle of the line around the point. After the Step is run, it outputs a line rotates around a given point by a specified angle.

Constant Line (Step input)

Line

After the Step is run, it outputs the constant line. No other parameters need to be adjusted.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.