CN111340956B - Space graph drawing method - Google Patents

Space graph drawing method Download PDF

Info

Publication number
CN111340956B
CN111340956B CN202010120905.8A CN202010120905A CN111340956B CN 111340956 B CN111340956 B CN 111340956B CN 202010120905 A CN202010120905 A CN 202010120905A CN 111340956 B CN111340956 B CN 111340956B
Authority
CN
China
Prior art keywords
space
spatial
block
component
module
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.)
Active
Application number
CN202010120905.8A
Other languages
Chinese (zh)
Other versions
CN111340956A (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.)
Shaanxi University of Technology
Original Assignee
Shaanxi University of Technology
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 Shaanxi University of Technology filed Critical Shaanxi University of Technology
Priority to CN202010120905.8A priority Critical patent/CN111340956B/en
Publication of CN111340956A publication Critical patent/CN111340956A/en
Application granted granted Critical
Publication of CN111340956B publication Critical patent/CN111340956B/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
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Abstract

The invention provides a space graph drawing method, and relates to the field of drawing methods. A space graph drawing method is based on a drawing module; the drawing module is provided with a component positioning module, a component scaling module, a block positioning module and a block scaling module; the space graph drawing method comprises the following steps: (1) Drawing a plurality of spatial components based on spatial positions through the component positioning module; (2) Selecting each of the spatial components and changing the size of each of the spatial components by the component scaling module; (3) Drawing a plurality of space blocks based on a space range through the block positioning module, wherein at least one space component exists in each space block; (4) And selecting each space block by the block scaling module and changing the size of each space block. The invention can locate and modify the space graphics, and is convenient for planning and displaying the space graphics in various industries.

Description

