CN110033515A - Figure conversion method, device, computer equipment and storage medium - Google Patents

Figure conversion method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110033515A
CN110033515A CN201910298999.5A CN201910298999A CN110033515A CN 110033515 A CN110033515 A CN 110033515A CN 201910298999 A CN201910298999 A CN 201910298999A CN 110033515 A CN110033515 A CN 110033515A
Authority
CN
China
Prior art keywords
data
line
target
contouring
scheme
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
CN201910298999.5A
Other languages
Chinese (zh)
Other versions
CN110033515B (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.)
Architecture Design and Research Institute of Tongji University Group Co Ltd
Original Assignee
Architecture Design and Research Institute of Tongji University Group 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 Architecture Design and Research Institute of Tongji University Group Co Ltd filed Critical Architecture Design and Research Institute of Tongji University Group Co Ltd
Priority to CN201910298999.5A priority Critical patent/CN110033515B/en
Publication of CN110033515A publication Critical patent/CN110033515A/en
Application granted granted Critical
Publication of CN110033515B publication Critical patent/CN110033515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application involves a kind of figure conversion method, device, computer equipment and storage mediums.The described method includes: receiving X-Y scheme, the lines in the X-Y scheme are identified, and the lines are extracted and are used as contouring line to be selected;Attribute data corresponding to the contouring line to be selected is inquired, according to the attribute data, initial profile line is chosen from the contouring line to be selected;According to the attribute data, graphics area corresponding to the initial profile line is calculated, according to the graphics area, chooses target profile curve from the initial profile line;Inquire include in the X-Y scheme annotate data with target corresponding to the target profile curve, data and the target profile curve are annotated according to the target and generate 3-D graphic.Figure construction cost can reduce using this method.

Description

