[go: up one dir, main page]

CN109190275A - Length labeling method and device and computer readable storage medium - Google Patents

Length labeling method and device and computer readable storage medium Download PDF

Info

Publication number
CN109190275A
CN109190275A CN201811070916.9A CN201811070916A CN109190275A CN 109190275 A CN109190275 A CN 109190275A CN 201811070916 A CN201811070916 A CN 201811070916A CN 109190275 A CN109190275 A CN 109190275A
Authority
CN
China
Prior art keywords
length
straightway
point
mark
marked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811070916.9A
Other languages
Chinese (zh)
Other versions
CN109190275B (en
Inventor
赖心秀
凌仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Yanxiu Information Technology Co ltd
Original Assignee
Dongguan Yanxiu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Yanxiu Information Technology Co ltd filed Critical Dongguan Yanxiu Information Technology Co ltd
Priority to CN201811070916.9A priority Critical patent/CN109190275B/en
Publication of CN109190275A publication Critical patent/CN109190275A/en
Application granted granted Critical
Publication of CN109190275B publication Critical patent/CN109190275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种长度标注方法,包括以下步骤:选取待标注长度的直线段;分别分析所述直线段、与所述直线段两端点连接的邻接线条的线条连接类型;若所述线条连接类型为倒角连接,则根据邻接线条的类型分析确定所述直线段端点对应的标注点;若所述线条连接类型不为倒角连接,则以所述直线段端点为标注点;根据所述直线段两端的标注点,计算所述直线段对应的标注长度;根据所述直线段两端的标注点、以及所述标注长度,对所述直线段进行长度标注。本发明还公开了一种长度标注装置及计算机可读存储介质。本发明兼顾了对直线段进行长度标注的精准性和高效性。

The present invention discloses a length marking method, comprising the following steps: selecting a straight line segment to be marked; analyzing the line connection types of the straight line segment and the adjacent lines connected to the two end points of the straight line segment respectively; if the line connection type is a chamfer connection, determining the marking points corresponding to the endpoints of the straight line segment according to the type analysis of the adjacent lines; if the line connection type is not a chamfer connection, using the endpoints of the straight line segment as marking points; calculating the marked length corresponding to the straight line segment according to the marking points at both ends of the straight line segment; marking the length of the straight line segment according to the marking points at both ends of the straight line segment and the marking length. The present invention also discloses a length marking device and a computer-readable storage medium. The present invention takes into account both the accuracy and efficiency of length marking of straight line segments.

Description

Length mask method, device and computer readable storage medium
Technical field
The present invention relates to Computer-aided Design Technology field more particularly to a kind of length mask methods, device and calculating Machine readable storage medium storing program for executing.
Background technique
With the development of science and technology, needing in the various Element Designs of manufacturing industry with CAD (Computer Aided Design, CAD) three-view diagram is drawn to part, and three-view diagram is labeled, for example circle wants diameter dimension, circle Arc wants radius dimension, and rectangle will mark length and width etc..Currently, in CAD software there are two types of common length notation methods: the One is selection straight lines to mark length, and principle is the straight line both ends that will select as mark and marks a length dimension, its advantage is that Click once can be marked quickly, the disadvantage is that numerous parts side in order to beautiful and safety all can rounded corner or oblique angle, so zero The side straight line two-end-point of part is not the real size of part, in order to ensure accurate, with second method, is exactly manually specified Two points are labeled length dimension, and this method is to click two points, and CAD software has the automatic function for capturing point at present Can, when mouse specified point, captures nearest point automatically, if many object-points nearby, it is easy for capturing other points of mistake, from And lead to dimensioning mistake.In conclusion the accuracy and efficiency to straightway progress length mark need to be improved.
Summary of the invention
It is a primary object of the present invention to propose a kind of length mask method, device and computer readable storage medium, purport Solving the existing accuracy to straightway progress length mark and inefficient technical problem.
To achieve the above object, a kind of length mask method provided by the invention, the length mask method comprising steps of
Choose the straightway of length to be marked;
The line and curve connection type of the straightway, the adjoining lines connecting with the straightway two-end-point is analyzed respectively;
If the line and curve connection type is chamfering connection, the straightway end is determined according to the type analysis of adjacent lines The corresponding mark point of point;
It is mark point with the straightway endpoint if the line and curve connection type is not chamfering connection;
According to the mark point at the straightway both ends, the corresponding mark length of the straightway is calculated;
According to the mark point at the straightway both ends and the mark length, length mark is carried out to the straightway.
Optionally, the lines for analyzing the straightway, the adjoining lines connecting with the straightway two-end-point respectively The step of connection type includes:
If the adjacent lines are circular arc lines, and the circular arc lines and the straightway are tangent, then determine the line Connection type is chamfering connection.
Optionally, the lines for analyzing the straightway, the adjoining lines connecting with the straightway two-end-point respectively The step of connection type includes:
If the adjacent lines are straightway, and are 45 degree with the straight line angle of the length to be marked, then institute is determined Line and curve connection type is stated as chamfering connection.
Optionally, it if the line and curve connection type is chamfering connection, is determined according to the type analysis of adjacent lines The step of straightway endpoint corresponding mark point includes:
If the line and curve connection type is chamfering connection, the first end point of the adjacent lines is determined as the straight line The corresponding mark point of Duan Duandian;Wherein, the straightway is connect with the second endpoint of the adjacent lines.
Optionally, the mark point according to the straightway both ends calculates the corresponding mark length of the straightway Step includes:
The coordinate value of the mark point at the straightway both ends is obtained respectively;
It is corresponding with straightway described in straight linear direction calculating according to the coordinate value of the mark at straightway both ends point Mark length.
In addition, to achieve the above object, the present invention also proposes a kind of length annotation equipment, the length annotation equipment packet It includes: memory, processor and being stored in the length marking program that can be run on the memory and on the processor, it is described Length marking program realizes the step of length mask method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable Length marking program is stored on storage medium, the length marking program realizes length as described above when being executed by processor The step of scale injecting method.
Scheme proposed by the present invention, when carrying out length mark to straightway, by the straightway for analyzing length to be marked The line and curve connection type for the adjoining lines connecting with its two-end-point determines the corresponding mark of straightway two-end-point of length to be marked Point calculates the corresponding mark length of straightway of length to be marked according to identified mark point, further according to length to be marked Straightway two-end-point it is corresponding mark point and length to be marked the corresponding mark length of straightway, to length to be marked Straightway carry out length mark.Compared at present directly according to the two-end-point of straightway be mark point, straightway is grown The mode of scale note;Or the mark point for choosing straightway both ends is manually operated by user, length mark is carried out to straightway Mode has taken into account the accuracy and high efficiency that length mark is carried out to straightway.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the hardware running environment for the length annotation equipment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of length mask method first embodiment of the present invention;
Fig. 3 is the flow diagram of length mask method second embodiment of the present invention;
Fig. 4 is the schematic diagram for the optional length mark that the embodiment of the present invention is related to;
Fig. 5 is the schematic diagram for another optional length mark that the embodiment of the present invention is related to;
Fig. 6 is the schematic diagram for another optional length mark that the embodiment of the present invention is related to.
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: to be marked by analyzing when carrying out length mark to straightway The line and curve connection type for the adjoining lines that the straightway of length is connect with its two-end-point determines the straightway both ends of length to be marked The corresponding mark point of point calculates the corresponding mark length of straightway of length to be marked, then root according to identified mark point According to the straightway two-end-point of length to be marked it is corresponding mark point and length to be marked the corresponding mark length of straightway, Length mark is carried out to the straightway of length to be marked.Compared at present directly according to the two-end-point of straightway be mark point, it is right The mode of straightway progress length mark;Or by user be manually operated choose straightway both ends mark point, to straightway into The mode of row length mark has taken into account the accuracy and high efficiency that length mark is carried out to straightway.Through the embodiment of the present invention Technical solution, solve the problems, such as to carry out straightway the accuracy of length mark and inefficient.
The embodiment of the present invention proposes a kind of length annotation equipment.
Referring to Fig.1, Fig. 1 is the length annotation equipment structural representation for the hardware running environment that the embodiment of the present invention is related to Figure.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
As shown in Figure 1, the length annotation equipment may include: processor 1001, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Length is marked it will be understood by those skilled in the art that length annotation equipment structure shown in Fig. 1 is not constituted The restriction of device may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module and length marking program.
In the present invention, the length annotation equipment calls the length stored in memory 1005 mark by processor 1001 Program, and execute following operation:
Choose the straightway of length to be marked;
The line and curve connection type of the straightway, the adjoining lines connecting with the straightway two-end-point is analyzed respectively;
If the line and curve connection type is chamfering connection, the straightway end is determined according to the type analysis of adjacent lines The corresponding mark point of point;
It is mark point with the straightway endpoint if the line and curve connection type is not chamfering connection;
According to the mark point at the straightway both ends, the corresponding mark length of the straightway is calculated;
According to the mark point at the straightway both ends and the mark length, length mark is carried out to the straightway.
Further, processor 1001 can call the length marking program stored in memory 1005, also execute following Operation includes:
If the adjacent lines are circular arc lines, and the circular arc lines and the straightway are tangent, then determine the line Connection type is chamfering connection.
Further, processor 1001 can call the length marking program stored in memory 1005, also execute following Operation includes:
If the adjacent lines are straightway, and are 45 degree with the straight line angle of the length to be marked, then institute is determined Line and curve connection type is stated as chamfering connection.
Further, processor 1001 can call the length marking program stored in memory 1005, also execute following Operation:
If the line and curve connection type is chamfering connection, the first end point of the adjacent lines is determined as the straight line The corresponding mark point of Duan Duandian;Wherein, the straightway is connect with the second endpoint of the adjacent lines.
Further, processor 1001 can call the length marking program stored in memory 1005, also execute following Operation:
The coordinate value of the mark point at the straightway both ends is obtained respectively;
It is corresponding with straightway described in straight linear direction calculating according to the coordinate value of the mark at straightway both ends point Mark length.
The present embodiment through the above scheme, when carrying out length mark to straightway, passes through the straight of analysis length to be marked The line and curve connection type for the adjoining lines that line segment is connect with its two-end-point determines that the straightway two-end-point of length to be marked is corresponding Point is marked, the corresponding mark length of straightway of length to be marked is calculated according to identified mark point, further according to be marked The corresponding mark length of straightway of the corresponding mark point of the straightway two-end-point of length and length to be marked, to be marked The straightway of length carries out length mark.Compared at present directly according to the two-end-point of straightway be mark point, to straightway into The mode of row length mark;Or the mark point for choosing straightway both ends is manually operated by user, long scale is carried out to straightway The mode of note has taken into account the accuracy and high efficiency that length mark is carried out to straightway.
Based on above-mentioned terminal hardware structure and communications network system, each implementation of length mask method of the present invention is proposed Example.
It is the flow diagram of length mask method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the length mask method the following steps are included:
Step S10 chooses the straightway of length to be marked;
In the present embodiment, the length mask method is optional to be applied to terminals such as PC (personal computers), optionally, terminal packet Length annotation equipment described in above-described embodiment is included, terminal carries out length mark to straightway by the length annotation equipment.Tool Body, in the present embodiment, when user needs to a certain straightway progress length mark in editing graph, for example, user couple When straight line section in a certain CAD (Computer Aided Design, CAD) figure carries out length mark, User executes chooses the selection operation of the straightway that will use when terminal detects the selection operation of user as clicked accordingly The straightway that family is chosen is determined as the straightway for the length to be marked chosen.
Step S20 analyzes the line and curve connection of the straightway, the adjoining lines connecting with the straightway two-end-point respectively Type;
Step S30, if the line and curve connection type is chamfering connection, according to the type analysis determination for abutting lines The corresponding mark point of straightway endpoint;It is mark with the straightway endpoint if the line and curve connection type is not chamfering connection Note point;
After the straightway for having chosen length to be marked, terminal divides the line and curve connection situation at the straightway both ends Analysis, optionally, the line and curve connection type of analysis straightway, the adjoining lines being connect with straightway two-end-point.In general, actually answering In scene, the wherein any end at straightway both ends may be that chamfering connection circular arc lines or chamfering connect other Straightway, or other straightways are vertically connected, or be not connected with any lines, in the present embodiment, terminal is for straightway The case where every one end, is analyzed respectively, determines the line and curve connection type of straightway and adjacent lines, wherein line and curve connection type Including but not limited to rounded corner type, bevelling type etc..
Optionally, when the adjoining lines of the straightway of length to be marked are circular arc lines, and circular arc lines and length to be marked The straightway of degree is tangent, then determines that the straightway of length to be marked is connect with the line and curve connection type of adjacent lines for rounded corner.
Optionally, when the adjoining lines of the straightway of length to be marked are straightway, and the straight line of itself and length to be marked Section angle is 45 degree, then determines that the straightway of length to be marked is connect with the line and curve connection type of adjacent lines for bevelling.
A kind of situation, if the straightway of length to be marked is that chamfering connect (rounding with the line and curve connection type of adjacent lines Angle connection or bevelling connection), then terminal determines the straightway endpoint pair of length to be marked according to the type analysis of adjacent lines The circular arc line analysis that the mark point namely terminal answered are connected according to rounded corner determines that the straightway endpoint of length to be marked is corresponding Mark point, alternatively, the straight line piecewise analysis that terminal is connected according to bevelling determines that the straightway endpoint of length to be marked is corresponding Mark point.
Another situation, if the straightway of length to be marked is not that chamfering is connect with the line and curve connection type of adjacent lines, Then terminal is mark point with the straightway endpoint of length to be marked.
Still another situation, if the straightway of length to be marked is not connected with any lines, terminal is with length to be marked Straightway endpoint is mark point.
Step S40 calculates the corresponding mark length of the straightway according to the mark point at the straightway both ends;
After the mark point that the straightway both ends of length to be marked have been determined respectively through the above way, terminal is according to wait mark The mark point for infusing the straightway both ends of length, calculates the corresponding mark length of straightway of length to be marked.
Optionally, the step S40 includes:
Step a obtains the coordinate value of the mark point at the straightway both ends respectively;
Step b, according to the coordinate value of the mark at straightway both ends point, with straightway described in straight linear direction calculating Corresponding mark length.
Optionally, after the mark point that the straightway both ends of length to be marked have been determined respectively through the above way, terminal The coordinate value of the mark point at the straightway both ends of length to be marked is obtained respectively.Later, terminal is according to the straight line of length to be marked The coordinate value of the mark point at section both ends, the corresponding mark length of straightway that length to be marked is calculated with straight linear telegoniometer. For example, it is assumed that terminal obtain respectively the straightway both ends of length to be marked mark point coordinate value be (x1, y1), (x2, y2), Then terminal is according to formulaCalculate the corresponding mark length L of straightway of length to be marked.
Step S50 carries out the straightway according to the mark point at the straightway both ends and the mark length Length mark.
Terminal is corresponding in the straightway of the mark point and length to be marked that obtain the straightway both ends of length to be marked After marking length, according to the mark point at the straightway both ends of length to be marked and the corresponding mark of straightway of length to be marked Length is infused, length mark is carried out to the straightway of length to be marked.
Scheme provided in this embodiment, when carrying out length mark to straightway, by the straight line for analyzing length to be marked The line and curve connection type of the adjoining lines of Duan Yuqi two-end-point connection, determines the corresponding mark of straightway two-end-point of length to be marked Point is infused, the corresponding mark length of straightway of length to be marked is calculated according to identified mark point, further according to length to be marked The corresponding mark length of straightway of the corresponding mark point of the straightway two-end-point of degree and length to be marked, to length to be marked The straightway of degree carries out length mark.Compared at present directly according to the two-end-point of straightway be mark point, to straightway carry out The mode of length mark;Or the mark point for choosing straightway both ends is manually operated by user, length mark is carried out to straightway Mode, taken into account to straightway carry out length mark accuracy and high efficiency.
Further, as shown in figure 3, proposing length mask method second embodiment of the present invention based on first embodiment.? In length mask method second embodiment, the step S30 includes:
Step S31 is mark point with the straightway endpoint if the line and curve connection type is not chamfering connection;If The line and curve connection type is chamfering connection, then it is corresponding the first end point of the adjacent lines to be determined as the straightway endpoint Mark point;Wherein, the straightway is connect with the second endpoint of the adjacent lines.
In the present embodiment, if the straightway of length to be marked is that chamfering is connect with the line and curve connection type of adjacent lines, this In the case of kind, terminal will abut against the endpoint of the straightway for being not connected with length to be marked of lines, be determined as the straight of length to be marked The corresponding mark point of line segment endpoint.For ease of description, it hereafter will abut against the straightway for being not connected with length to be marked of lines Endpoint is known as first end point, and the endpoint that will abut against the straightway of the connection length to be marked of lines is known as the second endpoint, namely to The straightway for marking length is connect with the second endpoint of adjacent lines, the first end of the straightway of length to be marked and adjacent lines Point is not connected to.
For example, if the straightway rounded corner of length to be marked connects circular arc lines, the straightway and circular arc of length to be marked The first end point of lines is not connected to, and is connect with the second endpoint of circular arc lines, then terminal is by the first end point of circular arc lines, really It is set to the corresponding mark point of straightway endpoint of length to be marked.
For another example, if a certain other straightways of the straightway bevelling connection of length to be marked, the straight line of length to be marked Section and the first end points of other straightways are not connected to, and are connect with the second endpoint of other straightways, then terminal is by other straight lines The first end point of section, is determined as the corresponding mark point of straightway endpoint of length to be marked.
Several specific examples are set forth below length mask method of the present invention is described in detail:
Example one, the straightway both ends of length to be marked vertically connect two other straightways, for example, as shown in figure 4, to The straightway two-end-point P1 point and P2 point for marking length are separately connected two other straightways, then with straightway two-end-point P1 point and P2 point is the mark point at the straightway both ends of length to be marked.Later, according to P1 point and P2 point, the straight of length to be marked is calculated The corresponding mark length L1 of line segment, and according to the mark point P1 point and P2 point at the straightway both ends of length to be marked, and wait mark The corresponding mark length L1 of straightway for infusing length carries out length mark to the straightway of length to be marked.
The straightway both ends rounded corner of example two, length to be marked connects circular arc lines, for example, as shown in figure 5, to be marked The straightway both ends of length are separately connected the P3 point and P4 point of two circular arc lines, then respectively by the P5 point of two circular arc lines and P6 point is determined as the mark point at the straightway both ends of length to be marked.Later, according to P5 point and P6 point, length to be marked is calculated The corresponding mark length L2 of straightway, and according to the mark point P5 point and P6 point at the straightway both ends of length to be marked, and The corresponding mark length L2 of the straightway of length to be marked carries out length mark to the straightway of length to be marked.
The straightway both ends bevelling of example three, length to be marked connects straightway, for example, as shown in fig. 6, length to be marked The straightway both ends of degree are separately connected the P7 point and P8 point of two straightways, then respectively by the P9 point of two straightways and P10 point It is determined as the mark point at the straightway both ends of length to be marked.Later, according to P9 point and P10 point, length to be marked is calculated The corresponding mark length L3 of straightway, and according to the mark point P9 point and P10 point at the straightway both ends of length to be marked, and to The corresponding mark length L3 of straightway for marking length carries out length mark to the straightway of length to be marked.
Example four, one end chamfer of straightway of length to be marked connects adjacent lines, and (such as bevelling connects straightway, or falls Fillet connects circular arc lines), the other end does not have chamfering to connect adjacent lines (as vertically connected other straightways, or not connected neighbour Terminal strip), then it will abut against the endpoint of the straightway for being not connected with length to be marked of lines, be determined as the straightway of length to be marked The corresponding first mark point in one end, the endpoint with the straightway other end (connecting adjacent lines without chamfering) of length to be marked are Second mark point according to the first mark point and the second mark point, calculates the corresponding mark of straightway of length to be marked later Length, and according to the corresponding mark length of straightway of the first mark point and the second mark point and length to be marked, treat mark The straightway for infusing length carries out length mark.
Scheme provided in this embodiment is chamfering in the straightway of length to be marked and the line and curve connection type of adjacent lines When connection, the endpoint of the straightway for being not connected with length to be marked of lines will abut against, be determined as the straightway end of length to be marked The corresponding mark point of point, and then according to the determining corresponding mark length of straightway for marking point and calculating length to be marked, and According to mark point and mark length, length mark is carried out to the straightway of length to be marked, rather than directly with length to be marked The endpoint of the straightway of degree is mark point, carries out length mark to the straightway of length to be marked, this improves to straightway Carry out the accuracy of length mark.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with length marking program, following operation is realized when the length marking program is executed by processor:
Choose the straightway of length to be marked;
The line and curve connection type of the straightway, the adjoining lines connecting with the straightway two-end-point is analyzed respectively;
If the line and curve connection type is chamfering connection, the straightway end is determined according to the type analysis of adjacent lines The corresponding mark point of point;
It is mark point with the straightway endpoint if the line and curve connection type is not chamfering connection;
According to the mark point at the straightway both ends, the corresponding mark length of the straightway is calculated;
According to the mark point at the straightway both ends and the mark length, length mark is carried out to the straightway.
Further, following operation is also realized when the length marking program is executed by processor:
If the adjacent lines are circular arc lines, and the circular arc lines and the straightway are tangent, then determine the line Connection type is chamfering connection.
Further, following operation is also realized when the length marking program is executed by processor:
If the adjacent lines are straightway, and are 45 degree with the straight line angle of the length to be marked, then institute is determined Line and curve connection type is stated as chamfering connection.
Further, following operation is also realized when the length marking program is executed by processor:
If the line and curve connection type is chamfering connection, the first end point of the adjacent lines is determined as the straight line The corresponding mark point of Duan Duandian;Wherein, the straightway is connect with the second endpoint of the adjacent lines.
Further, following operation is also realized when the length marking program is executed by processor:
The coordinate value of the mark point at the straightway both ends is obtained respectively;
It is corresponding with straightway described in straight linear direction calculating according to the coordinate value of the mark at straightway both ends point Mark length.
Scheme provided in this embodiment, when carrying out length mark to straightway, by the straight line for analyzing length to be marked The line and curve connection type of the adjoining lines of Duan Yuqi two-end-point connection, determines the corresponding mark of straightway two-end-point of length to be marked Point is infused, the corresponding mark length of straightway of length to be marked is calculated according to identified mark point, further according to length to be marked The corresponding mark length of straightway of the corresponding mark point of the straightway two-end-point of degree and length to be marked, to length to be marked The straightway of degree carries out length mark.Compared at present directly according to the two-end-point of straightway be mark point, to straightway carry out The mode of length mark;Or the mark point for choosing straightway both ends is manually operated by user, length mark is carried out to straightway Mode, taken into account to straightway carry out length mark accuracy and high efficiency.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (7)

1. a kind of length mask method, which is characterized in that the length mask method the following steps are included:
Choose the straightway of length to be marked;
The line and curve connection type of the straightway, the adjoining lines connecting with the straightway two-end-point is analyzed respectively;
If the line and curve connection type is chamfering connection, the straightway endpoint pair is determined according to the type analysis of adjacent lines The mark point answered;
It is mark point with the straightway endpoint if the line and curve connection type is not chamfering connection;
According to the mark point at the straightway both ends, the corresponding mark length of the straightway is calculated;
According to the mark point at the straightway both ends and the mark length, length mark is carried out to the straightway.
2. length mask method as described in claim 1, which is characterized in that it is described analyze respectively the straightway, with it is described Straightway two-end-point connection adjoining lines line and curve connection type the step of include:
If the adjacent lines are circular arc lines, and the circular arc lines and the straightway are tangent, then determine that the lines connect Type is connect as chamfering connection.
3. length mask method as described in claim 1, which is characterized in that it is described analyze respectively the straightway, with it is described Straightway two-end-point connection adjoining lines line and curve connection type the step of include:
If the adjacent lines are straightway, and are 45 degree with the straight line angle of the length to be marked, then the line is determined Connection type is chamfering connection.
4. length mask method as described in claim 1, which is characterized in that if the line and curve connection type is chamfering company The step of connecing, then determining the straightway endpoint corresponding mark point according to the type analysis of adjacent lines include:
If the line and curve connection type is chamfering connection, the first end point of the adjacent lines is determined as the straightway end The corresponding mark point of point;Wherein, the straightway is connect with the second endpoint of the adjacent lines.
5. length mask method as described in claim 1, which is characterized in that the mark according to the straightway both ends Point, the step of calculating the straightway corresponding mark length include:
The coordinate value of the mark point at the straightway both ends is obtained respectively;
According to the coordinate value of the mark at straightway both ends point, with the corresponding mark of straightway described in straight linear direction calculating Length.
6. a kind of length annotation equipment, which is characterized in that the length annotation equipment includes: memory, processor and is stored in On the memory and the length marking program that can run on the processor, the length marking program is by the processor The step of length mask method according to any one of claims 1 to 5 is realized when execution.
7. a kind of computer readable storage medium, which is characterized in that be stored with long scale on the computer readable storage medium Program is infused, the length marking program realizes length mark according to any one of claims 1 to 5 when being executed by processor The step of method.
CN201811070916.9A 2018-09-13 2018-09-13 Length labeling method and device and computer readable storage medium Active CN109190275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811070916.9A CN109190275B (en) 2018-09-13 2018-09-13 Length labeling method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811070916.9A CN109190275B (en) 2018-09-13 2018-09-13 Length labeling method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109190275A true CN109190275A (en) 2019-01-11
CN109190275B CN109190275B (en) 2022-11-08

Family

ID=64911085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811070916.9A Active CN109190275B (en) 2018-09-13 2018-09-13 Length labeling method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109190275B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729750A (en) * 1994-06-11 1998-03-17 Rohm Co. Ltd. Automatic dimensioning in computer aided design
CN104008192A (en) * 2014-06-13 2014-08-27 上海优摩科技有限公司 Analysis method for automatically annotating graph size
CN107766847A (en) * 2017-11-21 2018-03-06 海信集团有限公司 A kind of method for detecting lane lines and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729750A (en) * 1994-06-11 1998-03-17 Rohm Co. Ltd. Automatic dimensioning in computer aided design
CN104008192A (en) * 2014-06-13 2014-08-27 上海优摩科技有限公司 Analysis method for automatically annotating graph size
CN107766847A (en) * 2017-11-21 2018-03-06 海信集团有限公司 A kind of method for detecting lane lines and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕孟文: "标注尺寸软件的设计及其应用", 《沈阳工业大学学报》 *

Also Published As

Publication number Publication date
CN109190275B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN108121862B (en) An automatic labeling method for engineering drawings based on 3D geometric features
US20130278638A1 (en) Flowchart drawing apparatus, flowchart drawing method and program
CN107944324A (en) A kind of Quick Response Code distortion correction method and device
CN112015405B (en) Interface layout file generation method, interface generation method, device and equipment
CN109445901A (en) A kind of method for drafting and device of the vector graphics implementation across file format
CN104657077A (en) Cursor positioning method
CN100383797C (en) A Hierarchical Netlist Extraction Method for Integrated Circuit Layout
CN111773671A (en) Method and device for controlling movement of virtual object and terminal equipment
CN108804016A (en) Object identification method based on touch screen, device and electronic equipment
CN106780742B (en) Three-dimensional bar distribution method for volute structure
CN109190275A (en) Length labeling method and device and computer readable storage medium
JP2006317450A5 (en)
CN106815410A (en) Cable method for drafting and device
CN114241032A (en) Area division method, device, equipment and storage medium based on area analysis
CN104657078B (en) A kind of terminal
CN104298807B (en) The intelligent generation method and system of stamping mold pipe-line system
CN101211382A (en) Method for automatically correcting circuit diagram frame
CN105068808A (en) Dynamic configuration method and system of rules on the basis of SAP (System Applications and Products) platform
CN114119809A (en) Graphic merging method, apparatus, device and storage medium
US7840929B2 (en) Method for automatically modifying frame of circuit diagram
CN109144499B (en) Method for realizing progress bar positioning based on graphical programming platform and electronic equipment
CN114926473A (en) House area display device, method and computer readable medium
CN113763142A (en) Payroll data calculation method, system, corresponding computer device and storage medium
CN108121872A (en) A quick way to highlight parts
CN117972862B (en) Roof slope finding layer model generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant