CN116524072A - Section view generation method, device, equipment and storage medium - Google Patents

Section view generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN116524072A
CN116524072A CN202310432248.4A CN202310432248A CN116524072A CN 116524072 A CN116524072 A CN 116524072A CN 202310432248 A CN202310432248 A CN 202310432248A CN 116524072 A CN116524072 A CN 116524072A
Authority
CN
China
Prior art keywords
section
view
line
sectional
determining
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.)
Pending
Application number
CN202310432248.4A
Other languages
Chinese (zh)
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.)
GAC Toyota Motor Co Ltd
Original Assignee
GAC Toyota Motor 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 GAC Toyota Motor Co Ltd filed Critical GAC Toyota Motor Co Ltd
Priority to CN202310432248.4A priority Critical patent/CN116524072A/en
Publication of CN116524072A publication Critical patent/CN116524072A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computational Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a section view generation method, a device, equipment and a storage medium, which belong to the technical field of computer aided design, wherein the section view generation method comprises the following steps: identifying a cross-section line of the view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed; determining the section direction of the section view; and generating a section view based on the section line and the section direction. According to the method and the device, the identifiable section lines with the line attribute different from other straight lines in the view to be processed are set in advance in the view to be processed, so that when the section view is generated later, all the section lines can be identified in the view to be processed through the line attribute of the section lines, and after the section direction of the section lines is determined, a plurality of section views can be generated directly according to the section lines and the section direction, and therefore mass production of the section views is achieved.

Description

Section view generation method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer aided design technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a section view.
Background
Three-dimensional processing software such as CATIA may provide an end-to-end (end to end) solution for the design and manufacture of various vehicles.
However, when a section view is generated by adopting three-dimensional processing software such as CATIA, a module is generally adopted to generate the section view, and the tool cannot self-define the pattern of the generated section view, so that the section view can only be generated according to a default pattern, then the section view is modified, and the tool cannot generate a plurality of section views at the same time, and only a single section view can be generated, so that the operation of generating the section view is complicated.
Disclosure of Invention
The main purpose of the application is to provide a section view generation method, a device, equipment and a storage medium, which aim to solve the technical problem that the section view generation cannot be generated in batches.
In order to achieve the above object, the present application provides a section view generating method, including:
identifying a cross-section line of the view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed;
determining the section direction of the section view;
and generating a section view based on the section line and the section direction.
Optionally, the determining the section direction of the section view includes:
determining a starting point and an ending point of the section line;
determining a target included angle between the section line and a horizontal line based on the starting point and the ending point;
and searching a mapping relation table based on the target included angle, and determining the section direction of the section view, wherein the mapping relation table comprises a corresponding relation between the included angle and the section direction.
Optionally, the determining the section direction of the section view includes:
determining the view direction of the view to be processed;
and determining the section direction of the section view based on the view direction and the target included angle.
Optionally, the generating a section view based on the section line and the section direction includes:
determining a current character of the character sequence; the character sequence comprises preset characters and non-preset character sequences;
determining a section name of the section view based on the current character;
generating the section view based on the section line, the section direction, and the section name;
judging whether the section name contains preset character information or not;
if the section name contains the preset character, updating the current character based on the next character of the current character, and returning to execute the section name based on the current character to determine the section name of the section view.
Optionally, after the determining whether the section name contains the special character, the method further includes:
and if the section name does not contain the preset character, modifying the display information of the section view.
Optionally, the display information includes position information and/or section names of the section views in the view;
the modifying the display information of the section view comprises the following steps:
modifying the position of the section view in the view, and the section name of the section view in the view.
Optionally, the display information further includes hundred-grid line information;
the modifying the display information of the section view comprises the following steps:
hundred grid lines are added in the view of the section view.
In a second aspect, the present application provides a section view generating apparatus, including:
the identifying module is used for identifying the section line of the view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed;
the determining module is used for determining the section direction of the section view;
and the generation module is used for generating a section view based on the section line and the section direction.
In a third aspect, the present application provides a section view generating apparatus comprising a memory, a processor and a section view generating program stored on the memory and executable on the processor, the section view generating program being configured to implement the steps of the section view generating method as described above.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when processed, performs the sectional view generation method of any embodiment of the present application.
Compared with the prior art, the section view generation method provided by the embodiment of the application adopts the module self-contained tool to generate the section view, and the identifiable section lines with line properties different from other straight lines in the to-be-processed view are set in advance in the to-be-processed view, so that when the section view is generated subsequently, all the section lines can be quickly identified in the to-be-processed view through the line properties of the section lines, and after the section direction of the section line is determined, a plurality of section views can be directly generated according to the section lines and the section direction, and the batch production of the section views is realized.
Drawings
FIG. 1 is a schematic diagram of a hardware structure of an embodiment of a method for generating a cross-sectional view of the present application;
FIG. 2 is a schematic flow chart of a first embodiment of a method for generating a cross-sectional view of the present application;
FIG. 3 is a schematic flow chart of a second embodiment of a method for generating a cross-sectional view of the present application;
FIG. 4 is a schematic illustration of a cross-sectional direction determination of the present application;
FIG. 5 is a schematic flow chart of a third embodiment of a method for generating a cross-sectional view of the present application;
fig. 6 is a schematic diagram of a structural frame of a cross-sectional view generating device of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the prior art, when the CATIA is adopted to generate the section view, a module is generally adopted to generate the section view by a tool, and the tool can not self-define the pattern of the generated section view, and can only generate the section view according to the default pattern, then modify the section view, and can not generate a plurality of section views at the same time and can only generate a single section view, so that the operation of generating the section view is complicated.
Compared with the prior art, the method has the advantages that the module is adopted to generate the section view from the tool, identifiable section lines with line properties different from other straight lines in the view to be processed are set in advance in the view to be processed, so that when the section view is generated subsequently, all section lines can be identified in the view to be processed rapidly through the line properties of the section lines, the section direction is determined according to each section line, and the section view can be generated in batches.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a cross-sectional view generating device of a hardware running environment according to an embodiment of the present application.
As shown in fig. 1, the playback terminal may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is not limiting of the playback terminal and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a sectional view generation program may be included in the memory 1005 as one type of storage medium.
In the sectional view generating apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the section view generating apparatus of the present application may be provided in the section view generating apparatus, and the section view generating apparatus calls the section view generating program stored in the memory 1005 through the processor 1001 and executes the section view generating method provided in the embodiment of the present application.
Based on the hardware structure of the section view generating device, but not limited to the hardware structure, the application provides a first embodiment of a section view generating method. Referring to fig. 2, fig. 2 shows a schematic flow chart of a first embodiment of the application cross-sectional view generation method.
It should be noted that although a logical order is depicted in the flowchart, in some cases the steps depicted or described may be performed in a different order than presented herein.
In this embodiment, the section view generation method includes:
and S1, identifying the section line of the view to be processed.
Wherein the cross-section line has a line property that is different from the other line segments in the view to be processed.
The main body of execution of the section view generation method is a section view generation device, and the section view generation device is provided with a section view generation program, and when the section view generation device executes the section view generation program, the steps of the section view generation method of the present application are realized.
In this embodiment, the view to be processed may be a view object of a cross-sectional view of a product to be processed, where the view object may be a front view, a top view, or a view drawn from other view directions of the product to be processed.
The section lines are used to indicate the locations in the view to be processed where the section structure needs to be displayed. In this embodiment, the cross-section lines have a line property different from the other line segments in the view to be processed, so that the terminal device can recognize all the cross-section lines from all the line segments of the view to be processed. The line attribute may be color, line width, line type, etc. of the section line, for example, in CATIA, the section line may be separately configured as a special layer, and the layer attribute is different from other layers.
Specifically, a plurality of initial layers may be built in the CATIA, and a layer style of each initial layer may be customized, for example, a line type, a line width, and a color of a line in the initial layer may be customized. After defining the style of the initial layer, a to-be-processed view of the to-be-processed product can be generated on the initial layer, after the to-be-processed view is generated, a new layer is built, the style of the new layer is defined as a style which is not used before, and then at least one section line is generated by using the new layer.
And S2, determining the section direction of the section view.
It will be appreciated that the cross-sectional direction of the cross-sectional view is determined in order to determine from which side of the cross-sectional line the projection is made to the other side thereof for the view to be processed.
And S3, generating a section view based on the section line and the section direction.
After determining the section line and the section direction, i.e. determining which side of the section line is projected to the other side thereof, a new blank view can be constructed, the prefix of the blank view can be customized as a blank, the projection is led into the blank view, and the blank view is defined as the section view, so that the section view can be generated.
In this embodiment, by setting identifiable section lines with line properties different from other straight lines in the view to be processed in advance in the view to be processed, when the section view is generated later, all the section lines can be quickly identified in the view to be processed through the line properties of the section lines, and after determining the section directions of the section lines, a plurality of section views can be directly generated according to the section lines and the section directions, thereby realizing mass production of the section views.
Further, as an embodiment, referring to fig. 3, the present application provides a second embodiment of the sectional view generating method.
In this embodiment, step S20 includes:
step S21, determining a starting point and an ending point of the section line.
And S22, determining a target included angle between the section line and the horizontal line based on the starting point and the ending point.
Step S23, a mapping relation table is searched based on the target included angle, the section direction of the section view is determined, and the mapping relation table comprises the corresponding relation between the included angle and the section direction.
In this embodiment, the target angle may be an angle between a section line and a horizontal line in the direction in which the section line extends. The mapping relation table may be a relation table in which included angles stored in the terminal device correspond to the section direction.
In this embodiment, the end point and the start point of the section line are located at both ends of the section line, respectively. Specifically, in the view to be processed, after determining the section line, it is necessary to determine the extending direction of the section line, and take the end point at the end of the section line in the extending direction as the end point of the section line and the end point at the end opposite to the extending direction as the start point of the section line.
When a cross-sectional view is generated using the CATIA self-contained tool, a user is required to manually specify the cross-sectional direction. Or determining the section direction by a CATIA section direction judging method, namely determining the starting point and the ending point of the section line according to the sequence of drawing the section line in the process of drawing the section line, wherein the starting point and the ending point are the first point and the second point, and the direction from the starting point to the ending point of the section line is the section direction. Because the view direction of the section view defaults to the right side of the section direction, and the view direction of the section view cannot be changed when the default method is adopted for generating, the section direction determined by adopting the method does not meet the drawing requirement, and confusion is easy to occur. For example, when the same section line is drawn twice, the starting point and the ending point of the two section lines are opposite, that is, the starting point of the first section line is the ending point of the second section line, and the ending point of the first section line is the starting point of the second section.
In this embodiment, in order to avoid the occurrence of opposite section directions, after determining the section line in the view to be processed, according to the extending direction of the section line, after determining the start point and the end point of the section line, the start point is taken as the origin of coordinates, the rectangular coordinate system is used, the end coordinate point of the end point is determined, and the target included angle between the section line and the horizontal line is determined based on the coordinate information of the end coordinate point and the coordinate information of the start point. For example, when the coordinate information of the start point is (0, 0) and the coordinate information of the end coordinate point is (1, 1), it is possible to determine that the target angle is 45 °.
As an alternative embodiment, step S23 specifically includes:
step S231, determining a view direction of the view to be processed.
When drawing the view of the product to be processed, the product to be processed needs to be observed from multiple directions so as to draw the shape and the structure of the product to be processed, which are observed from different angles. It will be appreciated that, after the product to be treated is observed from the first direction to obtain a first drawn view, the product to be treated is also observed from a second direction opposite to the first direction to obtain a second drawn view, where the view direction of the first view may be denoted by-X and the view direction of the second view may be denoted by X. For example, when the product to be treated is observed in the direction from top to bottom, a first view of the product to be treated is drawn, and then the product to be treated is also observed in the direction from bottom to top, a second view of the product to be treated is drawn
And step 232, determining the section direction of the section view based on the view direction and the target included angle.
In this embodiment, in order to avoid that the starting point and the ending point are different, but the same section line has opposite section directions, it is ensured that the view directions of the section views are all on the right side of the section line, so that when determining the section directions, the section directions of the section views need to be determined in combination with the view directions of the views to be processed.
Specifically, as shown in fig. 4, when the view direction of the view to be processed is-X, it is determined that the target included angle between the section line N-N and the horizontal line is smaller than 45 °, and in the mapping relation table, it may be determined that the section direction is projected from top to bottom. The target included angle between the section line M-M and the horizontal line is larger than 45 degrees, and in the mapping relation table, the section direction can be determined to be projected from left to right. When the view direction of the view to be processed is X, determining that the target included angle between the section line L-L and the horizontal line is smaller than 45 degrees, and determining that the section direction is projected from top to bottom. The target included angle between the section line K-K and the horizontal line is larger than 45 degrees, and in the mapping relation table, the section direction can be determined to be projected from right to left. The cross-sectional direction is indicated by an arrow on the cross-sectional line side in fig. 4.
In this embodiment, after the target included angle between the section line and the horizontal line is determined according to the start point and the end point of the section line, the section direction is determined according to the view direction of the view to be processed and the target included angle, so that the opposite section directions of the section lines with different start points and end points but the same line attribute can be avoided, and the view directions of the section views are ensured to be on the right side of the section lines, thereby avoiding confusion of the section views.
Further, as an embodiment, referring to fig. 5, the present application provides a third embodiment of the sectional view generating method.
In this embodiment, step S3 includes:
step S31, determining the current character of the character sequence; the character sequence includes a preset character and a non-preset character sequence.
And step S32, determining the section name of the section view based on the current character.
And step S33, generating the section view based on the section line, the section direction and the section name.
And step S34, judging whether the section name contains preset character information.
And step S36, if the section name contains preset character information, updating the current character based on the next character of the current character.
The process returns to step S32.
The section view generating device may generate a plurality of section views at the same time or sequentially in the order of arrangement when executing step S3. The order may be an order of section line generation, or may be generated according to a specific position of the section line in the view to be processed and a preset order generation rule. In order to avoid the situation that the section views are disordered, the section names of the section views can be sequentially determined according to the sequentially arranged characters in the character sequence when the plurality of section views are sequentially generated.
In this embodiment, the character sequence may be a plurality of character objects arranged in order, and each character object may be a single character or a character group composed of a plurality of characters. As a single character may be A, B, C, etc., the character set may be AI, AN, AO, etc.
Specifically, when the section view is the ith section view, the ith character in the character sequence can be used as the current character, and the section name of the section view can be determined according to the ith character. If the ith section view is the first section view, the section name A-A of the section view can be determined by taking the first character in the character sequence as the current character, namely the character A as the current character, and the first section view can be generated according to the section line, the section direction and the section name A-A. When the ith section view is the second section view, the second character in the character sequence can be used as the current character, namely the character B is used as the current character, the section name of the section view is determined to be B-B, and the second section view can be generated according to the section line, the section direction and the section name B-B. When the section view is the fifth section view, the 5 th character in the character sequence can be used as the current character, namely the character E is used as the current character, the section name E-E is determined, and the fifth section view can be generated according to the section line, the section direction and the section name E-E. Because the generating sequence of the section view corresponds to the sequence of the single character object in the character sequence, when the current character corresponding to the section view is a preset character, the section name is still determined according to the preset character, so that the section name of the section view is an invalid name.
In this embodiment, in order to avoid generating an invalid name, after determining the cross-section name of the cross-section view based on the current character, generating the cross-section view based on the cross-section line, the cross-section direction, and the cross-section name, it is recognized whether or not a preset character is included in the cross-section name, for example I, O, AI, AO. When the section name contains a preset character, updating the current character based on the next character of the current character, determining the section name based on the updated current character, and generating a section view based on the section name, the section line and the section direction. For example, when the section view is the 9 th section view, the 9 th character in the character sequence is used as the current character, namely the character I is used as the current character, the section name is determined to be I-I, the next character J of the character I is used as the current character at the moment because the section name contains the preset character I, the section name is determined to be J-J, and the section view is generated based on the section name J-J, the section line and the section direction.
In this embodiment, when the section name of the current section view includes a preset character, the current character may be updated based on the next character of the current character, a new section name may be determined based on the updated current character, and finally a new section view may be generated based on the new section name, the section line and the section direction, and the section name includes the section view of the preset character, thereby realizing the purpose of skipping the preset character.
Further, as an embodiment, in the specific line of sight, after step S34, the method further includes:
and step S35, if the section name does not contain preset characters, modifying the display information of the section view.
As an alternative embodiment, the presentation information may be at least one of position information of the section view and a section name.
The position information may be a current position of the sectional view in the view, e.g., a center position or an upper left corner edge position of the sectional view in the view.
Specifically, the position information of the section view may be modified, the section name of the section view may be modified, and both the position information of the section view and the section name may be modified. For example, there are five cross-sectional views in the view, and the interval distance between the five cross-sectional views is larger, and at this time, the positions of the respective cross-sectional views may be adjusted to reduce the interval distance between the cross-sectional views. Alternatively, when the cross-sectional view with the cross-sectional names of A-A and B-B is the cross-sectional view with the view direction of X, and the cross-sectional view with the cross-sectional name of C-C, D-D, E-E is the cross-sectional view with the view direction of X, in order to avoid mixing the cross-sectional views with two different view directions, the cross-sectional names of the cross-sectional views may be modified, for example, the cross-sectional names of the cross-sectional views with the cross-sectional names of A-A and B-B are modified to A-A and B-B, and the cross-sectional name of the cross-sectional view with the cross-sectional name of C-C, D-D, E-E is modified to C-C, D-D, E-E.
As an alternative embodiment, the presentation information may also be hundred grid line information. In the CATIA drawing, coordinate line information of part positioning and measuring standards is provided for a to-be-processed view of a to-be-processed product, namely hundred-grid line information.
Specifically, the hundred Grid lines can be added through an auxiliary tool "Draw-Grid", for example, after the auxiliary tool "Draw-Grid" is activated in the CATIA drawing software, the auxiliary tool "Draw-Grid" is opened in the CATIA drawing software, the distance between the hundred Grid lines is input in a prompt box and is determined, and then the position of the section view in the view is clicked, so that the hundred Grid lines can be added in the view of the section view. It should be noted that, when the larger the hundred-grid line pitch entered by the user in the prompt box, the larger the difference between the adjacent two lines.
In this embodiment, when the section name does not contain the preset character, the display information of the section view may be modified at this time, for example, the position of the section view in the view may be adjusted, or the section name of the section view may be modified, and a hundred grid lines may be added to the view of the section view, so that the section view style may be customized, so that the user may adjust the style of the section view according to the actual requirement.
Based on the same application conception, the application provides a section view generating device, and referring to fig. 6, fig. 6 is a schematic block diagram of a first embodiment of the section view generating device of the application.
An identification module 1 for identifying a section line of a view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed;
a determining module 2, configured to determine a section direction of the section view;
and the generation module 3 is used for generating a section view based on the section line and the section direction.
It should be noted that, in this embodiment, each implementation manner of the section view generating device and the technical effects achieved by the implementation manner may refer to various implementation manners of the method for generating the interrupted section view in the foregoing embodiment, which is not described herein again.
According to the technical scheme of the embodiment, through mutual coordination among the functional modules, cross section lines of the view to be processed are identified; wherein the cross-section line has a line property different from other straight lines in the view to be processed; determining the section direction of the section view; and generating a section view based on the section line and the section direction. The method comprises the steps of setting identifiable section lines with line properties different from other straight lines in a to-be-processed view in advance in the to-be-processed view, so that when the section view is generated later, all the section lines can be quickly identified in the to-be-processed view through the line properties of the section lines, and after the section directions of the section lines are determined, a plurality of section views can be generated directly according to the section lines and the section directions, and therefore mass production of the section views is achieved.
In addition, the embodiment of the application also provides a computer storage medium, wherein a section view generation program is stored on the storage medium, and the section view generation program realizes the steps of the section view generation method when being executed by a processor. Therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random access Memory (Random AccessMemory, RAM), or the like.
It should be further noted that the above-described apparatus embodiments are merely illustrative, where elements described as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the application, the connection relation between the modules represents that the modules have communication connection therebetween, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general purpose hardware, or of course may be implemented by dedicated hardware including application specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions can be varied, such as analog circuits, digital circuits, or dedicated circuits. However, a software program implementation is a preferred embodiment in many cases for the present application. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a Read-only memory (ROM), a random-access memory (RAM, randomAccessMemory), a magnetic disk or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A method of generating a cross-sectional view, the method comprising:
identifying a cross-section line of the view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed;
determining the section direction of the section view;
and generating a section view based on the section line and the section direction.
2. The sectional view generation method according to claim 1, wherein the determining the sectional direction of the sectional view includes:
determining a starting point and an ending point of the section line;
determining a target included angle between the section line and a horizontal line based on the starting point and the ending point;
and searching a mapping relation table based on the target included angle, and determining the section direction of the section view, wherein the mapping relation table comprises a corresponding relation between the included angle and the section direction.
3. The sectional view generation method according to claim 2, wherein the determining the sectional direction of the sectional view includes:
determining the view direction of the view to be processed;
and determining the section direction of the section view based on the view direction and the target included angle.
4. The sectional view generation method according to claim 1, wherein the generating a sectional view based on the section line and the section direction includes:
determining a current character of the character sequence; the character sequence comprises preset characters and non-preset character sequences;
determining a section name of the section view based on the current character;
generating the section view based on the section line, the section direction, and the section name;
judging whether the section name contains preset character information or not;
if the section name contains preset character information, updating the current character based on the next character of the current character, and returning to execute the section name based on the current character to determine the section name of the section view.
5. The sectional view generation method according to claim 4, wherein after the judging whether the section name contains a special character, the method further comprises:
and if the section name does not contain the preset character information, modifying the display information of the section view.
6. The section view generation method according to claim 5, wherein the presentation information includes position information and/or section names of the section view in a view;
the modifying the display information of the section view comprises the following steps:
modifying the position information of the section view in the view; and/or
The section view is the section name in the view.
7. The sectional view generation method according to claim 5, wherein the display information further includes hundred line information;
the adjusting the display information of the section view comprises the following steps:
hundred grid lines are added to the sectional view.
8. A section view generating apparatus, the apparatus comprising:
the identifying module is used for identifying the section line of the view to be processed; wherein the cross-section line has a line property different from other straight lines in the view to be processed;
the determining module is used for determining the section direction of the section view;
and the generation module is used for generating a section view based on the section line and the section direction.
9. A sectional view generating apparatus, characterized by comprising: a processor, a memory and a section view generation program stored in the memory, which when executed by the processor, implements the steps of the section view generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a cross-sectional view generation program which, when executed by a processor, implements the cross-sectional view generation method according to any one of claims 1 to 7.
CN202310432248.4A 2023-04-20 2023-04-20 Section view generation method, device, equipment and storage medium Pending CN116524072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310432248.4A CN116524072A (en) 2023-04-20 2023-04-20 Section view generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310432248.4A CN116524072A (en) 2023-04-20 2023-04-20 Section view generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116524072A true CN116524072A (en) 2023-08-01