Figure conversion method, device, computer equipment and storage medium
Technical field
This application involves architecture information processing technology fields, more particularly to a kind of figure conversion method, device, computer Equipment and storage medium.
Background technique
With the development of computer technology, during the design of building, construction and use, computer graphics application is got over Come more extensive, can also pass through computer graphics and construct planar graph or three-dimensional building figure.
Traditionally, it can be and planar graph constructed according to computer graphics, and then artificial progress is put down according to constructed again Face figure, is manually constructed 3-D graphic, then the accuracy that will lead to building is not high, the data maintenance in later period and the work of adjustment Work amount is huge, it is therefore desirable to a large amount of manpower is put into, so as to cause the increased costs of building 3-D graphic.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of figure conversion that can reduce figure construction cost Method, apparatus, computer equipment and storage medium.
A kind of figure conversion method, which comprises
X-Y scheme is received, identifies the lines in the X-Y scheme, and the lines are extracted and are used as contouring to be selected Line;
Attribute data corresponding to the contouring line to be selected is inquired, according to the attribute data, from described wait choose wheel Initial profile line is chosen in profile;
According to the attribute data, graphics area corresponding to the initial profile line is calculated, according to the graphics area, Target profile curve is chosen from the initial profile line;
Inquire include in the X-Y scheme with target corresponding to the target profile curve annotate data, according to described Target annotates data and the target profile curve generates 3-D graphic.
In one embodiment, include in the inquiry X-Y scheme with mesh corresponding to the target profile curve Mark releases data, annotates data according to the target and the target profile curve generates 3-D graphic, comprising:
Annotation data to be chosen corresponding to the X-Y scheme are inquired, and obtain pre-stored normal data;
The normal data is matched with described wait choose annotation data, will be annotated described in successful match wait choose Data, which are extracted, annotates data as target;
Data are annotated according to the target and the target profile curve generates 3-D graphic.
It is in one embodiment, described that data and target profile curve generation 3-D graphic are annotated according to the target, Include:
Pre-stored data conversion mapping is obtained, and target annotation data are split to obtain and split character;
It is mapped according to the data conversion and carries out the fractionation character to be converted to character code;
It is chosen from target annotation data according to the character code and obtains numerical data;
Choose with the target profile curve corresponding to target surface, by the target surface according to the numerical data into Row stretches and obtains 3-D graphic.
In one embodiment, described chosen from target annotation data according to the character code obtains digital number According to, comprising:
Coding range is obtained, and inquires coding range corresponding to the character code, according to the coding range from institute It states in character code and chooses to digital coding;
The digital coding is carried out being converted to numerical data according to data conversion mapping.
In one embodiment, it is described chosen from the character code according to the coding range to digital coding it Afterwards, comprising:
When choosing not from character code to digital coding, then pre-stored digital object value is inquired;
Using the pre-stored digital object value as the numerical data.
In one embodiment, include in the inquiry X-Y scheme with mesh corresponding to the target profile curve Mark is released after data, comprising:
Inquire the corresponding annotation coordinate points of the target annotation data;
Obtain coordinate points to be checked corresponding to the target profile curve, according to the annotation coordinate points with it is described to be checked Coordinate points generate screening line;
The number of intersections for counting the screening line and the target profile curve, chooses note to be deleted according to the number of intersections Release data;
The annotation data to be deleted are deleted from target annotation data.
In one embodiment, described according to the attribute data, calculate picture surface corresponding to the initial profile line Product, according to the graphics area, chooses target profile curve from the initial profile line, comprising:
Area index corresponding to the initial profile line is extracted from the attribute data, according to the area index meter Calculate the graphics area;
Obtain pre-stored area threshold, the graphics area and the area threshold;
The initial profile line that the graphics area is greater than or equal to the area threshold is extracted, as objective contour Line.
In one embodiment, described to extract area corresponding to the initial profile line from the attribute data and refer to Mark calculates the graphics area according to the area index, comprising:
Node coordinate corresponding to the initial profile line is extracted from the attribute data;
Preset contouring line function to be selected is obtained, the node coordinate is input to the contouring line function to be selected and is obtained To result to be chosen;
According to described wait choose as a result, choosing objective contour line function from the contouring line function to be selected;
The graphics area is calculated according to the objective contour line function.
In one embodiment, it is described according to wait choose as a result, choosing target from the contouring line function to be selected After profile line function, comprising:
When it is unselected get objective contour line function when, then according to the node coordinate, the initial profile line is torn open Point;
It calculates initial area corresponding to the initial profile line after splitting and obtains initial area set, according to the primary face Graphics area is calculated in productive set conjunction.
In one embodiment, attribute data corresponding to the inquiry contouring line to be selected, according to the attribute Data choose initial profile line from the contouring line to be selected, comprising:
Attribute data corresponding to the contouring line to be selected is inquired, is extracted from the attribute data described wait choose wheel The coordinate points to be chosen for including in profile;
Origin coordinates point and terminating coordinates point are obtained in coordinate points wait choose from described;
Using the origin coordinates point and the consistent contouring line to be selected of terminating coordinates point as initial profile line.
In one embodiment, it is described from it is described wait choose obtained in coordinate points origin coordinates point and terminating coordinates point it Afterwards, comprising:
When origin coordinates point and terminating coordinates point has not been obtained, then inquiry it is described wait choose in coordinate points whether There are consistent coordinate points;
When there are consistent coordinate points, then the contouring line to be selected is as initial profile line.
In one embodiment, the reception X-Y scheme, identifies the lines in the X-Y scheme, and by the lines After being converted to contouring line to be selected, comprising:
Inquire the mark of current layer corresponding to contouring line to be selected;
The graphical information for including in the X-Y scheme is obtained, is identified according to the current layer, the figure letter is extracted The information to be deleted for including in breath;
The information to be deleted is deleted to obtain corresponding to the contouring line to be selected from the graphical information Attribute data, or screened from the map data mining platform according to the information to be deleted and obtain the attribute data.
A kind of pattern switch device, described device include:
Receiving module identifies the lines in the X-Y scheme, and the lines are extracted and are made for receiving X-Y scheme For contouring line to be selected;
Screening module, for inquiring attribute data corresponding to the contouring line to be selected, according to the attribute data, from Initial profile line is chosen in the contouring line to be selected;
Module is chosen, for calculating graphics area corresponding to the initial profile line according to the attribute data, according to The graphics area chooses target profile curve from the initial profile line;
Generation module, for inquire include in the X-Y scheme with target corresponding to the target profile curve annotate Data annotate data according to the target and the target profile curve generate 3-D graphic.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
X-Y scheme is received, identifies the lines in the X-Y scheme, and the lines are extracted and are used as contouring to be selected Line;
Attribute data corresponding to the contouring line to be selected is inquired, according to the attribute data, from described wait choose wheel Initial profile line is chosen in profile;
According to the attribute data, graphics area corresponding to the initial profile line is calculated, according to the graphics area, Target profile curve is chosen from the initial profile line;
Inquire include in the X-Y scheme with target corresponding to the target profile curve annotate data, according to described Target annotates data and the target profile curve generates 3-D graphic.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
X-Y scheme is received, identifies the lines in the X-Y scheme, and the lines are extracted and are used as contouring to be selected Line;
Attribute data corresponding to the contouring line to be selected is inquired, according to the attribute data, from described wait choose wheel Initial profile line is chosen in profile;
According to the attribute data, graphics area corresponding to the initial profile line is calculated, according to the graphics area, Target profile curve is chosen from the initial profile line;
Inquire include in the X-Y scheme with target corresponding to the target profile curve annotate data, according to described Target annotates data and the target profile curve generates 3-D graphic.
Above-mentioned figure conversion method, device, computer equipment and storage medium, without manually carrying out three according to X-Y scheme The building of figure is tieed up, to avoid the data maintenance and adjustment in later period, only need to inquire two dimension according to the X-Y scheme received The lines for including in figure, and lines are converted into contouring line to be selected, and then according to the corresponding attribute number of contouring line to be selected According to choose arrive target profile curve, thus find target corresponding to target profile curve annotation data, according to target profile curve with And target annotation data generate 3-D graphic, then can reduce building 3-D graphic cost to avoid a large amount of artificial investment.
Detailed description of the invention
Fig. 1 is the application scenario diagram of figure conversion method in one embodiment;
Fig. 2 is the flow diagram of figure conversion method in one embodiment;
Fig. 3 is the flow diagram of graphic hotsopt step in one embodiment;
Fig. 4 is the schematic diagram that target annotates data and target profile curve in one embodiment;
Fig. 5 is in one embodiment be 3-D graphic schematic diagram;
Fig. 6 is the flow diagram of numerical data selecting step in one embodiment;
Fig. 7 is the flow diagram of area calculation step in one embodiment;
Fig. 8 is the structural block diagram of pattern switch device in one embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Figure conversion method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102 It is communicated with server 104 by network by network.Server 104 receives the X-Y scheme of the transmission of terminal 102, identification Lines in X-Y scheme, and lines are extracted and are used as contouring line to be selected, and then inquire category corresponding to contouring line to be selected Property data chosen to initial profile line from contouring line to be selected according to attribute data, and then server 104 is according to attribute number According to, graphics area corresponding to initial profile line, which is calculated, according to graphics area chooses target profile curve from initial profile line, And then inquire X-Y scheme in include with target corresponding to target profile curve annotate data, according to target annotate data and Target profile curve generates 3-D graphic.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop, intelligence Energy mobile phone, tablet computer and portable wearable device, server 104 can use independent server either multiple servers The server cluster of composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of figure conversion method, it is applied in Fig. 1 in this way It is illustrated for server, comprising the following steps:
S202: receiving X-Y scheme, identifies the lines in X-Y scheme, and lines are extracted and are used as contouring line to be selected.
Specifically, X-Y scheme refers to that, comprising figure in a two-dimensional plane, X-Y scheme can be included in X-Y scheme Planar architectural figure in paper etc..Contouring line to be selected refer to it is that server is extracted from X-Y scheme, generate three-dimensional figure Lines when shape as building boundary line.Specifically, server receives the X-Y scheme of terminal transmission, and X-Y scheme is carried out Binary conversion treatment, and then the pixel value of the pixel for including in the X-Y scheme after server lookup binary conversion treatment, by picture Plain value is that the pixel of presetted pixel value carries out arrangement as after binary conversion treatment according to the pixel position in former X-Y scheme X-Y scheme in lines, and then server extracts obtained lines as contouring line to be selected.
It can be, server receives the plan view of terminal transmission completed, which is X-Y scheme, clothes Business device inquires pixel different in the plan view, and inquires pixel value corresponding to different pixels, and then will be different Pixel corresponding to pixel value be compared with standard pixel value, when be above standard pixel value when, then will be above standard picture Pixel value corresponding to the pixel of plain value is revised as first object pixel value, and then the pixel that will be less than standard pixel value Corresponding pixel value is revised as the second target pixel value, to complete binary conversion treatment to X-Y scheme, and then server is looked into The pixel value of the pixel in the X-Y scheme for completing binary conversion treatment is ask, and is presetted pixel value by the pixel value inquired The position of pixel is arranged in the X-Y scheme that pixel is received according to server, and as the line in X-Y scheme Item, and then server extracts the lines as contouring line to be selected.
S204: inquiring attribute data corresponding to contouring line to be selected, according to attribute data, selects from contouring line to be selected Take initial profile line.
Specifically, attribute data refers to geological information corresponding to contouring line to be selected.It is understood that wherein geometry Information can be location information corresponding to contouring line to be selected, for example, location information corresponding to contouring line to be selected can be with Including node coordinate, length, position coordinates corresponding to contouring line to be selected etc..Initial profile line refers to that server treats selection Contour line carries out the contour line that primary screener obtains.Optionally, which can be closed contour line.
Specifically, when server extracts the lines in X-Y scheme as contouring line to be selected, then server The corresponding attribute data in X-Y scheme of contouring line to be selected is inquired, so that server is taken turns according to attribute data from wait choose It is chosen in profile and arrives closed contour line, the closed contour line is as initial profile line.It can be, server inquires to be selected Attribute data corresponding to contouring line, and then server inquires the corresponding section of contouring line to be selected for including in attribute data Point coordinate, server obtain the head and the tail continuity with contouring line to be selected associated by node coordinate according to node coordinate, according to Head and the tail continuity determine contouring line to be selected whether be closure lines, when server according to associated by node coordinate wait choose Contour line is to join end to end, then contouring line to be selected is closed contour line, using the closed contour line as initial profile line.
S206;According to attribute data, graphics area corresponding to initial profile line is calculated, according to graphics area, from initial Target profile curve is chosen in contour line.
Specifically, graphics area refers to the area for the figure that initial profile line is surrounded.Target profile curve refers to that selection is arrived Eventually as generate 3-D graphic boundary line.It can be, when 3-D graphic is corresponding three-dimensional building figure, then target Contour line is building outer edge line.
Specifically, server inquires attribute data corresponding to contouring line to be selected, and then server dependence data In extract node coordinate, areal calculation mode is inquired using node coordinate, according to area calculation calculate initial profile The corresponding graphics area of the figure that line is surrounded, and then server gets preset screening logic, server is patrolled according to screening It collects and chooses from the figure that different initial profile lines is surrounded to targeted graphical area, extract and closed with targeted graphical area The initial profile line of connection is as target profile curve.Wherein, screening logic refers to and chooses to meeting from being calculated in graphics area The strategy of the area of building requirements.Targeted graphical area refers to the area for meeting building requirements chosen according to screening logic, To which target profile curve can be chosen according to the targeted graphical area.
S208: include in inquiry X-Y scheme annotates data with target corresponding to target profile curve, is infused according to target It releases data and target profile curve generates 3-D graphic.
Specifically, target annotation data refer to that include in X-Y scheme include, for showing that target profile curve institute is right The information answered, can be, target annotation data be include in X-Y scheme target profile curve corresponding to text, mark, Symbol illustrates, for example, it includes building indicated by target profile curve in X-Y scheme that target annotation data, which are, Material and the corresponding layer of building are high.3-D graphic refers to according to the target profile curve extracted, the solid figure of generation, can be with It is that three-dimensional building model is generated according to the architectural plan in X-Y scheme.
Specifically, when server receives X-Y scheme, then annotation number all included in X-Y scheme is got According to, and then server gets extraction logic, according to extraction logic from comprising all annotation data in by mesh Mark is released data and is extracted, and then server gets annotation coordinate points corresponding to target annotation data, server inquiry Whether annotation coordinate points are included in the closed figure that target profile curve is surrounded, and whether inquiry annotation coordinate points are included in target In the closed figure that contour line is surrounded, can be server get it is different in the closed figure that target profile curve is surrounded The location of pixels coordinate of pixel, whether inquiry annotation coordinate points are overlapped with location of pixels coordinate, to inquire annotation coordinate Whether point is included in the closed figure that target profile curve is surrounded, when server determines that annotation coordinate points are included in objective contour When in the closed figure that line is surrounded, then corresponding stretching data are extracted from target annotation data, server is according to selection Obtained target profile curve determines the targeted graphical face surrounded to target profile curve, according to the targeted graphical face surrounded and The stretching data extracted generate 3-D graphic, and 3-D graphic can be sent to terminal and shown.
In the present embodiment, without user according to the artificial constructed 3-D graphic of X-Y scheme, only server is needed to receive terminal The X-Y scheme of transmission identifies the lines in X-Y scheme and extracts the lines as contouring line to be selected, and then server It is chosen according to attribute data to initial profile line, calculates the corresponding graphics area of initial profile line further according to attribute data, according to Graphics area is chosen to obtain target profile curve, can carry out two-stage screening, to guarantee that obtained target profile curve is accurate, in turn Target corresponding with the target profile curve annotation data for including in X-Y scheme are inquired, data and target are annotated according to target Contour generating 3-D graphic namely server can accurately generate 3-D graphic, and whole process is not necessarily to artificial constructed three-dimensional Figure improves the efficiency of building 3-D graphic, and carries out 3-D graphic building and the data in later period without putting into a large amount of manpowers Maintenance, so as to save cost.
In one embodiment, Fig. 3 is referred to, the flow diagram of a graphic hotsopt step is provided, graphic hotsopt step, Namely inquiry X-Y scheme in include with target corresponding to target profile curve annotate data, according to target annotate data and Target profile curve generates 3-D graphic, comprising:
S302: annotation data to be chosen corresponding to inquiry X-Y scheme, and obtain pre-stored normal data.
Specifically, it wait choose annotation data refer to include the graphical information for including in X-Y scheme, can be, wait choose Annotation data are the text for including, mark, symbol in X-Y scheme or illustrate.Normal data, which refers to, is generating three-dimensional figure Required preset characters when shape, namely can be annotation character corresponding to target profile curve.Specifically, server gets two When tieing up figure, then all annotation data for being included are extracted from X-Y scheme as annotation data to be chosen, wherein from All annotation data for including are extracted in X-Y scheme can be and inquire corresponding field in X-Y scheme, inquire this All characters associated by field are as data are annotated, and corresponding field can be " annotation " in X-Y scheme, due in two dimension Including in figure is annotation data corresponding to all lines wait choose annotation data, then needs to choose to required annotation Data can also choose target annotation data corresponding to target annotation data, and therefore, server is pre-stored with accordingly Normal data, server get pre-stored normal data.
S304: normal data is matched with wait choose annotation data, by successful match wait choose annotation data into Row, which is extracted, annotates data as target.
Specifically, when server gets normal data and when choosing annotation data, then will each annotate wait choose Data are matched with normal data respectively, when successful match, then being extracted successful match wait choose annotation data Data are annotated as target.It can be, it, then respectively will be to when server gets normal data and when choosing annotation data It chooses the kinds of characters for including in the kinds of characters and normal data for including in annotation data to be matched, inquire wait choose annotation Whether normal data is completely included in data, it, then should be wait choose when having completely included normal data in annotation data wait choose Data and normal data successful match are annotated, and then successful match is annotated into data wait choose annotation data as target.Example Such as, the annotation data to be chosen corresponding to X-Y scheme that server is got, such as door mix 2, mix 3, mixed 4, brick, and then obtaining Getting normal data is mixed and brick, and then will be matched respectively wait choose annotation data with normal data, namely can be When having completely included normal data in annotation data wait choose, then as the annotation data to be chosen of successful match, thus should It extracts wait choosing annotation data and annotates data as target, will also mix 2, is mixed 3, is mixed 4, brick is extracted and infused as target Release data.
S306: data are annotated according to target and target profile curve generates 3-D graphic.
Specifically, reference can be made to Fig. 4, provides the schematic diagram of target annotation data and target profile curve, when server extracts When obtaining target annotation data, then corresponding stretching data are extracted from target annotation data, thus according to data pair are stretched Target profile curve, which stretch, generates 3-D graphic, reference can be made to Fig. 5, provides the schematic diagram of 3-D graphic.For example, according to above-mentioned step Suddenly the target annotation data chosen are mixed 2 and mixed 3, then extract numerical data from each target annotation data respectively, should Numerical data is expressed as layer height, therefore is to stretch data by the numerical data, and such as first mixed corresponding stretching data is 2, it is 3 that second, which is mixed corresponding stretching data, then for server according to the stretching data, it is right with target annotation data institute to inquire The target profile curve answered draws in the targeted graphical face that target profile curve is surrounded according to the corresponding stretch ratio of data is stretched It stretches, to generate 3-D graphic.
In one embodiment, step S306, namely data and target profile curve generation 3-D graphic are annotated according to target The step of, it may include: to obtain pre-stored data conversion mapping, and target annotation data are split Character;It is mapped according to the data conversion and carries out the fractionation character to be converted to character code;;According to character code from mesh Mark, which is released to choose in data, obtains numerical data;Choose with target profile curve corresponding to target surface, by target surface according to Numerical data is stretched to obtain 3-D graphic.
Specifically, data conversion mapping refers to the corresponding relationship of target annotation data and corresponding coding, and server can be with Target, which is inquired, according to the corresponding relationship annotates data encoding corresponding to data., data conversion mapping.Character code refer to Target annotates preset characters string corresponding to character different in data.
Specifically, server gets target annotation data, and then target annotation data are split to obtain and split word Symbol, server get pre-stored data conversion mapping, and the data to be checked for including in inquiry data conversion mapping respectively will It splits character to be matched with data to be checked, server chooses code character corresponding to the data to be checked to successful match String is as splitting character string associated by character, and then using the associated character string as the corresponding character code of fractionation character, When server obtains character code, then choose from character code to numeral coding, and then by numeral coding It extracts, and numeral coding is converted according to data conversion mapping, so that numerical data is obtained, the number number According to can be used as stretching data, server is chosen to the closed figure surrounded with target profile curve as target surface, in turn Server stretches target surface to obtain 3-D graphic according to the numerical data chosen.Namely server can be according to Target annotation data are converted to specific data encoding by data conversion mapping, so as to extract number according to data encoding Data so that it is simple and easy to extract numerical data, and can be extracted accurately.
In the present embodiment, server can will carry out matched mode and choose mesh wait choose annotation data and normal data Mark releases data, to choose, mode is simple and easy, guarantees the extraction efficiency of target annotation data, and then improves and generate three-dimensional figure The efficiency of shape.
In one embodiment, Fig. 6 is referred to, the flow diagram of a numerical data selecting step, numerical data are provided Selecting step, namely chosen from target annotation data according to character code and obtain numerical data, comprising: coding range is obtained, And the coding range that polling character coding is corresponding, it is chosen from character code to digital coding according to coding range;It will be digital Coding carries out being converted to numerical data according to data conversion mapping.
Specifically, coding range refers to the coding of character types corresponding to character code, and coding range can be text Coding range is also possible to digital coding range.Specifically, server gets coding range, by word character code and coding Range is compared, and inquiry compares successful coding range with character code, when the coding range is digital coding range, then Comparing successful character code identifier is digital coding, and server will compare successful character code conduct with digital coding range Digital coding, and then mapped using data conversion, by the associated character string progress in digital coding and data conversion mapping Match, when successful match, then using data to be checked corresponding to the associated character string in data conversion maps as conversion Obtained numerical data.For example, it is 4e00~9fbb, digital coding that the coding range that server is got, which is literal code range, Range is 0~9, and then server compares different character codes with literal code range and digital coding range respectively It is right, so that fractionation character corresponding to the character code is target note when character code is with corresponding to digital coding range Release the numerical data in data.
In the present embodiment, server can be chosen according to coding range to digital coding, and enquiring digital coding is simple and easy, It can be quickly converted, improve efficiency when server be converted to numerical data according to data conversion mapping in turn.
In one embodiment, it can be chosen from the character code to number with continued reference to Fig. 6 according to the coding range After word coding, comprising: when choosing not from character code to digital coding, then inquire pre-stored digital object value;It will be pre- The digital object value of storage is as numerical data.
Specifically, when server is matched different character codes with coding range, character code is not corresponding with When digital coding range namely the annotation data of target corresponding to the character code do not include numerical data, the numerical data It can be default character, namely when server is chosen not from character code to digital coding, then inquire the number with storage Word target value, so server by the digital object value directly as numerical data.It can be, when server uses character code It is matched with coding range, when not inquiring corresponding digital coding, then gets the digital object value 1 with storage, in turn The digital object value 1 can stretch 3-D graphic according to the numerical data as numerical data namely server.
In the present embodiment, when server is chosen not from character code to digital coding, then digital object can be used Value directly as numerical data, when avoiding not extracting digital coding generate 3-D graphic be mistake occur.
In one embodiment, inquire X-Y scheme in include with target corresponding to target profile curve annotation data it Afterwards, comprising: the corresponding annotation coordinate points of inquiry target annotation data;Coordinate points to be checked corresponding to target profile curve are obtained, Screening line is generated according to annotation coordinate points and coordinate points to be checked;The number of intersections of statistics screening line and target profile curve, according to Number of intersections chooses annotation data to be deleted;Annotation data to be deleted are deleted from target annotation data.
Specifically, coordinate points to be checked refer in target profile curve, preset that objective contour can be generated The coordinate points of line.Annotate the corresponding coordinate points in position in the X-Y scheme where coordinate points refer to target annotation data.Screening Line refers to the ray according to blinkpunkt coordinate and Coordinate generation to be checked.
Specifically, when server inquires target annotation data, then need to verify whether target annotation data are target wheels Whether annotation corresponding to profile namely target annotation data are located in the closed figure that target profile curve is surrounded, namely It can be, server inquires annotation coordinate points corresponding to target annotation data, and then gets corresponding to target profile curve Coordinate to be checked, server according to annotation coordinate points and coordinate points to be checked generate ray as screening line, namely service Device can be using coordinate points to be checked or annotation coordinate points any point as endpoint, and connection generates ray as first service of screening Device counts the number of intersections of the screening line and target profile curve pair, and when number of intersections is odd number, then the annotation coordinate points are corresponding Target annotation data are in the closed figure that target profile curve is surrounded namely target annotation data are and target profile curve Corresponding annotation data;When number of intersections is even number, then the corresponding target annotation data of the annotation coordinate points are not in target wheel In the closed figure that profile is surrounded namely target annotation data are as annotation data to be deleted, and by the annotation to be deleted Data are deleted.
In the present embodiment, server can further judge that target annotation data are when selection to target annotates data It is no corresponding with target profile curve, namely judge that target annotates data whether in the surrounded closed figure of target profile curve, thus Guarantee that the numerical data extracted is accurate from target annotation data, namely to be subsequently generated 3-D graphic accurate.
In one embodiment, Fig. 7 is referred to, the flow diagram of an area calculation step is provided, area calculation step, Namely it according to attribute data, calculates graphics area corresponding to initial profile line and is selected from initial profile line according to graphics area Take target profile curve, comprising:
S702: extracting area index corresponding to initial profile line in dependence data, index calculates figure according to area Area.
Specifically, area index refers in the corresponding attribute data of initial profile line to include that can be used for calculating just The index of the graphics area for the closed figure that beginning contour line is surrounded, such as the different coordinate points on initial profile line.Tool Body, area index corresponding to initial profile line is extracted in server dependence data to be calculated according to the area index Graphics area, the graphics area can be the area for the closed figure that initial profile line is surrounded.
In one embodiment, area index corresponding to initial profile line is extracted in dependence data, is referred to according to area Mark calculates graphics area, comprising: node coordinate corresponding to initial profile line is extracted in dependence data;It obtains preset to be selected Node coordinate is input to contouring line function to be selected and obtains result to be chosen by contouring line function;According to wait choose as a result, from Contouring line function to be selected chooses objective contour line function;Graphics area is calculated according to objective contour line function.
Specifically, node coordinate refers to coordinate points included in initial profile line, can be determining initial profile line The coordinate put accordingly is also possible in the changed point of initial profile line mean curvature.Wait choose the result is that referring to according to node Coordinate and contouring line function to be selected be calculated as a result, can determine required function according to the result.Wait choose wheel Profile function refers to pre-stored different lines functions.
Specifically, node coordinate corresponding to initial profile line is extracted in server dependence data, and got pre- The contouring line function to be selected of storage, server are extracted from node coordinate according to the contouring line function to be selected extracted Any one coordinate axial coordinate, and the coordinate axial coordinate is input in contouring line function to be selected obtain wait choose as a result, from And be compared the result to be chosen with another coordinate axial coordinate to obtain comparison result, when comparison result is in predetermined deviation range When interior, then the corresponding contouring line function to be selected of result to be chosen is somebody's turn to do as objective contour line function, when server is chosen to mesh When marking profile line function, then server can inquire pre-stored with areal calculation side corresponding to objective contour line function Formula, and then the graphics area for the closed figure that target profile curve is surrounded is calculated in calculation according to area.Namely service Device can be chosen by node coordinate from contouring line function to be selected to objective contour line function, and selection is simple and easy, and can To be calculated graphics area according to the target profile curve letter chosen, namely to calculate graphics area simple and easy then high-efficient.
In one embodiment, according to wait choose as a result, from contouring line function to be selected choose objective contour line function it Afterwards, comprising: when it is unselected get objective contour line function when, then according to node coordinate, initial profile line is split;Calculating is torn open Initial area corresponding to initial profile line after point obtains initial area set, and figure is calculated according to initial area set Area.
Specifically, server is chosen from contouring line function to be selected according to node coordinate, gets target when unselected When profile line function, then server can be according to the corresponding node coordinate of initial profile line, and server is according to node coordinate to first Beginning contour line is split, and be can be and is split as different line segments to initial profile line, and server is enclosed obtained line segment is split At different regular figures, the corresponding initial area of different test patterns is calculated as initial area set, and then will be initial All initial areas in area set are summed to obtain graphics area.It can be, get objective contour when server is unselected When line function, then server can be the closed figure surrounded to initial profile line and split, if can also be split as Dry regular figure, which is for example square namely server initial profile line is split to obtain it is different Line segment can will then split obtained line segment and surround different regular figures using different line segments as the side of square, And then server calculates the area of different regular figures as initial area, also will all initial areas summed i.e. Graphics area corresponding to initial profile line can be calculated.Namely when server is unselected get objective contour line function when, then Initial profile line can be split, so that initial area corresponding to the initial profile line eaten after dividing is calculated, so as to Graphics area can be calculated in different ways to obtain graphics area namely server, to enhance applicability.
S704: obtaining pre-stored area threshold, compares graphics area and area threshold.
Specifically, area threshold, which refers to, is pre-stored in the server, and the area for the target road profile that can be screened is pre- If value.Specifically, different graphics areas is calculated in server, then screens the default of area coinciding building according to graphics area It is required that initial profile line as target profile curve namely server get with the area threshold that stores, and by graphics area It is compared with area threshold.
S706;The initial profile line that graphics area is greater than or equal to area threshold is extracted, as target profile curve.
Specifically, graphics area and area threshold are compared server, when graphics area is less than area threshold, The figure then surrounded less than initial profile line corresponding to the graphics area of area threshold does not meet building requirements, therefore, clothes Business device selection graphics area is greater than or equal to the initial profile line of area threshold, and using the initial profile line as objective contour Line.
In the present embodiment, server, can be according to the corresponding picture surface of initial profile line when getting initial profile line Further screening obtains target profile curve to product, so as to save the cost that subsequent artefacts safeguard and verify.
In one embodiment, attribute data corresponding to contouring line to be selected is inquired, according to attribute data, from wait choose Initial profile line is chosen in contour line, comprising: inquire attribute data corresponding to contouring line to be selected, extract in dependence data The coordinate points to be chosen for including in contouring line to be selected;Origin coordinates point and terminating coordinates are obtained in coordinate points from wait choose Point;Using the consistent contouring line to be selected of origin coordinates point and terminating coordinates point as initial profile line.
Specifically, coordinate points to be chosen refer to coordinate points included in contouring line to be selected, can be and determine wait choose The coordinate of contour line put accordingly is also possible in the changed point of contouring line mean curvature to be selected.Specifically, server Attribute data corresponding to contouring line to be selected is inquired, extracts coordinate points to be chosen in dependence data, and then according to seat Punctuate mark inquires origin coordinates point and terminating coordinates point, server get origin coordinates from wait choose in coordinate points The corresponding origin coordinates of point, and the corresponding terminating coordinates of terminating coordinates point are got, and compare origin coordinates and terminating coordinates Whether consistent, when origin coordinates is consistent with terminating coordinates, then origin coordinates point and terminating coordinates point are consistent coordinate points, I.e. the contouring line to be selected is closed contour line, therefore then by origin coordinates point and the consistent contouring to be selected of terminating coordinates point Line is as initial profile line.
In the present embodiment, server can inquire whether contouring line to be selected is closed profile by the coordinate of coordinate points Line it is simple then to choose mode, and can choose occluding contour in advance, after avoiding so as to choose initial profile line It continues vertical threedimensional model and mistake occurs, can also reduce the cost manually verified.
In one embodiment, from wait after choosing and obtaining origin coordinates point and terminating coordinates point in coordinate points, comprising: When origin coordinates point and terminating coordinates point has not been obtained, then inquire wait choose in coordinate points with the presence or absence of consistent coordinate Point;When there are consistent coordinate points, then contouring line to be selected is as initial profile line.
Specifically, when server does not inquire coordinate point identification, Ye Jiwei from wait choose according to above-mentioned steps in coordinate points From wait choose the origin coordinates point and terminating coordinates point chosen in coordinate points to mark, then server is then selected any one and is waited for Choose coordinate points, using chooses should coordinate points be chosen coordinate as the first coordinate, sequence server inquiry included in Other coordinate points to be chosen in contour line are chosen, and getting the corresponding coordinate of other coordinate points to be chosen respectively is the second seat Mark, unanimously whether server respectively matched the first coordinate with the second coordinate, when the first coordinate is consistent with the second coordinate, Then wait choose, there are consistent coordinate points in coordinate points, therefore, when there are consistent coordinate points, then the contouring line to be selected For closed contour line, therefore using the contouring line to be selected as initial profile line.
In the present embodiment, when server does not inquire origin coordinates and terminating coordinates, then the coordinate of coordinate points is inquired Whether there is consistent coordinate, so as to choose closed contour line, namely applicability can be enhanced.
In one embodiment, X-Y scheme is received, identifies the lines in X-Y scheme, and lines are converted to wait choose After contour line, comprising: inquire the mark of current layer corresponding to contouring line to be selected;Obtain the figure for including in X-Y scheme Information is identified according to current layer, extracts the information to be deleted for including in graphical information;By information to be deleted from graphical information It is deleted to obtain attribute data corresponding to contouring line to be selected.
Specifically, current layer identifies figure layer mark corresponding to the figure layer where referring to X-Y scheme, can be figure layer Title etc., namely when constructing X-Y scheme, since different lines can be plotted in different figure layers convenient for processing, every layer of figure Layer has corresponding mark, such as figure layer title.Graphical information refers to corresponding different lines or figure in X-Y scheme The geological information of shape can be the location information of figure, figure corresponds to length of lines etc..
It specifically, is other in order to avoid there is the attribute data extracted when server, which inquires, chooses contour line Information in figure layer and there is mistake, then server screens different graphical informations according to figure layer mark, namely service Device inquires the corresponding current layer mark of contouring line to be selected, and then gets figure different included in X-Y scheme Information inquires corresponding figure layer to be checked mark in graphical information, by figure layer to be checked identify and current layer identify into Row compares, and when comparing unsuccessful, then the corresponding figure of the graphical information is not the information of current layer, will can not compared yet The map data mining platform of function deletes information to be deleted as information to be deleted, and then from map data mining platform, to will not delete Attribute data of the map data mining platform as contouring line to be selected;Either, server is according to obtained map data mining platform and wait delete It will be not the information of information to be deleted as attribute data corresponding to contouring line to be selected from map data mining platform except information.
In the present embodiment, before getting attribute data, server can be identified according to current layer to included in two Graphical information in dimension figure is screened, to guarantee that the attribute data chosen is accurate, it is quasi- that server generates 3-D graphic Really.
In one embodiment, it is applied by the figure conversion method and is illustrated for RHINO (rhinoceros) software platform, RHINO software is installed, so that the corresponding server of RHINO can carry out corresponding figure conversion and show in terminal in terminal Interface on namely the corresponding server of RHINO software receive the two-dimentional drawing uploaded with terminal, which can be The corresponding drawing that CAD software is made, and should be to include X-Y scheme in two-dimentional drawing, and then server recognizes two dimension Lines in figure, and the lines are extracted as contouring line to be selected, server is corresponding according to contouring line to be selected Attribute data chooses corresponding occluding contour as initial profile line, in the closed figure surrounded according to initial profile line Graphics area, be compared selection to corresponding target profile curve with area threshold, and then server inquires objective contour Target corresponding to line annotates data, and wherein server inquires target annotation data and can be, the X-Y scheme that will be extracted Corresponding difference is matched to obtain target annotation data with normal data wait choose annotation data, and then server is according to mesh Mark releases the building type for including in data and extracts corresponding numerical data with layer height, which is layer height, in turn The configured three-dimensional graphical modelling function on RHINO platform of server calls, according to obtained target profile curve and target The numerical data in data is annotated, corresponding 3-D graphic is generated, is shown so that 3-D graphic is sent to terminal.And this In embodiment, above method can be encapsulated in the way of program segment based on the Grasshopper in RHINO by server Module as a whole in (plug-in unit that a kind of programmed algorithm generates model), can call directly so as to server and be encapsulated in Other modules in Grasshopper building figure method for building up different from module cooperation realization.
Although should be understood that each step in the flow chart of Fig. 2, Fig. 3, Fig. 6 and Fig. 7 according to the instruction of arrow It successively shows, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless having herein specific Illustrate, there is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.Moreover, figure 2, at least part step in Fig. 3, Fig. 6 and Fig. 7 may include multiple sub-steps or multiple stages, these sub-steps or Person's stage is not necessarily to execute completion in synchronization, but can execute at different times, these sub-steps or rank The execution sequence of section is also not necessarily and successively carries out, but can with other steps or other sections at least part in turn or Person alternately executes.
In one embodiment, as shown in figure 8, providing a kind of pattern switch device, comprising: receiving module 810, screening Module 820 chooses module 830 and generation module 840, in which:
Receiving module 810 identifies the lines in X-Y scheme for receiving X-Y scheme, and by lines extract as to Choose contour line.
Screening module 820, for inquiring attribute data corresponding to contouring line to be selected, according to attribute data, to be selected Initial profile line is chosen in contouring line.
Module 830 is chosen, for graphics area corresponding to initial profile line being calculated, according to figure according to attribute data Area chooses target profile curve from initial profile line.
Generation module 840, for inquire include in X-Y scheme with target corresponding to target profile curve annotate data, Data are annotated according to target and target profile curve generates 3-D graphic.
In one embodiment, generation module 840 may include:
Submodule is inquired, for inquiring annotation data to be chosen corresponding to X-Y scheme, and obtains pre-stored standard Data.
Extracting sub-module, for matching normal data with wait choose annotation data, by successful match wait choose Annotation data, which are extracted, annotates data as target.
Submodule is generated, for annotating data and target profile curve generation 3-D graphic according to target.
In one embodiment, submodule is generated, comprising:
Split cells for obtaining pre-stored data conversion mapping, and target annotation data is split and are torn open Divide character.
Converting unit, for carrying out being converted to character code by character is split according to data conversion mapping.
Selection unit obtains numerical data for choosing from target annotation data according to character code.
Generation unit, for choose with target profile curve corresponding to target surface, by target surface according to numerical data It is stretched to obtain 3-D graphic.
In one embodiment, selection unit, comprising:
Subelement is chosen, for obtaining coding range, and the coding range that polling character coding is corresponding, according to coding model It encloses and chooses from character code to digital coding.
Conversion subunit, for carrying out being converted to numerical data digital coding according to data conversion mapping.
In one embodiment, selection unit, comprising:
Subelement is inquired, for that ought choose not from character code to digital coding, then inquires pre-stored digital object Value.The digital object value for being also used to be pre-stored is as numerical data.
In one embodiment, pattern switch device 800 can also include:
Enquiry module, for inquiring the corresponding annotation coordinate points of target annotation data.
Line generation module is screened, for obtaining coordinate points to be checked corresponding to target profile curve, according to annotation coordinate points Screening line is generated with coordinate points to be checked.
Statistical module is chosen to be deleted for counting the number of intersections of screening line and target profile curve according to number of intersections Annotate data.
Removing module, for deleting annotation data to be deleted from target annotation data.
In one embodiment, module is chosen, comprising:
Computing unit, for extracting area index corresponding to initial profile line, according to area index in dependence data Calculate graphics area.
Comparing unit compares graphics area and area threshold for obtaining pre-stored area threshold.
Extraction unit, the initial profile line for graphics area to be greater than or equal to area threshold extracts, as mesh Mark contour line.
In one embodiment, computing unit, comprising:
Subelement is extracted, for extracting node coordinate corresponding to initial profile line in dependence data.
It inputs subelement and node coordinate is input to contouring to be selected for obtaining preset contouring line function to be selected Line function obtains result to be chosen.
Function extracts subelement, for according to wait choose as a result, choosing target profile curve letter from contouring line function to be selected Number.
First computation subunit, for calculating graphics area according to objective contour line function.
In one embodiment, computing unit, comprising:
Split subelement, for when it is unselected get objective contour line function when, then according to node coordinate, to initial profile line It is split.
Second computation subunit obtains initial area for calculating initial area corresponding to the initial profile line after splitting Set, is calculated graphics area according to initial area set.
In one embodiment, screening module 820, comprising:
Coordinate points are chosen submodule and are mentioned in dependence data for inquiring attribute data corresponding to contouring line to be selected Take the coordinate points to be chosen for including in contouring line to be selected.
Coordinate points acquisition submodule, for obtaining origin coordinates point and terminating coordinates point in coordinate points from wait choose, also For using the consistent contouring line to be selected of origin coordinates point and terminating coordinates point as initial profile line.
In one embodiment, screening module 820, comprising:
Coordinate inquires submodule, for when origin coordinates point and terminating coordinates point has not been obtained, then inquiring wait choose It whether there is consistent coordinate points in coordinate points, be also used to when there are consistent coordinate points, then contouring line to be selected is as just Beginning contour line.
In one embodiment, pattern switch device 800, comprising:
Enquiry module is identified, for inquiring the mark of current layer corresponding to contouring line to be selected.
Information sifting module identifies according to current layer for obtaining the graphical information for including in X-Y scheme, extracts figure The information to be deleted for including in shape information.
Information extraction modules are right for being deleted to obtain contouring line institute to be selected for information to be deleted from graphical information The attribute data answered, or screened from map data mining platform according to information to be deleted and obtain attribute data.
Specific about pattern switch device limits the restriction that may refer to above for figure conversion method, herein not It repeats again.Modules in above-mentioned pattern switch device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 9.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing figure change data.The network interface of the computer equipment is used to pass through with external terminal Network connection communication.To realize a kind of figure conversion method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of reception X-Y scheme when executing computer program, identify in X-Y scheme Lines, and lines are extracted and are used as contouring line to be selected.Attribute data corresponding to contouring line to be selected is inquired, according to attribute number According to the selection initial profile line from contouring line to be selected.According to attribute data, picture surface corresponding to initial profile line is calculated Product, according to graphics area, chooses target profile curve from initial profile line.Include in inquiry X-Y scheme and target profile curve Corresponding target annotates data, annotates data according to target and target profile curve generates 3-D graphic.
In one embodiment, include in inquiry X-Y scheme and target wheel is realized when processor executes computer program Target corresponding to profile annotates data, annotates data according to target and target profile curve generates 3-D graphic, comprising: inquiry Annotation data to be chosen corresponding to X-Y scheme, and obtain pre-stored normal data.Normal data is annotated with wait choose Data are matched, by extracting wait choose annotation data as target annotation data for successful match.It is annotated according to target Data and target profile curve generate 3-D graphic.
In one embodiment, it is realized when processor executes computer program and data and target profile curve is annotated according to target Generate 3-D graphic, comprising: obtain pre-stored data conversion mapping, and target annotation data are split to obtain and split word Symbol.It carries out being converted to character code by character is split according to data conversion mapping.Data are annotated from target according to character code Middle selection obtains numerical data.Choose with target profile curve corresponding to target surface, by target surface according to numerical data into Row stretches and obtains 3-D graphic.
In one embodiment, it is realized when processor executes computer program according to character code from target annotation data Selection obtains numerical data, comprising: coding range, and the coding range that polling character coding is corresponding is obtained, according to coding model It encloses and chooses from character code to digital coding.Digital coding is carried out being converted to numerical data according to data conversion mapping.
In one embodiment, it realizes when processor executes computer program and is chosen from character code according to coding range To after digital coding, comprising: when choosing not from character code to digital coding, then inquire pre-stored digital object value. Using pre-stored digital object value as numerical data.
In one embodiment, include in inquiry X-Y scheme and target wheel is realized when processor executes computer program Target corresponding to profile annotates after data, comprising: the corresponding annotation coordinate points of inquiry target annotation data.Obtain target wheel Coordinate points to be checked corresponding to profile generate screening line according to annotation coordinate points and coordinate points to be checked.Statistics screening line with The number of intersections of target profile curve chooses annotation data to be deleted according to number of intersections.It will be to be deleted from target annotation data Annotation data are deleted.
In one embodiment, it is realized when processor executes computer program according to attribute data, calculates initial profile line Corresponding graphics area chooses target profile curve from initial profile line according to graphics area, comprising: in dependence data Area index corresponding to initial profile line is extracted, index calculates graphics area according to area.Pre-stored area threshold is obtained, Compare graphics area and area threshold.The initial profile line that graphics area is greater than or equal to area threshold is extracted, is made For target profile curve.
In one embodiment, it is realized when processor executes computer program and extracts initial profile line institute in dependence data Corresponding area index, index calculates graphics area according to area, comprising: extracts corresponding to initial profile line in dependence data Node coordinate.Obtain preset contouring line function to be selected, by node coordinate be input to contouring line function to be selected obtain to Choose result.According to wait choose as a result, choosing objective contour line function from contouring line function to be selected.According to target profile curve letter Number calculates graphics area.
In one embodiment, realize basis wait choose as a result, from contouring to be selected when processor executes computer program Line function is chosen after objective contour line function, comprising: when it is unselected get objective contour line function when, then according to node coordinate, Initial profile line is split.It calculates initial area corresponding to the initial profile line after splitting and obtains initial area set, Graphics area is calculated according to initial area set.
In one embodiment, it is realized when processor executes computer program and inquires attribute corresponding to contouring line to be selected Data choose initial profile line, comprising: inquire corresponding to contouring line to be selected according to attribute data from contouring line to be selected Attribute data, extract the coordinate points to be chosen for including in contouring line to be selected in dependence data.From wait choose in coordinate points Obtain origin coordinates point and terminating coordinates point.Using the consistent contouring line to be selected of origin coordinates point and terminating coordinates point as Initial profile line.
In one embodiment, it realizes when processor executes computer program from wait choose and obtains origin coordinates in coordinate points After point and terminating coordinates point, comprising: when origin coordinates point and terminating coordinates point has not been obtained, then inquire and sat wait choose It whether there is consistent coordinate points in punctuate.When there are consistent coordinate points, then contouring line to be selected is as initial profile line.
In one embodiment, it is realized when processor executes computer program and receives X-Y scheme, identified in X-Y scheme Lines, and after lines are converted to contouring line to be selected, comprising: inquire current layer mark corresponding to contouring line to be selected Know.The graphical information for including in X-Y scheme is obtained, is identified according to current layer, the letter to be deleted for including in graphical information is extracted Breath.Information to be deleted is deleted to obtain attribute data corresponding to contouring line to be selected from graphical information, or according to Information to be deleted screens from map data mining platform and obtains attribute data.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of reception X-Y scheme when being executed by processor, identify the lines in X-Y scheme, and lines are mentioned It is taken as contouring line to be selected.Attribute data corresponding to contouring line to be selected is inquired, according to attribute data, from contouring to be selected Initial profile line is chosen in line.According to attribute data, graphics area corresponding to initial profile line is calculated, according to graphics area, Target profile curve is chosen from initial profile line.Include in inquiry X-Y scheme annotates with target corresponding to target profile curve Data annotate data according to target and target profile curve generate 3-D graphic.
In one embodiment, include in inquiry X-Y scheme and target is realized when computer program is executed by processor Target corresponding to contour line annotates data, annotates data according to target and target profile curve generates 3-D graphic, comprising: look into Annotation data to be chosen corresponding to X-Y scheme are ask, and obtain pre-stored normal data.Normal data is infused with wait choose It releases data to be matched, by extracting wait choose annotation data as target annotation data for successful match.It is infused according to target It releases data and target profile curve generates 3-D graphic.
In one embodiment, it is realized when computer program is executed by processor and data and objective contour is annotated according to target Line generates 3-D graphic, comprising: obtains pre-stored data conversion mapping, and target annotation data are split Character.It carries out being converted to character code by character is split according to data conversion mapping.Number is annotated from target according to character code Numerical data is obtained according to middle selection.Selection and target surface corresponding to target profile curve, by target surface according to numerical data It is stretched to obtain 3-D graphic.
In one embodiment, it is realized when computer program is executed by processor and data is annotated from target according to character code Middle selection obtains numerical data, comprising: coding range, and the coding range that polling character coding is corresponding is obtained, according to coding Range is chosen from character code to digital coding.Digital coding is carried out being converted to digital number according to data conversion mapping According to.
In one embodiment, it realizes when computer program is executed by processor and is selected from character code according to coding range After getting digital coding, comprising: when choosing not from character code to digital coding, then inquire pre-stored digital object Value.Using pre-stored digital object value as numerical data.
In one embodiment, include in inquiry X-Y scheme and target is realized when computer program is executed by processor Target corresponding to contour line annotates after data, comprising: the corresponding annotation coordinate points of inquiry target annotation data.Obtain target Coordinate points to be checked corresponding to contour line generate screening line according to annotation coordinate points and coordinate points to be checked.Statistics screening line With the number of intersections of target profile curve, annotation data to be deleted are chosen according to number of intersections.It will be wait delete from target annotation data Except annotation data are deleted.
In one embodiment, it is realized when computer program is executed by processor according to attribute data, calculates initial profile Graphics area corresponding to line chooses target profile curve from initial profile line according to graphics area, comprising: dependence data Area index corresponding to middle extraction initial profile line, index calculates graphics area according to area.Obtain pre-stored area threshold Value, compares graphics area and area threshold.The initial profile line that graphics area is greater than or equal to area threshold is extracted, As target profile curve.
In one embodiment, it is realized when computer program is executed by processor and extracts initial profile line in dependence data Corresponding area index, index calculates graphics area according to area, comprising: it is right that initial profile line institute is extracted in dependence data The node coordinate answered.Preset contouring line function to be selected is obtained, node coordinate is input to contouring line function to be selected and is obtained Result to be chosen.According to wait choose as a result, choosing objective contour line function from contouring line function to be selected.According to target profile curve Function calculates graphics area.
In one embodiment, it is realized when computer program is executed by processor according to wait choose as a result, being taken turns from wait choose Profile function choose objective contour line function after, comprising: when it is unselected get objective contour line function when, then sat according to node Mark, splits initial profile line.It calculates initial area corresponding to the initial profile line after splitting and obtains primary face productive set It closes, graphics area is calculated according to initial area set.
In one embodiment, it is realized when computer program is executed by processor and inquires category corresponding to contouring line to be selected Property data initial profile line chosen from contouring line to be selected according to attribute data, comprising: it is right to inquire contouring line institute to be selected The attribute data answered extracts the coordinate points to be chosen for including in contouring line to be selected in dependence data.From coordinate points to be chosen Middle acquisition origin coordinates point and terminating coordinates point.The consistent contouring line to be selected of origin coordinates point and terminating coordinates point is made For initial profile line.
In one embodiment, it is realized when computer program is executed by processor from wait choose and obtains starting seat in coordinate points After punctuate and terminating coordinates point, comprising: when origin coordinates point and terminating coordinates point has not been obtained, then inquire wait choose It whether there is consistent coordinate points in coordinate points.When there are consistent coordinate points, then contouring line to be selected is as initial profile Line.
In one embodiment, it is realized when computer program is executed by processor and receives X-Y scheme, identify X-Y scheme In lines, and after lines are converted to contouring line to be selected, comprising: inquire current layer corresponding to contouring line to be selected Mark.The graphical information for including in X-Y scheme is obtained, is identified according to current layer, include in extraction graphical information is to be deleted Information.Information to be deleted is deleted from graphical information to obtain attribute data corresponding to contouring line to be selected, Huo Zhegen It is screened from map data mining platform according to information to be deleted and obtains attribute data.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (15)