Space graph drawing method
Technical Field
The invention relates to the field of drawing methods, in particular to a space graph drawing method.
Background
Two-dimensional drawing software is often used to depict graphics or three-dimensional graphics through three-dimensional drawing software in various industries, such as the construction industry, design industry, and advertising industry. Today, the technology is rapidly developed, and the plane cannot meet the imagination and creativity of people, so that graphics containing different spatial positions are often required to be drawn. Typically, three-dimensional mapping software requires conversion of a three-dimensional image to a two-dimensional image when locally modified. When drawing graphics of which the two-dimensional images are positioned at different spatial positions, the two-dimensional drawing software can divide views of the graphics through a plurality of layers, but the planar graphics divided into the different layers cannot quickly position the spatial positions of the different layers, so that the spatial graphics are inconvenient to search, change, arrange and the like when being displayed and planned.
Thus, there is a need for a spatial graphics rendering method that can quickly locate spatial graphics and facilitate finding, modifying, arranging, and displaying.
Disclosure of Invention
The invention aims to provide a space graph drawing method which can divide a space graph into a plurality of space blocks comprising a plurality of space components, is convenient for positioning and modifying the space graph and is beneficial to displaying and planning the space graph.
Embodiments of the present invention are implemented as follows:
a space graph drawing method is based on a drawing module; the drawing module is provided with a component positioning module, a component scaling module, a block positioning module and a block scaling module; the space graph drawing method comprises the following steps: (1) Drawing a plurality of spatial components based on spatial positions through the component positioning module; (2) Selecting each of the spatial components and changing the size of each of the spatial components by the component scaling module; (3) Drawing a plurality of space blocks based on a space range through the block positioning module, wherein at least one space component exists in each space block; (4) And selecting each space block by the block scaling module and changing the size of each space block.
In some embodiments of the present invention, in the step (3), the block positioning module is connected to the component positioning module, and the block positioning module divides the plurality of spatial components into a plurality of component groups, and draws different spatial blocks according to the spatial ranges of the component groups.
In some embodiments of the invention, in the step (1), the spatial position of each of the spatial components is determined by a three-dimensional coordinate system.
In some embodiments of the invention, the component scaling module selects each of the spatial components by interfacing with the component positioning module.
In some embodiments of the invention, in the step (2), the component scaling module changes the size of each of the spatial components by changing three-dimensional coordinate values of each point on each of the spatial components.
In some embodiments of the invention, in the step (3), the spatial extent of the spatial block is determined by a three-dimensional coordinate system.
In some embodiments of the invention, in the step (1), each of the space components is connected to each other or independent.
In some embodiments of the present invention, in the step (4), the block scaling module is connected to the block positioning module to select each of the spatial blocks.
In some embodiments of the present invention, in the step (4), the block scaling module changes the size of each of the spatial blocks by changing three-dimensional coordinate values of each point on each of the spatial blocks.
In some embodiments of the invention, step (5) is also included; the drawing module is provided with a graph ordering module; the graphic ordering module is used for sequentially ordering a plurality of space components of each block space.
The embodiment of the invention has at least the following advantages or beneficial effects:
1. the drawing module draws a plurality of space components based on space positions through the component positioning module in the step (1), so that space graphics drawing in building, design and advertising industries is satisfied;
2. in the step (2), the size of each space component is selected and changed through a component scaling module, so that the space graph is conveniently changed during planning;
3. in the step (3), a plurality of space blocks are drawn through a block positioning module, so that a plurality of space components are contained in each space block, each space component can be conveniently and rapidly positioned through different space blocks, and planning and displaying of space graphics are facilitated;
4. in the step (4), the size of each space block is selected and changed through the block scaling module, so that the grouping of different space components can be managed conveniently, and planning and displaying of space graphics can be facilitated.
5. The space graphics in different space positions are partitioned through the drawing module, and meanwhile, the use of two-dimensional and three-dimensional drawing software is satisfied.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the embodiments of the present invention, it should be noted that, if the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate an azimuth or a positional relationship based on that shown in the drawings, or an azimuth or a positional relationship in which the product of the present invention is conventionally put when used, it is merely for convenience of describing the present invention and simplifying the description, and it does not indicate or imply that the apparatus or element to be referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Furthermore, the terms "horizontal," "vertical," "overhang" and the like, if any, do not denote a requirement that the component be absolutely horizontal or overhang, but rather may be slightly inclined. As "horizontal" merely means that its direction is more horizontal than "vertical", and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the embodiments of the present invention, "plurality" means at least 2.
In the description of the embodiments of the present invention, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "mounted," "connected," and "connected" should be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
Examples
Referring to fig. 1, fig. 1 shows a space graphics drawing method based on a drawing module; the drawing module is provided with a component positioning module, a component scaling module, a block positioning module and a block scaling module.
The space graph drawing method comprises the following steps: (1) Drawing a plurality of space components based on the space positions through the component positioning module; (2) Selecting each space component and changing the size of each space component through a component scaling module; (3) Drawing a plurality of space blocks based on a space range through a block positioning module, wherein at least one space component exists in each space block; (4) Each spatial block is selected and the size of each spatial block is changed by a block scaling module.
In detail, the drawing module is used for drawing a space graph, and the drawing module can be commonly used two-dimensional or three-dimensional drawing software. Optionally, the component positioning module, the component scaling module, the block positioning module and the block scaling module are assembled in the mapping module by means of plug-ins. The specific manner of loading the plug-in by the existing drawing software is the prior art, and is not needed to be described in excess in the next time.
In detail, a three-dimensional coordinate system is arranged in the drawing module. It should be noted that the two-dimensional drawing software may represent three-dimensional coordinate values of each spatial component in different layers through a three-dimensional coordinate system. Optionally, after the drawing module draws a plurality of space components, the component positioning module moves the space coordinates of each space component to draw the plurality of space components according to preset relative positions. Optionally, the component positioning module may also perform operations such as rotation, translation, and replication on each spatial component. Optionally, the component positioning module may adjust the spatial coordinates of each spatial component by inserting a preset plurality of spatial components, thereby accelerating the efficiency of drawing the plurality of spatial components.
Optionally, the component scaling module selects each spatial component and sets a scaling ratio, so that the size of each spatial component is changed according to the scaling ratio, and the component scaling module adapts to the change of each spatial component in the planning process of the spatial graph. The operation of changing the size of each space component through the component scaling module is convenient for managing and comparing a plurality of space components.
Optionally, the block positioning module defines the grouping of a plurality of space components in the space graph by drawing closed spaces with different shapes, so as to be convenient for grouping the plurality of space components in different regions, types or planning periods and other conditions in different space ranges. Therefore, a plurality of space components in different space ranges are managed in a unified mode, and efficiency of positioning and supervising each space component is improved. The space block comprises at least one complete space component, so that the problem of improper management of each space component due to repeated drawing of the same space component caused by dividing the complete space component is avoided.
Optionally, the block scaling module selects each spatial block and sets a scaling ratio, so that the size of each spatial block is changed according to the scaling ratio, the block scaling module adapts to the change of each spatial block in the planning process of the spatial graph, and the block scaling module is convenient for changing the grouping of different types of spatial components. The operation of changing the size of each space block through the block scaling module is convenient for managing and comparing a plurality of space blocks.
It should be noted that the specific embodiments of the method described above are only specific descriptions of the present invention, and those skilled in the art can understand that simple changes may be made to the above solutions, and the embodiments should also be included in the scope of protection of the present technical solution. And, it should be considered that the present technical solution does not require specific explanation but can be implemented within the scope of understanding of those skilled in the art and obvious under the condition of the prior art.
In step (3), the block positioning module is connected to the component positioning module.
In detail, the block positioning module obtains the space positions of a plurality of space components through the component positioning module, divides the plurality of space components into a plurality of group component groups, and draws space blocks with different shapes according to the space ranges of the group component groups to respectively contain the group component groups, wherein the space blocks are mutually independent.
In a preferred embodiment, in step (1), the spatial position of each spatial component is determined by a three-dimensional coordinate system.
In detail, the spatial position of each spatial component is determined by the coordinate value of any point selected on each spatial component in the three-dimensional coordinate system. Alternatively, two ends of a connecting line according to the minimum linear distance between two space components in the space coordinate system are used as two endpoints for judging the distance between the two space components. A spatial range variation of the spatial block is determined according to the distance between the two spatial components, wherein the spatial range variation includes a variation in the size and shape of the spatial block.
In a preferred embodiment, in step (2), the component scaling module is connected to the component positioning module.
In detail, the component scaling module is connected with the component positioning module to select different spatial components for scaling. Optionally, the component scaling module is connected with the component positioning module to obtain the spatial positions of the spatial components, and selects the corresponding spatial components according to different spatial positions.
In detail, the component scaling module is connected with the component positioning module to acquire the spatial position of each spatial component, so that each spatial component is selected to change the size.
In a preferred embodiment, in step (2), the component scaling module changes the size of each spatial component by changing the three-dimensional coordinate value of each point on each spatial component.
In detail, the component scaling module calculates coordinate values of each point on the selected spatial components on the three-dimensional coordinate system according to a preset scaling ratio. Alternatively, the movement position of each point on the outer periphery of each spatial component is calculated according to the scaling, and the spatial coordinates of each point on the three-dimensional coordinate system are calculated according to the movement positions.
In a preferred embodiment, in step (3), the spatial extent of the spatial region is determined by a three-dimensional coordinate system.
In detail, the spatial position of each spatial component is determined by spatial coordinates on a three-dimensional coordinate system. The spatial extent of the spatial block is defined by the spatial position of each group of elements on the three-dimensional coordinate system, and the spatial position is determined by the spatial coordinates of each point on the periphery of the spatial block on the three-dimensional coordinate system.
In a preferred embodiment, in step (1), the spatial components are connected to each other or are independent.
In detail, when each space component is connected with another, two adjacent space components are divided into the same or different component groups, that is, are distinguished by the same or different space blocks. Different types of spatial components of the spatial pattern are facilitated to be planned. When the space components are separated by a distance, the block scaling module meets a plurality of space components with larger planning range by changing the space range of the space block when the size and the shape of the space components are changed.
In a preferred embodiment, in step (4), the block scaling module is connected to the block positioning module to select each spatial block.
In detail, the block scaling module is connected with the block positioning module to obtain the spatial range of each spatial block, so that each spatial block is selected to change the size thereof. Optionally, the block scaling module changes the size of each spatial block according to a preset scaling ratio.
In a preferred embodiment, in step (4), the block scaling module changes the size of each spatial block by changing the three-dimensional coordinate value of each point on each spatial block.
In detail, the block scaling module changes the size of the component scaling module by changing the three-dimensional coordinate value of each point on each spatial block on the three-dimensional coordinate system. Optionally, the coordinate value of each point on the periphery of each selected space block on the three-dimensional coordinate system is calculated according to a preset scaling. Alternatively, the movement position of each point on the outer periphery of each spatial component is calculated according to the scaling, and the spatial coordinates of each point on the three-dimensional coordinate system are calculated according to the movement positions.
As a preferred embodiment, further comprising step (5); the drawing module is provided with a graph ordering module; the graphic ordering module is used for sequentially ordering a plurality of space components of each block space.
In detail, the drawing module sequentially numbers a plurality of space components of each block space through the graphic ordering module, and orders the space components according to the numbers. The convenient component scaling module selects each spatial component of each spatial block according to the number and displays a plurality of spatial components of each spatial block in a sorted order.
The working principle of the space graph drawing method is as follows: the drawing module draws a plurality of space components based on the space positions through the component positioning module, so that various space components can be conveniently planned; the size of each space component is changed through the component scaling module, so that the size change relation among the space components can be conveniently adjusted; a plurality of space components are grouped into a plurality of component groups through a block positioning module, and the space ranges of the component groups are respectively divided through different space blocks, so that planning of different types of space components is facilitated; the size of each space block is changed through the block positioning module, so that the following of the planning process of each different space block is realized.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A space graph drawing method is characterized by being based on a drawing module; the drawing module is provided with a component positioning module, a component scaling module, a block positioning module and a block scaling module; the space graph drawing method comprises the following steps: (1) Drawing a plurality of spatial components based on spatial positions through the component positioning module; (2) Selecting each of the spatial components and changing the size of each of the spatial components by the component scaling module; (3) Drawing a plurality of space blocks based on a space range through the block positioning module, wherein at least one space component exists in each space block; (4) Selecting each space block through the block scaling module and changing the size of each space block;
in the step (1), the spatial position of each spatial component is determined by a three-dimensional coordinate system;
in the step (2), the component scaling module changes the size of each spatial component by changing the three-dimensional coordinate value of each point on each spatial component;
in the step (4), the block scaling module changes the size of each spatial block by changing the three-dimensional coordinate value of each point on each spatial block;
in the step (3), the block positioning module is connected with the component positioning module, and divides the plurality of space components into a plurality of groups of component groups, and draws different space blocks according to the space ranges of the component groups;
in the step (2), the component scaling module is connected with the component positioning module to select each of the space components;
in the step (4), the block scaling module is connected to the block positioning module to select each of the spatial blocks.
2. A spatial graphics rendering method according to claim 1, wherein in said step (3), said spatial extent of said spatial block is determined by a three-dimensional coordinate system.
3. A space graphics rendering method as claimed in claim 1, wherein in said step (1), each of said space components is connected to each other or independent.
4. A spatial graphics rendering method according to any one of claims 1-3, further comprising step (5); the drawing module is provided with a graph ordering module; the graphic ordering module is used for sequentially ordering a plurality of space components of each block space.
CN202010120905.8A 2020-02-26 2020-02-26 Space graph drawing method Active CN111340956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010120905.8A CN111340956B (en) 2020-02-26 2020-02-26 Space graph drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010120905.8A CN111340956B (en) 2020-02-26 2020-02-26 Space graph drawing method

Publications (2)

Publication Number Publication Date
CN111340956A CN111340956A (en) 2020-06-26
CN111340956B true CN111340956B (en) 2024-02-06

Family

ID=71181979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010120905.8A Active CN111340956B (en) 2020-02-26 2020-02-26 Space graph drawing method

Country Status (1)

Country Link
CN (1) CN111340956B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012128421A1 (en) * 2011-03-22 2012-09-27 주식회사 넥서스칩스 3d graphic model spatial rendering device and 3d rendering method
CN103218818A (en) * 2013-04-19 2013-07-24 中国科学院深圳先进技术研究院 Three-dimensional model segmentation method and segmentation system
CN109544699A (en) * 2018-09-13 2019-03-29 上海嘉实(集团)有限公司 A kind of graphic display method for three-dimensional software

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100561837B1 (en) * 2001-07-09 2006-03-16 삼성전자주식회사 Method for representing image-based rendering information in a 3D scene
US20090295792A1 (en) * 2008-06-03 2009-12-03 Chevron U.S.A. Inc. Virtual petroleum system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012128421A1 (en) * 2011-03-22 2012-09-27 주식회사 넥서스칩스 3d graphic model spatial rendering device and 3d rendering method
CN103218818A (en) * 2013-04-19 2013-07-24 中国科学院深圳先进技术研究院 Three-dimensional model segmentation method and segmentation system
CN109544699A (en) * 2018-09-13 2019-03-29 上海嘉实(集团)有限公司 A kind of graphic display method for three-dimensional software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
3D computer drawing competition CADrina;Nõmm A 等;《IOP Conference Series: Materials Science and Engineering》;第60卷(第2019期);第012012页 *
用Mathematica 软件绘制空间图形的方法和技巧;王高峡;《重庆工学院学报(自然科学版)》;第21卷(第7期);第17-20页 *