Family

ID=87402305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310432248.4A Pending CN116524072A (en) 2023-04-20 2023-04-20 Section view generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116524072A (en)

Similar Documents

Publication Publication Date Title
JP6713141B1 (en) Layout analysis method, reading aid, circuit and medium
US20210141999A1 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
CN103157281A (en) Display method and display equipment of two-dimension game scene
CN113849254A (en) Self-adaptive adjusting method of page layout and computing equipment
JP3353954B2 (en) Handwriting input display method and handwriting input display device
CN115185415A (en) Scanning data display method, device, equipment and storage medium
CN116524072A (en) Section view generation method, device, equipment and storage medium
JP4361118B2 (en) Information processing apparatus, information processing method, and program
JP2006244326A (en) Icon display device
WO2018173338A1 (en) Information presentation device, information presentation method, and program
JP2011215709A (en) Apparatus, method and program for assisting cartoon creation
CN115249303A (en) Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN114022616A (en) Model processing method and device, electronic device and storage medium
JP3045905B2 (en) Character drawing device
CN111275794B (en) Method, device and storage medium for automatically generating expression picture
JP4834642B2 (en) Graphic change device, graphic change method, computer program, and recording medium
JP2015011420A (en) Article image reconstruction apparatus
JP4986835B2 (en) Collective display image output device, collective display image output method, computer program, and recording medium
US10877663B2 (en) Display method and display apparatus
JP6014794B1 (en) Web page comparison apparatus, Web page comparison method, recording medium, and program
JP6467879B2 (en) Leader line layout position determining program, leader line layout position determining method, and leader line layout position determining apparatus
JP2813815B2 (en) Layouter for flyers and catalogs
CN117494658A (en) Form and font adaptation method and device and electronic equipment
TWI482101B (en) Method of generating strokes
JPH1011425A (en) Rectangular area production method for document preparing device

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