1. a kind of figure conversion method, which comprises
X-Y scheme is received, identifies the lines in the X-Y scheme, and the lines are extracted and are used as contouring line to be selected;
Attribute data corresponding to the contouring line to be selected is inquired, according to the attribute data, from the contouring line to be selected Middle selection initial profile line;
According to the attribute data, graphics area corresponding to the initial profile line is calculated, according to the graphics area, from institute It states in initial profile line and chooses target profile curve;
Inquire include in the X-Y scheme with target corresponding to the target profile curve annotate data, according to the target It annotates data and the target profile curve generates 3-D graphic.
2. the method according to claim 1, wherein including with the mesh in the inquiry X-Y scheme It marks target corresponding to contour line and annotates data, data are annotated according to the target and the target profile curve generates three-dimensional figure Shape, comprising:
Annotation data to be chosen corresponding to the X-Y scheme are inquired, and obtain pre-stored normal data;
The normal data is matched with described wait choose annotation data, by annotation to be chosen data described in successful match It extracts and annotates data as target;
Data are annotated according to the target and the target profile curve generates 3-D graphic.
3. according to the method described in claim 2, it is characterized in that, described annotate data and the target wheel according to the target Profile generates 3-D graphic, comprising:
Pre-stored data conversion mapping is obtained, and target annotation data are split to obtain and split character;
It is mapped according to the data conversion and carries out the fractionation character to be converted to character code;
It is chosen from target annotation data according to the character code and obtains numerical data;
Selection and target surface corresponding to the target profile curve, the target surface is drawn according to the numerical data It stretches to obtain 3-D graphic.
4. according to the method described in claim 3, it is characterized in that, described annotate number from the target according to the character code Numerical data is obtained according to middle selection, comprising:
Coding range is obtained, and inquires coding range corresponding to the character code, according to the coding range from the word It is chosen in symbol coding and arrives digital coding;
The digital coding is carried out being converted to numerical data according to data conversion mapping.
5. according to the method described in claim 4, it is characterized in that, it is described according to the coding range from the character code After choosing digital coding, comprising:
When choosing not from character code to digital coding, then pre-stored digital object value is inquired;
Using the pre-stored digital object value as the numerical data.
6. the method according to claim 1, wherein including with the mesh in the inquiry X-Y scheme After target annotation data corresponding to mark contour line, comprising:
Inquire the corresponding annotation coordinate points of the target annotation data;
Coordinate points to be checked corresponding to the target profile curve are obtained, according to the annotation coordinate points and the coordinate to be checked Point generates screening line;
The number of intersections for counting the screening line and the target profile curve, chooses annotation number to be deleted according to the number of intersections According to;
The annotation data to be deleted are deleted from target annotation data.
7. the method according to claim 1, wherein described according to the attribute data, the calculating initial wheel Graphics area corresponding to profile chooses target profile curve from the initial profile line according to the graphics area, comprising:
Area index corresponding to the initial profile line is extracted from the attribute data, and institute is calculated according to the area index State graphics area;
Obtain pre-stored area threshold, the graphics area and the area threshold;
The initial profile line that the graphics area is greater than or equal to the area threshold is extracted, as target profile curve.
8. the method according to the description of claim 7 is characterized in that described extract the initial profile from the attribute data Area index corresponding to line calculates the graphics area according to the area index, comprising:
Node coordinate corresponding to the initial profile line is extracted from the attribute data;
Obtain preset contouring line function to be selected, by the node coordinate be input to the contouring line function to be selected obtain to Choose result;
According to described wait choose as a result, choosing objective contour line function from the contouring line function to be selected;
The graphics area is calculated according to the objective contour line function.
9. according to the method described in claim 8, it is characterized in that, it is described according to wait choose as a result, from described wait choose Profile line function is chosen after objective contour line function, comprising:
When it is unselected get objective contour line function when, then according to the node coordinate, the initial profile line is split;
It calculates initial area corresponding to the initial profile line after splitting and obtains initial area set, according to the primary face productive set Graphics area is calculated in conjunction.
10. the method according to claim 1, wherein category corresponding to the inquiry contouring line to be selected Property data initial profile line chosen from the contouring line to be selected according to the attribute data, comprising:
Attribute data corresponding to the contouring line to be selected is inquired, the contouring line to be selected is extracted from the attribute data In include coordinate points to be chosen;
Origin coordinates point and terminating coordinates point are obtained in coordinate points wait choose from described;
Using the origin coordinates point and the consistent contouring line to be selected of terminating coordinates point as initial profile line.
11. according to the method described in claim 10, it is characterized in that, described obtain starting seat wait choose from described in coordinate points After punctuate and terminating coordinates point, comprising:
When origin coordinates point and terminating coordinates point has not been obtained, then inquiry is described whether there is wait choose in coordinate points Consistent coordinate points;
When there are consistent coordinate points, then the contouring line to be selected is as initial profile line.
12. the method according to claim 1, wherein the reception X-Y scheme, identifies in the X-Y scheme Lines, and after the lines are converted to contouring line to be selected, comprising:
Inquire the mark of current layer corresponding to contouring line to be selected;
The graphical information for including in the X-Y scheme is obtained, is identified, is extracted in the graphical information according to the current layer The information to be deleted for including;
The information to be deleted is deleted from the graphical information to obtain attribute corresponding to the contouring line to be selected Data, or screened from the map data mining platform according to the information to be deleted and obtain the attribute data.
13. a kind of pattern switch device, which is characterized in that described device includes:
Receiving module identifies the lines in the X-Y scheme for receiving X-Y scheme, and by the lines extract as to Choose contour line;
Screening module, for inquiring attribute data corresponding to the contouring line to be selected, according to the attribute data, from described Initial profile line is chosen in contouring line to be selected;
Module is chosen, for graphics area corresponding to the initial profile line being calculated, according to described according to the attribute data Graphics area chooses target profile curve from the initial profile line;
Generation module, for inquire include in the X-Y scheme with target corresponding to the target profile curve annotate number According to according to target annotation data and target profile curve generation 3-D graphic.
14. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 12 the method when executing the computer program.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 12 is realized when being executed by processor.
CN201910298999.5A 2019-04-15 2019-04-15 Graph conversion method, graph conversion device, computer equipment and storage medium Active CN110033515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910298999.5A CN110033515B (en) 2019-04-15 2019-04-15 Graph conversion method, graph conversion device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910298999.5A CN110033515B (en) 2019-04-15 2019-04-15 Graph conversion method, graph conversion device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110033515A true CN110033515A (en) 2019-07-19
CN110033515B CN110033515B (en) 2023-04-07