Also Published As

Publication number Publication date
CN111340956A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
US9465891B1 (en) Tessellated data visualization system
CA2625653C (en) Computer method and apparatus for creating visible graphics by using a graph algebra
EP0694878B1 (en) A method and apparatus for increasing the displayed detail of a tree structure
US7596468B2 (en) Method for measuring a selected portion of a curved surface of an object
US5454068A (en) Scientific visualization system
JPH03176784A (en) Polygon decomposition method and apparatus in computer graphics
CN112069582A (en) Engineering scene establishing method
CN104507047A (en) Method and device for acquiring POI (point of interest) areas
CN101989178A (en) Three-dimensional ring visualization method of multi-branch tree data structure
CN115344905B (en) Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
CN109636893A (en) The parsing and rendering method of three-dimensional OBJ model and MTL material in iPhone
CN110070616A (en) Memory, statistical data rendering method, device and equipment based on GIS platform
CN111340956B (en) Space graph drawing method
US20030085887A1 (en) Method and system for identifying objects using a shape-fitting algorithm
CN102663160A (en) Method for constructing three-dimensional physical circuit design model
CN111340963B (en) Element ordering system in space image layer
EP3055996A1 (en) Displaying multivariate data in multiple dimensions
JPH10162041A (en) System for data conversion from two-dimensional cad to three-dimensional cad, and interference checking method for mounted component
CN113112594A (en) Power transmission and transformation project three-dimensional model lightweight method and device based on electric power GIM
CN111476855B (en) Scheme drawing method, device, electronic equipment and computer readable medium
CN112070892B (en) Method for constructing three-dimensional model through contour line traversal for geophysical exploration
JPH0623990B2 (en) 3D container design device
CN115905657A (en) Graph data clustering hierarchical layout algorithm
CN117216174A (en) Situation center space management method and device based on MySQL8
CN112363684A (en) Three-dimensional image display method of LED three-dimensional stereoscopic display

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