Family

ID=67238411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910298999.5A Active CN110033515B (en) 2019-04-15 2019-04-15 Graph conversion method, graph conversion device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110033515B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950422A (en) * 2020-08-05 2020-11-17 万翼科技有限公司 Drawing identification method and related device
CN111984017A (en) * 2020-08-31 2020-11-24 苏州三六零机器人科技有限公司 Cleaning equipment control method, device and system and computer readable storage medium
CN112651378A (en) * 2021-01-08 2021-04-13 刘连英 Method, device and medium for identifying marking information of fastener two-dimensional drawing
CN115937470A (en) * 2023-01-31 2023-04-07 南京砺算科技有限公司 Graphics processing unit, method of processing subdivision points thereof, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780586A (en) * 2016-03-09 2018-11-09 株式会社理光 Image processing method, display equipment and inspection system
CN108876910A (en) * 2018-06-15 2018-11-23 郑州云海信息技术有限公司 A kind of three-dimensional modeling method, device, equipment and computer readable storage medium
CN109242903A (en) * 2018-09-07 2019-01-18 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of three-dimensional data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108780586A (en) * 2016-03-09 2018-11-09 株式会社理光 Image processing method, display equipment and inspection system
CN108876910A (en) * 2018-06-15 2018-11-23 郑州云海信息技术有限公司 A kind of three-dimensional modeling method, device, equipment and computer readable storage medium
CN109242903A (en) * 2018-09-07 2019-01-18 百度在线网络技术(北京)有限公司 Generation method, device, equipment and the storage medium of three-dimensional data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111950422A (en) * 2020-08-05 2020-11-17 万翼科技有限公司 Drawing identification method and related device
CN111950422B (en) * 2020-08-05 2024-06-28 万翼科技有限公司 Drawing identification method and related device
CN111984017A (en) * 2020-08-31 2020-11-24 苏州三六零机器人科技有限公司 Cleaning equipment control method, device and system and computer readable storage medium
CN112651378A (en) * 2021-01-08 2021-04-13 刘连英 Method, device and medium for identifying marking information of fastener two-dimensional drawing
CN112651378B (en) * 2021-01-08 2021-10-15 唐旸 Method, device and medium for identifying marking information of fastener two-dimensional drawing
CN115937470A (en) * 2023-01-31 2023-04-07 南京砺算科技有限公司 Graphics processing unit, method of processing subdivision points thereof, and storage medium

Also Published As

Publication number Publication date
CN110033515B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110033515A (en) Figure conversion method, device, computer equipment and storage medium
CN110414520B (en) Universal character recognition method, apparatus, computer device and storage medium
CN110717088A (en) Electronic document-based device management method, apparatus, device and storage medium
CN110033018A (en) Shape similarity judgment method, device and computer readable storage medium
CN110457843A (en) Three-dimensional pipeline model generation method, device, computer equipment and storage medium
CN108803996B (en) Graphic file processing method and device, computer equipment and storage medium
CN110209630A (en) DXF file information processing method, device, computer equipment and storage medium
CN109800559B (en) Method and device for generating slider verification code, computer equipment and storage medium
CN109614454B (en) Vector big data parallel space superposition analysis method based on MPI
CN106874947A (en) Method and apparatus for determining word shape recency
CN112329761A (en) Text detection method, device, equipment and storage medium
CN113592881B (en) Picture designability segmentation method, device, computer equipment and storage medium
CN108197627A (en) A kind of method for extracting two-value graph outline along clockwise direction
CN106470435A (en) The method and system of identification WiFi group
CN106156245A (en) Line feature in a kind of electronic chart merges method and device
CN103795417A (en) Trajectory data compression method capable of controlling maximum error
CN109448018A (en) Track localization method, device, equipment and the storage medium of target
JP2016532897A (en) Method and apparatus for building an intermediate character library
CN109448115B (en) Processing method and device of three-dimensional model and computer equipment
CN112337093B (en) Virtual object clustering method and device, storage medium and electronic device
CN115017877A (en) Storage method of layout file and local reconstruction method of sample database
CN104516899A (en) Updating method and device for word stock
CN112836554A (en) Image verification model construction method, image verification method and device
CN116777804B (en) Intelligent phase diagram local updating method, device and equipment based on generation countermeasure network
CN111145583B (en) Parking space model checking method and device, computer 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