[go: up one dir, main page]

CN115131463A - Method, apparatus, device and storage medium for drawing primitives - Google Patents

Method, apparatus, device and storage medium for drawing primitives Download PDF

Info

Publication number
CN115131463A
CN115131463A CN202210855014.6A CN202210855014A CN115131463A CN 115131463 A CN115131463 A CN 115131463A CN 202210855014 A CN202210855014 A CN 202210855014A CN 115131463 A CN115131463 A CN 115131463A
Authority
CN
China
Prior art keywords
primitive
sub
primitives
size
reference points
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210855014.6A
Other languages
Chinese (zh)
Inventor
李闪磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210855014.6A priority Critical patent/CN115131463A/en
Publication of CN115131463A publication Critical patent/CN115131463A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

According to an embodiment of the disclosure, a method, an apparatus, a device and a storage medium for drawing a primitive are provided. The method described herein comprises: in response to detecting an input that changes a first size of a first primitive in a layout diagram of a target space, determining a changed second size, the first primitive representing a target element in the target space and the first primitive including a first number of sub-primitives; determining a second number of sub-primitives based on the second size; determining a second set of reference points for at least a portion of the second number of sub-primitives based on the first set of reference points and the second number for the first number of sub-primitives; and rendering, based on the second set of reference points, a second primitive representing the target element in the layout diagram to replace the first primitive, the second primitive including a second number of sub-primitives. Therefore, the size, the angle and the shape of the picture elements in the spatial layout can be flexibly adjusted, and the manufacturing efficiency and the presentation effect of the spatial layout are improved.

Description

用于绘制图元的方法、装置、设备和存储介质Method, apparatus, device and storage medium for drawing primitives

技术领域technical field

本公开的示例实施例总体上涉及计算机领域,更具体地,涉及用于绘制图元的方法、装置、设备和计算机可读存储介质。Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, apparatus, devices, and computer-readable storage media for drawing primitives.

背景技术Background technique

在绘制平面布局图的场景中,为了真实地反映出空间结构和面积,各子空间的位置朝向、使用功能等信息,通常需要根据该空间的测量数据,利用相应图元来表示空间中的各种元素。目前,已经可以借助计算机来制作平面布局图。但是,在绘制平面布局图中的某些元素时,仍然采用直接对元素的图片进行拉伸的方式来调整图元。这将不可避免地造成平面布局图中的尺寸和比例与测量数据之间的误差。In the scene of drawing a floor plan, in order to truly reflect the spatial structure and area, the position, orientation, and use functions of each subspace, it is usually necessary to use the corresponding graphics elements to represent each subspace according to the measurement data of the space. elements. At present, it is already possible to make floor plans with the help of computers. However, when drawing some elements in the floor plan, the primitives are still adjusted by directly stretching the pictures of the elements. This will inevitably result in errors between the dimensions and proportions in the floor plan and the measured data.

发明内容SUMMARY OF THE INVENTION

在本公开的第一方面,提供了一种绘制图元的方法。该方法包括:响应于检测到改变第一图元在目标空间的布局图中的第一尺寸的输入,确定改变后的第二尺寸,第一图元表示目标空间中的目标元素,并且第一图元包括第一数目的子图元;基于第二尺寸,确定子图元的第二数目;基于针对第一数目的子图元的第一组参考点和第二数目,确定针对第二数目的子图元中的至少一部分的第二组参考点;以及基于第二组参考点,在布局图中呈现表示目标元素的第二图元以替换第一图元,第二图元包括第二数目的子图元。In a first aspect of the present disclosure, a method of drawing primitives is provided. The method includes determining, in response to detecting an input that changes a first size of a first primitive in a layout diagram of a target space, a changed second size, the first primitive representing a target element in the target space, and the first The primitive includes a first number of sub primitives; based on the second size, a second number of sub primitives is determined; based on the first set of reference points and the second number for the first number of sub primitives, the second number is determined and based on the second set of reference points, presenting a second primitive representing the target element in the layout to replace the first primitive, the second primitive comprising the second primitive number of sub-primitives.

在本公开的第二方面,提供了一种用于绘制图元的装置。该装置包括:尺寸确定模块,被配置为响应于检测到改变第一图元在目标空间的布局图中的第一尺寸的输入,确定改变后的第二尺寸,第一图元表示目标空间中的目标元素,并且第一图元包括第一数目的子图元;子图元确定模块,被配置为基于第二尺寸,确定子图元的第二数目;参考点确定模块,被配置为基于针对第一数目的子图元的第一组参考点和第二数目,确定针对第二数目的子图元中的至少一部分的第二组参考点;以及呈现模块,被配置为基于第二组参考点,在布局图中呈现表示目标元素的第二图元以替换第一图元,第二图元包括第二数目的子图元。In a second aspect of the present disclosure, an apparatus for drawing primitives is provided. The apparatus includes: a size determination module configured to determine a changed second size in response to detecting an input that changes a first size of a first primitive in a layout diagram of a target space, the first primitive representing the target space The target element, and the first primitive includes a first number of sub primitives; the sub primitive determination module is configured to determine the second number of sub primitives based on the second size; the reference point determination module is configured to be based on for a first set of reference points and a second number of the first number of sub-primitives, determining a second set of reference points for at least a portion of the second number of sub-primitives; and a rendering module configured to based on the second set of reference points Referring to the point of reference, a second primitive representing the target element is presented in the layout in place of the first primitive, the second primitive comprising a second number of sub-primitives.

在本公开的第三方面,提供了一种电子设备。该电子设备包括至少一个处理单元;以及至少一个存储器,至少一个存储器被耦合到至少一个处理单元并且存储用于由至少一个处理单元执行的指令。指令在由至少一个处理单元执行时使该电子设备执行第一方面的方法。In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by at least one processing unit, cause the electronic device to perform the method of the first aspect.

在本公开的第四方面,提供了一种计算机可读存储介质。该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现第一方面的方法。In a fourth aspect of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method of the first aspect is implemented.

应当理解,本发明内容部分中所描述的内容并非旨在限定本公开的实施例的关键特征或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的描述而变得容易理解。It should be understood that what is described in this Summary section is not intended to limit key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of drawings

结合附图并参考以下详细说明,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。在附图中,相同或相似的附图标记表示相同或相似的元素,其中:The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. In the drawings, the same or similar reference numbers refer to the same or similar elements, wherein:

图1示出了本公开的实施例能够在其中实现的示例环境的示意图;1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

图2示出了根据本公开的一些实施例的用于生成三维模型的过程的交互图;2 illustrates an interaction diagram of a process for generating a three-dimensional model according to some embodiments of the present disclosure;

图3A至图3D示出了根据本公开的一些实施例的绘制示例图元的用户界面的示意图;3A-3D illustrate schematic diagrams of a user interface for drawing example primitives, according to some embodiments of the present disclosure;

图4A至图4D示出了根据本公开的一些实施例的绘制另一示例图元的用户界面的示意图;4A-4D illustrate schematic diagrams of a user interface for drawing another example primitive, according to some embodiments of the present disclosure;

图5示出了根据本公开的一些实施例的用于绘制图元的装置的框图;以及FIG. 5 shows a block diagram of an apparatus for drawing primitives according to some embodiments of the present disclosure; and

图6示出了能够实施本公开的多个实施例的设备的框图。6 illustrates a block diagram of a device capable of implementing various embodiments of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中示出了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.

在本公开的实施例的描述中,术语“包括”及其类似用语应当理解为开放性包含,即“包括但不限于”。术语“基于”应当理解为“至少部分地基于”。术语“一个实施例”或“该实施例”应当理解为“至少一个实施例”。术语“一些实施例”应当理解为“至少一些实施例”。下文还可能包括其他明确的和隐含的定义。In the description of embodiments of the present disclosure, the term "comprising" and the like should be understood as open-ended inclusion, ie, "including but not limited to". The term "based on" should be understood as "based at least in part on". The terms "one embodiment" or "the embodiment" should be understood to mean "at least one embodiment". The term "some embodiments" should be understood to mean "at least some embodiments." Other explicit and implicit definitions may also be included below.

可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获取或使用)应当遵循相应法律法规及相关规定的要求。It can be understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of the corresponding laws and regulations and relevant regulations.

在本公开的实施例的描述中,对“第一”、“第二”等词语的使用仅仅为了在不同元素、对象、目标、单元之间进行区分,而并非暗示这些元素、对象、目标、单元在时间、空间、优先级上的顺序或差异。In the description of the embodiments of the present disclosure, the use of words such as "first", "second", etc. is only for distinguishing between different elements, objects, objects, units, rather than implying these elements, objects, objects, The order or difference of units in time, space, or priority.

可以理解的是,在使用本公开各实施例公开的技术方案之前,均应当根据相关法律法规通过适当的方式对本公开所涉及个人信息的类型、使用范围、使用场景等告知用户并获得用户的授权。It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed of the type, scope of use, and use scenario of the personal information involved in the present disclosure in an appropriate manner in accordance with relevant laws and regulations, and the user's authorization should be obtained. .

例如,在响应于接收到用户的主动请求时,向用户发送提示信息,以明确地提示用户,其请求执行的操作将需要获取和使用到用户的个人信息。从而,使得用户可以根据提示信息来自主地选择是否向执行本公开技术方案的操作的电子设备、应用程序、服务器或存储介质等软件或硬件提供个人信息。For example, in response to receiving an active request from the user, prompt information is sent to the user to explicitly prompt the user that the requested operation will require the acquisition and use of the user's personal information. Therefore, the user can independently choose whether to provide personal information to software or hardware such as electronic devices, applications, servers, or storage media that perform operations of the technical solutions of the present disclosure according to the prompt information.

作为一种可选的但非限制性的实现方式,响应于接收到用户的主动请求,向用户发送提示信息的方式,例如可以是弹窗的方式,弹窗中可以以文字的方式呈现提示信息。此外,弹窗中还可以承载供用户选择“同意”或“不同意”向电子设备提供个人信息的选择控件。As an optional but non-limiting implementation, in response to receiving a user's active request, the method of sending prompt information to the user, for example, can be a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. . In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

可以理解的是,上述通知和获取用户授权过程仅是示意性的,不对本公开的实现方式构成限定,其他满足相关法律法规的方式也可应用于本公开的实现方式中。It can be understood that the above process of notifying and obtaining user authorization is only illustrative, and does not limit the implementation of the present disclosure, and other methods that satisfy relevant laws and regulations can also be applied to the implementation of the present disclosure.

平面布局图的一个示例性应用场景是房屋户型图,其中的元素可以包括墙体、门、窗户、阶梯等等。房屋户型图用来反映房屋面积、户型格局、墙体分布、房间朝向、功能分区、户型采光等信息。通常,在绘制房屋户型图时,需要参考在房屋现场拍摄的图像和测量的数据。但是,在绘制平面布局图中的某些元素时,无法通过计算机生成对应的图元,而是采用对图片进行等比例缩放的方式来调整图元。An exemplary application scenario for a floor plan is a house plan, where elements can include walls, doors, windows, stairs, and so on. The house floor plan is used to reflect information such as house area, floor plan, wall distribution, room orientation, functional zoning, and floor lighting. Usually, when drawing a house plan, it is necessary to refer to the images taken on the house site and the measured data. However, when drawing some elements in the floor plan, the corresponding primitives cannot be generated by the computer, but the primitives are adjusted by scaling the picture in equal proportions.

例如,在绘制直梯时,仅能通过等比例缩放图片的方式来调整阶梯大小。这种方式无法根据房屋情况动态调节阶梯的阶数和宽度。此外,在拉伸图片时,可能导致图片畸变。除了房屋户型图,绘制空间布局图的其他场景也面临类似的问题。因此,期望对空间布局图的制作过程进行改进,以便能够灵活调整空间布局图中的各种图元。For example, when drawing a vertical ladder, you can only adjust the size of the ladder by scaling the image proportionally. This method cannot dynamically adjust the steps and widths of the steps according to the housing conditions. Also, when stretching the picture, it may cause picture distortion. In addition to house floor plans, other scenarios for drawing spatial layouts also face similar problems. Therefore, it is expected to improve the production process of the space layout diagram so as to be able to flexibly adjust various primitives in the space layout diagram.

本公开的实施例提出了用于绘制图元的方案。该方案能够将空间元素的属性参数化,从而可以根据参数准确地调整空间布局图中的图元尺寸和形状。此外,该方案还提供了用于绘制图元的用户界面,并支持以灵活的交互方式来调整图元。以此方式,能够提高空间布局图的制作效率,保障空间布局图的准确性,并且增强了呈现效果。Embodiments of the present disclosure propose solutions for drawing primitives. This solution can parameterize the attributes of space elements, so that the size and shape of primitives in the space layout diagram can be adjusted accurately according to the parameters. In addition, the scheme provides a user interface for drawing primitives, and supports adjusting primitives in a flexible and interactive manner. In this way, the production efficiency of the spatial layout diagram can be improved, the accuracy of the spatial layout diagram can be ensured, and the presentation effect can be enhanced.

在下文中将结合房屋户型图的场景来描述本公开的实施例。但是,应当理解房屋户型图仅仅是本公开的实施例的众多应用场景之一,并且本公开的实施例同样适用于其他场景,例如,工程施工、城市规划、交通管理等等。因此,本公开的实施例的范围不限于此。Hereinafter, embodiments of the present disclosure will be described in conjunction with the scenario of a house floor plan. However, it should be understood that the house floor plan is only one of many application scenarios of the embodiments of the present disclosure, and the embodiments of the present disclosure are also applicable to other scenarios, such as engineering construction, urban planning, traffic management, and so on. Therefore, the scope of the embodiments of the present disclosure is not limited thereto.

此外,在下文中还将参考若干用户界面(UI)的示例状态来描述实施例。应当理解,这些UI及交互仅仅是说明性的,实际可以存在各种界面设计和交互方式。另外,这些UI中包括的控件可以用任何目前已知或者将来开发的UI元素和技术来实现。此外,这些控件的类型、形式、操作方式、在UI中的布局、排列等均是示意性的,并且无意以任何形式限制本公开的范围。Furthermore, embodiments are also described below with reference to several example states of a user interface (UI). It should be understood that these UIs and interactions are merely illustrative, and there may actually be various interface designs and interaction modes. Additionally, the controls included in these UIs may be implemented using any currently known or future developed UI elements and techniques. Furthermore, the type, form, operation mode, layout, arrangement, etc. of these controls in the UI are all illustrative, and are not intended to limit the scope of the present disclosure in any way.

图1示出了本公开的实施例能够在其中实现的示例环境100的示意图。在示例环境100中,终端设备110可以用于制作针对目标空间的平面布局图。在一些实施例中,目标空间可以是房屋、建筑物等等。相应地,平面布局图可以是房屋户型图、建筑平面图等等。当然,在其他实施例中,目标空间可以任何其他合适的实体或虚拟空间。因此,本公开的实施例在此方面不受限制。FIG. 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. In the example environment 100, the end device 110 may be used to make a floor plan for the target space. In some embodiments, the target space may be a house, a building, or the like. Correspondingly, the floor plan may be a house plan, a building plan, or the like. Of course, in other embodiments, the target space may be any other suitable physical or virtual space. Accordingly, embodiments of the present disclosure are not limited in this regard.

在一些实施例中,用于制作平面布局图的实景图片、建模图像可以由用户通过终端设备110拍摄或生成。在另一些实施例中,这些实景图片或建模图像可以来自任何其他数据源。此外,在一些实施例中,针对目标空间的测量数据可以由用户102上传或者可以从任何其他数据源获取。In some embodiments, the real-life pictures and modeling images used for making the floor plan may be photographed or generated by the user through the terminal device 110 . In other embodiments, these live-action pictures or modeled images may come from any other data source. Furthermore, in some embodiments, the measurement data for the target space may be uploaded by the user 102 or may be obtained from any other data source.

在一些实施例中,终端设备110可以安装有用于制作平面布局图的应用120。在一些实施例中,应用120可以向用户102呈现用户制作平面布局图的用户界面,这将在下面结合图2、图3A至图3D以及图4A至图4D进行详细描述。In some embodiments, the terminal device 110 may be installed with an application 120 for making floor plans. In some embodiments, the application 120 may present to the user 102 a user interface for the user to make a floor plan, as described in detail below in conjunction with FIGS. 2 , 3A-3D, and 4A-4D.

终端设备110可以是任意类型的移动终端、固定终端或便携式终端,包括移动手机、台式计算机、膝上型计算机、笔记本计算机、上网本计算机、平板计算机、媒体计算机、多媒体平板、个人通信系统(PCS)设备、个人导航设备、个人数字助理(PDA)、音频/视频播放器、数码相机/摄像机、定位设备、电视接收器、无线电广播接收器、电子书设备、游戏设备或者前述各项的任意组合,包括这些设备的配件和外设或者其任意组合。在一些实施例中,终端设备110和120也能够支持任意类型的针对用户的接口(诸如“可佩戴”电路等)。Terminal device 110 may be any type of mobile terminal, stationary terminal or portable terminal, including mobile phone, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, media computer, multimedia tablet, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio/video players, digital cameras/camcorders, pointing devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination of the foregoing, Includes accessories and peripherals for these devices or any combination thereof. In some embodiments, end devices 110 and 120 are also capable of supporting any type of interface to the user (such as "wearable" circuitry, etc.).

终端设备110可以与远程设备(未示出)通信,以实现对目标空间的平面布局图数据的存储、更新和访问。例如,远程设备可以用于扩展终端设备110的存储和处理能力。在一些实施例中,远程设备可以是能够提供计算能力的各种类型的计算系统/服务器,包括但不限于大型机、边缘计算节点、云环境中的电子设备,等等。The terminal device 110 may communicate with a remote device (not shown) to enable storage, update and access to floor plan data of the target space. For example, remote devices may be used to expand the storage and processing capabilities of end device 110 . In some embodiments, the remote devices may be various types of computing systems/servers capable of providing computing capabilities, including but not limited to mainframes, edge computing nodes, electronic devices in cloud environments, and the like.

在本文中,目标空间的图片、测量数据以及平面布局图可以具有任何数据格式。本公开的实施例在此方面不受限制。还应当理解的是,仅出于示例性的目的描述环境100的结构和功能,而不暗示对于本公开的范围的任何限制。In this context, pictures, measurement data, and floor plans of the target space may have any data format. Embodiments of the present disclosure are not limited in this regard. It should also be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.

下面将参考图2,其示出了根据本公开的一些实施例的用于绘制图元的过程200的流程图。过程200可以在终端设备110处实现。当然,过程200也可以在任何适当的设备处实现。为了便于讨论,将参考图1的环境100来描述过程200。Reference will now be made to FIG. 2, which shows a flowchart of a process 200 for drawing primitives in accordance with some embodiments of the present disclosure. Process 200 may be implemented at terminal device 110 . Of course, process 200 may also be implemented at any suitable device. For ease of discussion, process 200 will be described with reference to environment 100 of FIG. 1 .

在图2的示例中,用户102通过终端设备110制作用于目标空间的平面布局图。如前所述,目标空间可以是真实空间或虚拟空间,并且其中具有能够反映空间的结构布局、面积,各子空间的位置、朝向、面积、使用功能等属性的元素,包括但不限于阶梯、门、窗、墙体,等等。这些元素在平面布局图中可以用相应的图元来表示,并且图元在平面布局图中的比例与元素在目标空间中的比例基本相同。In the example of FIG. 2 , the user 102 makes a floor plan for the target space through the terminal device 110 . As mentioned above, the target space can be a real space or a virtual space, and it has elements that can reflect the structural layout, area of the space, the position, orientation, area, use function and other attributes of each subspace, including but not limited to stairs, Doors, windows, walls, etc. These elements can be represented by corresponding primitives in the floor plan, and the scale of the primitives in the floor plan is basically the same as the scale of the elements in the target space.

在过程200中,终端设备110针对布局图中的图元进行调整。作为示例,用户102可以通过呈现在终端设备110中的应用120的用户界面来调整布局图中各种图元的尺寸、角度、形状,等等。In the process 200, the terminal device 110 adjusts the primitives in the layout. As an example, the user 102 may adjust the size, angle, shape, etc. of various primitives in the layout through the user interface of the application 120 presented in the terminal device 110 .

图3A至图3D示出了根据本公开的一些实施例的用于绘制图元的用户界面的示意图,其中呈现有表示直梯图元,并且直梯图元具有第一数目的子图元,子图元表示直梯的矩形阶梯。如图3A所示,用户界面300包括元素控件310,用户102可以通过诸如点击、拖动等手势来激活元素控件310中表示相应元素的子控件,以向布局图中添加图元。在图3A的示例中,通过激活表示直梯的子控件来向布局图中添加第一图元320。FIGS. 3A-3D illustrate schematic diagrams of a user interface for drawing primitives, wherein the ladder primitives are presented, and the ladder primitives have a first number of sub-primitives, according to some embodiments of the present disclosure, The sub-entity represents the rectangular ladder of a straight ladder. As shown in FIG. 3A, the user interface 300 includes an element control 310, and the user 102 can activate the sub-controls representing the corresponding elements in the element control 310 through gestures such as clicking, dragging, etc., to add primitives to the layout. In the example of FIG. 3A, a first primitive 320 is added to the layout by activating a sub-control representing a vertical ladder.

用户界面300还包括用于操纵布局图的控件312,通过激活控件312中的相应子控件可以触发针对布局图的相应操作。应当理解,控件312中的子控件仅仅是示例性的。在实践中,可以根据需要提供与用户界面300中不同的子控件,本公开在此方面不做赘述。The user interface 300 also includes controls 312 for manipulating the layout map, and corresponding operations on the layout map can be triggered by activating corresponding sub-controls in the controls 312 . It should be understood that the sub-controls in control 312 are merely exemplary. In practice, sub-controls different from those in the user interface 300 may be provided as required, which will not be described in detail in this disclosure.

用户界面300还包括针对目标元素的信息区域330和操作区域340。信息区域330呈现目标元素的属性和尺寸参数,并且包括类型控件331和尺寸控件333、335、337和338。通过激活类型控件331可以更改当前绘制的图元类型。通过激活控件333、335、337和338可以相应地调整图元的长度332、宽度334、角度336等尺寸参数。在图3A的示例中,控件333、335和337被示为滑块控件,用户102通过向左或向右拖动滑块来改变对应尺寸参数的大小。此外,控件338提供了针对预定角度的若干子控件。用户102可以通过激活控件338的子控件之一来将第一图元320设置为对应的预定角度。操作区域340包括用于针对第一图元执行左右镜像、内外镜像、删除元素等操作的控件341至343。User interface 300 also includes an information area 330 and an operation area 340 for the target element. Information area 330 presents properties and size parameters of the target element, and includes type control 331 and size controls 333 , 335 , 337 and 338 . The currently drawn primitive type can be changed by activating the type control 331 . By activating controls 333, 335, 337, and 338, size parameters such as length 332, width 334, and angle 336 of the primitive can be adjusted accordingly. In the example of FIG. 3A, controls 333, 335, and 337 are shown as slider controls, and the user 102 changes the size of the corresponding size parameter by dragging the slider left or right. Additionally, control 338 provides several sub-controls for predetermined angles. The user 102 may set the first primitive 320 to a corresponding predetermined angle by activating one of the sub-controls of the control 338 . The operation area 340 includes controls 341 to 343 for performing operations such as left-right mirroring, inside-outside mirroring, deleting elements, and the like for the first graphic element.

应当理解,针对不同目标元素所呈现的属性、操作及控件的类型和数目可能是不同的。因此,用户界面300的布局和其中的控件仅仅是说明性的,而无意以任何形式限制本公开的范围。It should be understood that the type and number of properties, operations and controls presented for different target elements may be different. Accordingly, the layout of user interface 300 and the controls therein are illustrative only, and are not intended to limit the scope of the present disclosure in any way.

在框210,终端设备110针对改变第一图元在目标空间的布局图中的第一尺寸的输入进行检测。在一些实施例中,输入可以为针对终端设备110的屏幕的触摸手势,包括但不限于,拖动手势、捏合手势等等。附加地或备选地,在其他实施例中,输入可以为针对图元的长度控件332、宽度控件334、角度控件336输入尺寸参数。At block 210, the terminal device 110 detects an input that changes the first size of the first primitive in the layout map of the target space. In some embodiments, the input may be a touch gesture with respect to the screen of the terminal device 110, including, but not limited to, a drag gesture, a pinch gesture, and the like. Additionally or alternatively, in other embodiments, the input may be a length control 332, width control 334, angle control 336 input size parameters for primitives.

响应于检测到改变第一图元320在目标空间的布局图中的第一尺寸的输入,在框220,终端设备110确定改变后的第二尺寸。第一图元320表示目标空间中的目标元素,并且第一图元包括第一数目的子图元。在一些实施例中,目标元素为直梯,并且子图元表示直梯的矩形阶梯,第一尺寸包括以下至少一项:直梯或矩形阶梯的长、宽、高。In response to detecting an input that changes the first size of the first primitive 320 in the layout view of the target space, at block 220, the terminal device 110 determines the changed second size. The first primitive 320 represents a target element in the target space, and the first primitive includes a first number of sub-primitives. In some embodiments, the target element is a straight ladder, and the sub-picture element represents a rectangular ladder of the straight ladder, and the first size includes at least one of the following: length, width, and height of the straight ladder or the rectangular ladder.

在图3A至图3D的示例中,子图元的长度为300mm。在图3B所示的用户界面301中,终端设备110检测到用户102针对控件335的拖动手势,由此确定第一图元320的宽度由第一尺寸“1000mm”改变为第二尺寸“2000mm”。如图3B所示,终端设备110进而可以随拖动手势将第一图元320按比例缩放为具有第二尺寸的第二图元322。In the example of FIGS. 3A to 3D , the length of the sub-element is 300 mm. In the user interface 301 shown in FIG. 3B , the terminal device 110 detects the drag gesture of the user 102 on the control 335, thereby determining that the width of the first graphic element 320 is changed from the first size “1000mm” to the second size “2000mm” ". As shown in FIG. 3B , the terminal device 110 can further scale the first graphic element 320 into a second graphic element 322 having a second size with the drag gesture.

在一些实施例中,改变第一尺寸的输入仅改变第一图元中子图元的大小而不改变子图元的第一数目。例如,在图3B的示例中,第一图元320和第二图元322具有相同数目的子图元。相比于第一图元320,第二图元322表示目标空间中更宽的直梯。In some embodiments, the input that changes the first size only changes the size of the sub-primitives in the first primitive and does not change the first number of sub-primitives. For example, in the example of FIG. 3B, the first primitive 320 and the second primitive 322 have the same number of sub-primitives. Compared to the first primitive 320, the second primitive 322 represents a wider straight ladder in the target space.

附加地或备选地,在另一些实施例中,改变第一尺寸的输入将引起子图元的第一数目的改变。取决于第二尺寸的大小,可能出现最后一个子图元不具备完整尺寸的情况。在这种情况下,需要将最后一个子图元绘制为完整尺寸。在图3C所示的用户界面302中,终端设备110检测到用户102针对控件333的拖动手势,由此确定第一图元324的长度由第一尺寸“1200mm”改变为第二尺寸“2600mm”。在这种情况下,相比于第一尺寸,改变后的第二尺寸对应于比第一数目大的子图元,但是最后一个子图元325的长度仅为200mm。在实践中,需要将这样的子图元绘制为长度为300mm的完整子图元。Additionally or alternatively, in other embodiments, an input that changes the first size will cause a change to the first number of sub-primitives. Depending on the size of the second dimension, it may happen that the last sub-entity does not have the full size. In this case, the last sub-primitive needs to be drawn to full size. In the user interface 302 shown in FIG. 3C , the terminal device 110 detects the drag gesture of the user 102 on the control 333, thereby determining that the length of the first graphic element 324 is changed from the first size "1200mm" to the second size "2600mm" ". In this case, compared to the first size, the changed second size corresponds to a larger number of sub-elements than the first, but the length of the last sub-element 325 is only 200 mm. In practice, such sub-elements need to be drawn as full sub-elements with a length of 300mm.

在框230,终端设备110基于第二尺寸,确定子图元的第二数目。At block 230, the terminal device 110 determines a second number of sub-picture elements based on the second size.

在一些实施例中,响应于第二尺寸对应于非整数个子图元,终端设备110可以基于第二尺寸和子图元的尺寸确定余数。然后,终端设备110可以基于第二尺寸和余数,确定第二数目。具体而言,假设直梯的宽度(例如,对应于第一图元的宽度)由W表示,高度(例如,对应于第一图元的长度)由H表示,每个阶梯的高度(例如,对应于每个子图元的长度)为m。终端设备110可以基于下面的公式(1)确定余数,其由R表示:In some embodiments, in response to the second size corresponding to a non-integer number of sub-picture elements, terminal device 110 may determine the remainder based on the second size and the size of the sub-picture elements. Then, the terminal device 110 may determine the second number based on the second size and the remainder. Specifically, assuming that the width of the vertical ladder (eg, the width corresponding to the first primitive) is denoted by W, the height (eg, the length corresponding to the first primitive) is denoted by H, the height of each step (eg, corresponding to the length of each sub-primitive) is m. The terminal device 110 can determine the remainder based on the following formula (1), which is represented by R:

R=H%m (1)R=H%m (1)

然后,终端设备110可以基于下面的公式(2)确定直梯高度对应的完整子图元的数目,其由N表示:Then, the terminal device 110 can determine the number of complete sub-picture elements corresponding to the height of the vertical ladder based on the following formula (2), which is represented by N:

N=(H-R)/m (2)N=(H-R)/m (2)

如前所述,由于出现余数,即R≠0,则最后一个阶梯应当由完整子图元来表示,因此,子图元的第二数目被确定为N+1。As mentioned earlier, since the remainder occurs, ie R≠0, the last step should be represented by a complete sub-picture element, therefore, the second number of sub-picture elements is determined as N+1.

在图3C的示例中,m=300mm,H=2600mm,因此,R=200,N=8,相应地第二数目被确定为9。In the example of FIG. 3C, m=300mm, H=2600mm, therefore, R=200, N=8, and accordingly the second number is determined to be 9.

在框240,终端设备110基于针对第一数目的子图元的第一组参考点和第二数目,确定针对第二数目的子图元中的至少一部分的第二组参考点。At block 240, the terminal device 110 determines a second set of reference points for at least a portion of the second number of sub-picture elements based on the first set of reference points for the first number of sub-picture elements and the second number.

在一些实施例中,第一组参考点和第二组参考点分别包括至少一个子图元的顶点。例如,在目标元素为直梯的情况下,子图元的顶点可以是矩形阶梯的顶点。作为另一示例,在目标元素为回旋梯的情况下,子图元的顶点可以是扇形阶梯的顶点。In some embodiments, the first set of reference points and the second set of reference points each include vertices of at least one sub-primitive. For example, in the case where the target element is a straight ladder, the vertex of the sub-primitive can be the vertex of a rectangular ladder. As another example, in the case where the target element is a roundabout, the vertices of the sub-primitives may be vertices of a fan-shaped staircase.

在框250,终端设备110基于第二组参考点,在布局图中呈现第二图元以替换第一图元。At block 250, the terminal device 110 renders the second primitive in the layout map to replace the first primitive based on the second set of reference points.

在一些实施例中,响应于第一数目小于第二数目,终端设备110可以基于第一预定顺序连接第二组参考点,以呈现第二图元。图3D示出了基于对图3C中控件333的输入而呈现的第二图元326。相较于图3C中的子图元325,在用户界面303中,第二图元326的最后一个子图元327被呈现为长度为300mm的完整子图元。附加地或备选地,作为一种示例实现,由于第一数目小于第二数目,第二组参考点可以是第二数目的子图元比第一数目的子图元多的子图元的顶点。相应地,终端设备110可以基于第一预定顺序连接第二组参考点以在第一数目的子图元的基础上循环绘制矩形子图元(例如,利用矢量图形渲染器绘制矩形),直到得到第二数目的矩形子图元。In some embodiments, in response to the first number being less than the second number, the terminal device 110 may connect the second set of reference points based on the first predetermined order to present the second primitive. Figure 3D shows a second primitive 326 rendered based on input to control 333 in Figure 3C. Compared to the sub-primitive 325 in FIG. 3C, in the user interface 303, the last sub-primitive 327 of the second primitive 326 is presented as a complete sub-primitive with a length of 300 mm. Additionally or alternatively, as an example implementation, since the first number is less than the second number, the second set of reference points may be of more sub-picture elements of the second number of sub-picture elements than the first number of sub-picture elements. vertex. Accordingly, the terminal device 110 may connect the second set of reference points based on the first predetermined order to cyclically draw rectangular sub-primitives (eg, using a vector graphics renderer) on the basis of the first number of sub-primitives, until obtaining The second number of rectangular sub-primitives.

附加地或备选地,在其他实施例中,响应于第一数目大于第二数目,终端设备110可以确定与第一数目和第二数目之差作为第三数目。然后,终端设备110可以通过从第一图元中移除第三数目的子图元来呈现第二图元。Additionally or alternatively, in other embodiments, in response to the first number being greater than the second number, the terminal device 110 may determine the difference from the first number and the second number as the third number. The terminal device 110 may then render the second primitive by removing the third number of sub- primitives from the first primitive.

在一些实施例中,终端设备110可以随输入平滑地显示出第二图元。附加地或备选地,在其他实施例中,终端设备110可以在尺寸改变达到一定长度之后显示出第二图元。In some embodiments, the terminal device 110 may smoothly display the second graphic element along with the input. Additionally or alternatively, in other embodiments, the terminal device 110 may display the second primitive after the size change reaches a certain length.

在一些实施例中,目标元素为回旋梯,并且子图元表示回旋梯的扇形阶梯,第一尺寸包括以下至少一项:回旋梯或扇形阶梯的长、宽、高、回旋角度。图4A至图4D示出了根据本公开的一些实施例的用于绘制图元的用户界面的示意图,其中呈现有表示回旋梯图元,并且回旋梯图元具有第一数目的子图元,子图元表示回旋梯的扇形阶梯。In some embodiments, the target element is a roundabout, and the sub-primitive represents a fan-shaped staircase of the roundabout, and the first size includes at least one of the following: length, width, height, and rounding angle of the roundabout or the fan-shaped staircase. FIGS. 4A-4D illustrate schematic diagrams of a user interface for drawing primitives, in which a representation of the roundabout primitive is presented and the roundabout primitive has a first number of sub-primitives, according to some embodiments of the present disclosure, The sub-entity represents the fan-shaped steps of the roundabout.

如图4A所示,用户界面400包括与用户界面300、301、302和303类似的元素控件410、用于操纵布局图的控件412、以及操作区域440中的控件441至443。因而,在此不进行赘述。As shown in FIG. 4A , user interface 400 includes element controls 410 similar to user interfaces 300 , 301 , 302 and 303 , controls 412 for manipulating the layout map, and controls 441 to 443 in operation area 440 . Therefore, no detailed description is given here.

用户界面400还包括针对目标元素的信息区域430,其中呈现目标元素的属性、尺寸和变形参数,并且包括类型控件431、尺寸控件433和435、变形控件437和439。通过激活类型控件431可以更改当前绘制的图元类型。通过激活控件433、435和437可以相应地调整图元的长度432、宽度434、角度范围436等参数。在图4A的示例中,控件433、435和437被示为滑块控件,用户102通过向左或向右拖动滑块来改变尺寸参数或变形参数的大小。此外,控件439提供了针对预定角度的若干子控件。用户102可以通过激活控件439的子控件之一来将第一图元420设置为对应的预定角度。附加地或备选地,用户102可以在长度控件432、宽度控件434、角度范围控件436以及角度控件438中输入相应参数,来调整所呈现的图元。The user interface 400 also includes an information area 430 for the target element, in which the properties, dimensions, and deformation parameters of the target element are presented, and includes a type control 431 , size controls 433 and 435 , and deformation controls 437 and 439 . The currently drawn primitive type can be changed by activating the type control 431 . By activating controls 433, 435 and 437, parameters such as length 432, width 434, angle range 436, etc. of the primitive can be adjusted accordingly. In the example of FIG. 4A, controls 433, 435, and 437 are shown as slider controls, and the user 102 changes the size of the size parameter or deformation parameter by dragging the slider to the left or right. Additionally, control 439 provides several sub-controls for predetermined angles. The user 102 may set the first primitive 420 to a corresponding predetermined angle by activating one of the sub-controls of the control 439 . Additionally or alternatively, user 102 may enter corresponding parameters in length control 432, width control 434, angle range control 436, and angle control 438 to adjust the rendered primitives.

应当理解,针对不同目标元素所呈现的属性、操作及控件的类型和数目可能是不同的。因此,用户界面400的布局和其中的控件仅仅是说明性的,而无意以任何形式限制本公开的范围。It should be understood that the type and number of properties, operations and controls presented for different target elements may be different. Accordingly, the layout of user interface 400 and the controls therein are merely illustrative, and are not intended to limit the scope of the present disclosure in any way.

在图4B所示的用户界面401中,用户102拖动控件433来改变第一图元420的长度。终端设备110检测到改变长度的输入,确定改变后的长度为“3200mm”。在图4A和图4B的示例中,由于第一图元的长度参数对应于回旋梯的直径,因此,第一图元的宽度参数也随长度参数等比例改变。如图4B所示,在用户界面401中,第一图元420随拖动手势被按比例缩放为直径更大的第二图元422。在这种情况下,改变长度的输入仅改变表示扇形阶梯的子图元的大小,而不改变子图元的数目。In the user interface 401 shown in FIG. 4B , the user 102 drags the control 433 to change the length of the first primitive 420 . The terminal device 110 detects the input of changing the length, and determines that the changed length is "3200 mm". In the example of FIG. 4A and FIG. 4B , since the length parameter of the first primitive corresponds to the diameter of the roundabout, the width parameter of the first primitive also changes proportionally with the length parameter. As shown in FIG. 4B , in the user interface 401 , the first primitive 420 is scaled into a second primitive 422 with a larger diameter along with the drag gesture. In this case, changing the length of the input only changes the size of the sub-primitives representing the fan-shaped ladder, not the number of sub-primitives.

在图4C所示的用户界面402中,用户102拖动控件437来改变第一图元420的角度范围。在本公开的实施例中,角度范围表示回旋梯的回旋幅度。终端设备110检测到改变角度范围的输入,确定改变后的角度范围为“80%”,其对应于288度。因此,在图4C的示例中,改变角度范围的输入将引起表示扇形阶梯的子图元的第一数目的改变。取决于角度范围的大小,可能出现最后一个子图元不具备完整尺寸的情况。在这种情况下,需要将最后一个子图元绘制为完整尺寸。In the user interface 402 shown in FIG. 4C , the user 102 drags the control 437 to change the angular range of the first primitive 420 . In an embodiment of the present disclosure, the angle range represents the swing amplitude of the swing ladder. The terminal device 110 detects the input of changing the angle range, and determines that the changed angle range is "80%", which corresponds to 288 degrees. Thus, in the example of Figure 4C, an input that changes the angular range will cause a change in the first number of sub-primitives representing the fan-shaped staircase. Depending on the size of the angular extent, it may happen that the last sub-entity does not have the full size. In this case, the last sub-primitive needs to be drawn to full size.

在图4C的示例中,相比于原始角度范围,改变后的角度范围对应于更多数目的子图元。但是,在图4A至图4D的示例中,子图元的角度范围为22.5度,在这种情形,最后一个子图元424的角度范围仅为18度。在实践中,需要将这样的子图元绘制为长度为22.5度的完整子图元。In the example of Figure 4C, the changed angular range corresponds to a greater number of sub-primitives than the original angular range. However, in the example of FIGS. 4A-4D , the angular range of the sub-primitives is 22.5 degrees, and in this case, the angular range of the last sub-primitive 424 is only 18 degrees. In practice, such sub-primitives need to be drawn as full sub-primitives with a length of 22.5 degrees.

在一些实施例中,终端设备110可以基于公式(1)和(2)确定改变后的角度范围所对应的整数个子图元,也即第二数目的子图元。然后,终端设备110可以基于第一数目的子图元的第一组参考点和第二数目,确定第二数目的子图元中的至少一部分的第二组参考点。作为示例,第一组参考点和第二组参考点可以由表示相应扇形阶梯的扇形子图元的四个角点的坐标表示。In some embodiments, the terminal device 110 may determine, based on formulas (1) and (2), an integer number of sub-picture elements corresponding to the changed angle range, that is, the second number of sub-picture elements. The terminal device 110 may then determine a second set of reference points for at least a portion of the second number of sub-picture elements based on the first group of reference points and the second number of the first number of sub-picture elements. As an example, the first set of reference points and the second set of reference points may be represented by coordinates representing the four corner points of the fan-shaped sub-primitives of the respective fan-shaped steps.

在一些实施例中,终端设备110可以随用户102施加在控件437的拖动手势将第一图元420按比例缩放为角度范围更大的第二图元。附加地,作为一种示例实现,在图4D所示的用户界面403中,终端设备110可以在检测到用户102释放施加在控件437的拖动手势后,将最后一个子图元424呈现为完整的子图元426。In some embodiments, the terminal device 110 may scale the first graphic element 420 into a second graphic element with a larger angular range in response to the drag gesture applied by the user 102 on the control 437 . Additionally, as an example implementation, in the user interface 403 shown in FIG. 4D , the terminal device 110 may present the last sub-element 424 as complete after detecting that the user 102 releases the drag gesture applied to the control 437 sub-primitive 426.

在一些实施例中,在图4D的示例中,终端设备110可以基于第二预定顺序连接第二组参考点以在第一数目的子图元的基础上循环绘制扇形子图元(例如,基于扇形子图元的角度范围绘制直线与圆弧的方式来绘制扇形),直到得到第二数目的扇形子图元。In some embodiments, in the example of FIG. 4D, terminal device 110 may connect a second set of reference points based on a second predetermined order to cyclically draw fan-shaped sub-primitives based on the first number of sub-primitives (eg, based on The angle range of the fan-shaped sub-primitives is drawn by drawing straight lines and arcs) until the second number of fan-shaped sub-primitives is obtained.

在一些实施例中,终端设备110可以随输入平滑地显示出第二图元。附加地或备选地,在其他实施例中,终端设备110可以在尺寸改变达到一定角度之后显示出第二图元。In some embodiments, the terminal device 110 may smoothly display the second graphic element along with the input. Additionally or alternatively, in other embodiments, the terminal device 110 may display the second primitive after the size change reaches a certain angle.

根据本公开的一些实施例,提供了用于绘制图元的方案。该方案能够将空间元素的属性和尺寸参数化,从而可以通过改变参数来灵活地调整空间布局图中的图元尺寸、角度和形状。该方案还提供了用于绘制图元的用户界面,并支持以可视化的交互方式来调整图元。通过该方案,可以简化布局图的制作过程并节省人工成本。此外,该方案还可以保障空间布局图的准确性,增强布局图的呈现效果。According to some embodiments of the present disclosure, a scheme for drawing primitives is provided. The scheme can parameterize the attributes and dimensions of space elements, so that the size, angle and shape of primitives in the space layout diagram can be flexibly adjusted by changing the parameters. The solution also provides a user interface for drawing primitives and supports adjusting primitives in a visual and interactive way. Through this solution, the production process of the layout diagram can be simplified and labor costs can be saved. In addition, this solution can also ensure the accuracy of the spatial layout and enhance the presentation effect of the layout.

图5示出了根据本公开的某些实施例的用于绘制图元的装置500的示意性结构框图。装置500可以被实现为或者被包括在终端设备110中。装置500中的各个模块/组件可以由硬件、软件、固件或者它们的任意组合来实现。FIG. 5 shows a schematic structural block diagram of an apparatus 500 for drawing primitives according to some embodiments of the present disclosure. The apparatus 500 may be implemented as or included in the terminal device 110 . The various modules/components in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.

如图所示,装置500包括尺寸确定模块510,被配置为响应于检测到改变第一图元在目标空间的布局图中的第一尺寸的输入,确定改变后的第二尺寸,第一图元表示目标空间中的目标元素,并且第一图元包括第一数目的子图元;子图元确定模块520,被配置为基于第二尺寸,确定子图元的第二数目;参考点确定模块530,被配置为基于针对第一数目的子图元的第一组参考点和第二数目,确定针对第二数目的子图元中的至少一部分的第二组参考点;以及呈现模块540,被配置为基于第二组参考点,在布局图中呈现表示目标元素的第二图元以替换第一图元,第二图元包括第二数目的子图元。As shown, the apparatus 500 includes a size determination module 510 configured to, in response to detecting an input that changes the first size of the first primitive in the layout map of the target space, determine the changed second size, the first map The element represents a target element in the target space, and the first primitive includes a first number of sub primitives; the sub primitive determination module 520 is configured to determine a second number of sub primitives based on the second size; the reference point determines a module 530 configured to determine a second set of reference points for at least a portion of the second number of sub-primitives based on the first set of reference points and the second number for the first number of sub-primitives; and a rendering module 540 , is configured to render a second primitive representing the target element in the layout in place of the first primitive, based on the second set of reference points, the second primitive comprising a second number of sub primitives.

在一些实施例中,子图元确定模块520包括:余数确定模块,被配置为响应于第二尺寸对应于非整数个子图元,基于第二尺寸和子图元的尺寸确定余数;以及数目确定模块,被配置为基于第二尺寸和余数,确定第二数目。In some embodiments, sub-primitive determination module 520 includes a remainder determination module configured to determine a remainder based on the second size and the size of the sub-primitives in response to the second size corresponding to a non-integer number of sub-primitives; and a number determination module , is configured to determine the second number based on the second dimension and the remainder.

在一些实施例中,第一组参考点和第二组参考点分别包括至少一个子图元的顶点。In some embodiments, the first set of reference points and the second set of reference points each include vertices of at least one sub-primitive.

在一些实施例中,呈现模块540包括:参考点连接模块,被配置为响应于第一数目小于第二数目,基于预定顺序连接第二组参考点,以呈现第二图元。In some embodiments, the rendering module 540 includes a reference point connecting module configured to connect the second set of reference points based on a predetermined order to render the second primitive in response to the first number being less than the second number.

在一些实施例中,呈现模块540包括:第三数目确定模块,被配置为响应于第一数目大于第二数目,确定与第一数目和第二数目之差作为第三数目;以及子图元移除模块,被配置为通过从第一图元中移除第三数目的子图元来呈现第二图元。In some embodiments, the rendering module 540 includes: a third number determination module configured to, in response to the first number being greater than the second number, determine a difference from the first number and the second number as the third number; and a sub-picture element A removal module configured to render the second primitive by removing the third number of sub-primitives from the first primitive.

在一些实施例中,目标元素为直梯,并且子图元表示直梯的矩形阶梯,第一尺寸包括以下至少一项:直梯或矩形阶梯的长、宽、高。In some embodiments, the target element is a straight ladder, and the sub-picture element represents a rectangular ladder of the straight ladder, and the first size includes at least one of the following: length, width, and height of the straight ladder or the rectangular ladder.

在一些实施例中,目标元素为回旋梯,并且子图元表示回旋梯的扇形阶梯,第一尺寸包括以下至少一项:回旋梯或扇形阶梯的长、宽、高、回旋角度。In some embodiments, the target element is a roundabout, and the sub-primitive represents a fan-shaped staircase of the roundabout, and the first size includes at least one of the following: length, width, height, and rounding angle of the roundabout or the fan-shaped staircase.

在一些实施例中,输入为拖动手势,并且呈现模块540包括:缩放模块,被配置为随拖动手势将第一图元按比例缩放为第二图元。In some embodiments, the input is a drag gesture, and the presentation module 540 includes a scaling module configured to scale the first primitive to the second primitive with the drag gesture.

图6示出了示出了其中可以实施本公开的一个或多个实施例的电子设备600的框图。应当理解,图6所示出的电子设备600仅仅是示例性的,而不应当构成对本文所描述的实施例的功能和范围的任何限制。图6所示出的电子设备600可以用于实现图1的终端设备110。FIG. 6 shows a block diagram illustrating an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 600 shown in FIG. 6 is merely exemplary and should not constitute any limitation on the function and scope of the embodiments described herein. The electronic device 600 shown in FIG. 6 may be used to implement the terminal device 110 of FIG. 1 .

如图6所示,电子设备600是通用电子设备的形式。电子设备600的组件可以包括但不限于一个或多个处理器或处理单元610、存储器620、存储设备630、一个或多个通信单元640、一个或多个输入设备650以及一个或多个输出设备660。处理单元610可以是实际或虚拟处理器并且能够根据存储器620中存储的程序来执行各种处理。在多处理器系统中,多个处理单元并行执行计算机可执行指令,以提高电子设备600的并行处理能力。As shown in FIG. 6, electronic device 600 is in the form of a general electronic device. Components of electronic device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage devices 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 may be an actual or virtual processor and can perform various processes according to programs stored in the memory 620 . In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capability of the electronic device 600 .

电子设备600通常包括多个计算机存储介质。这样的介质可以是电子设备600可访问的任何可以获得的介质,包括但不限于易失性和非易失性介质、可拆卸和不可拆卸介质。存储器620可以是易失性存储器(例如寄存器、高速缓存、随机访问存储器(RAM))、非易失性存储器(例如,只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、闪存)或它们的某种组合。存储设备630可以是可拆卸或不可拆卸的介质,并且可以包括机器可读介质,诸如闪存驱动、磁盘或者任何其他介质,其可以能够用于存储信息和/或数据(例如用于训练的训练数据)并且可以在电子设备600内被访问。Electronic device 600 typically includes a number of computer storage media. Such media can be any available media that can be accessed by electronic device 600, including but not limited to volatile and nonvolatile media, removable and non-removable media. Memory 620 may be volatile memory (eg, registers, cache, random access memory (RAM)), non-volatile memory (eg, read only memory (ROM), electrically erasable programmable read only memory (EEPROM) , Flash) or some combination of them. Storage device 630 may be removable or non-removable media, and may include machine-readable media, such as flash drives, magnetic disks, or any other media that may be capable of storing information and/or data (eg, training data for training). ) and can be accessed within the electronic device 600 .

电子设备600可以进一步包括另外的可拆卸/不可拆卸、易失性/非易失性存储介质。尽管未在图6中示出,可以提供用于从可拆卸、非易失性磁盘(例如“软盘”)进行读取或写入的磁盘驱动和用于从可拆卸、非易失性光盘进行读取或写入的光盘驱动。在这些情况中,每个驱动可以由一个或多个数据介质接口被连接至总线(未示出)。存储器620可以包括计算机程序产品625,其具有一个或多个程序模块,这些程序模块被配置为执行本公开的各种实施例的各种方法或动作。Electronic device 600 may further include additional removable/non-removable, volatile/non-volatile storage media. Although not shown in Figure 6, disk drives for reading or writing from removable, non-volatile magnetic disks (eg, "floppy disks") and for reading or writing from removable, non-volatile optical disks may be provided CD-ROM drive for reading or writing. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. Memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

通信单元640实现通过通信介质与其他电子设备进行通信。附加地,电子设备600的组件的功能可以以单个计算集群或多个计算机器来实现,这些计算机器能够通过通信连接进行通信。因此,电子设备600可以使用与一个或多个其他服务器、网络个人计算机(PC)或者另一个网络节点的逻辑连接来在联网环境中进行操作。The communication unit 640 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of electronic device 600 may be implemented in a single computing cluster or multiple computing machines capable of communicating through a communication link. Accordingly, electronic device 600 may operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.

输入设备650可以是一个或多个输入设备,例如鼠标、键盘、追踪球等。输出设备660可以是一个或多个输出设备,例如显示器、扬声器、打印机等。电子设备600还可以根据需要通过通信单元640与一个或多个外部设备(未示出)进行通信,外部设备诸如存储设备、显示设备等,与一个或多个使得用户与电子设备600交互的设备进行通信,或者与使得电子设备600与一个或多个其他电子设备通信的任何设备(例如,网卡、调制解调器等)进行通信。这样的通信可以经由输入/输出(I/O)接口(未示出)来执行。Input device 650 may be one or more input devices, such as a mouse, keyboard, trackball, and the like. Output device 660 may be one or more output devices, such as a display, speakers, printer, and the like. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., with one or more devices that allow a user to interact with the electronic device 600 communicate, or with any device (eg, network card, modem, etc.) that enables electronic device 600 to communicate with one or more other electronic devices. Such communication may be performed via an input/output (I/O) interface (not shown).

根据本公开的示例性实现方式,提供了一种计算机可读存储介质,其上存储有计算机可执行指令,其中计算机可执行指令被处理器执行以实现上文描述的方法。根据本公开的示例性实现方式,还提供了一种计算机程序产品,计算机程序产品被有形地存储在非瞬态计算机可读介质上并且包括计算机可执行指令,而计算机可执行指令被处理器执行以实现上文描述的方法。According to an exemplary implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is also provided a computer program product tangibly stored on a non-transitory computer-readable medium and comprising computer-executable instructions executed by a processor to implement the method described above.

这里参照根据本公开实现的方法、装置、设备和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus, devices, and computer program products implemented in accordance with the present disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理单元,从而生产出一种机器,使得这些指令在通过计算机或其他可编程数据处理装置的处理单元执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to the processing unit of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processing unit of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

可以把计算机可读程序指令加载到计算机、其他可编程数据处理装置、或其他设备上,使得在计算机、其他可编程数据处理装置或其他设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其他可编程数据处理装置、或其他设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process, Thereby, instructions executing on a computer, other programmable data processing apparatus, or other device are caused to carry out the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实现的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various implementations of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executables for implementing the specified logical function(s) instruction. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

以上已经描述了本公开的各实现,上述说明是示例性的,并非穷尽性的,并且也不限于所公开的各实现。在不偏离所说明的各实现的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实现的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其他普通技术人员能理解本文公开的各个实现方式。While various implementations of the present disclosure have been described above, the foregoing description is exemplary, not exhaustive, and not limiting of the disclosed implementations. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The terminology used herein was chosen to best explain the principles of the various implementations, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various implementations disclosed herein.

Claims (18)

1.一种绘制图元的方法,包括:1. A method of drawing primitives, comprising: 响应于检测到改变第一图元在目标空间的布局图中的第一尺寸的输入,确定改变后的第二尺寸,所述第一图元表示所述目标空间中的目标元素,并且所述第一图元包括第一数目的子图元;determining a changed second size in response to detecting an input that changes a first size of a first primitive representing a target element in the target space in the layout map of the target space, and the the first primitive includes a first number of sub primitives; 基于所述第二尺寸,确定所述子图元的第二数目;based on the second size, determining a second number of the sub-primitives; 基于针对所述第一数目的子图元的第一组参考点和所述第二数目,确定针对所述第二数目的子图元中的至少一部分的第二组参考点;以及determining a second set of reference points for at least a portion of the second number of sub-primitives based on the first set of reference points for the first number of sub-primitives; and 基于所述第二组参考点,在所述布局图中呈现表示所述目标元素的第二图元以替换所述第一图元,所述第二图元包括所述第二数目的所述子图元。Based on the second set of reference points, a second primitive representing the target element is presented in the layout to replace the first primitive, the second primitive comprising the second number of the sub-entity. 2.根据权利要求1所述的方法,其中确定所述第二数目包括:2. The method of claim 1, wherein determining the second number comprises: 响应于所述第二尺寸对应于非整数个所述子图元,基于所述第二尺寸和所述子图元的尺寸确定余数;In response to the second size corresponding to a non-integer number of the sub-primitives, determining a remainder based on the second size and the size of the sub-primitives; 基于所述第二尺寸和所述余数,确定所述第二数目。The second number is determined based on the second size and the remainder. 3.根据权利要求1所述的方法,其中所述第一组参考点和所述第二组参考点分别包括至少一个所述子图元的顶点。3. The method of claim 1, wherein the first set of reference points and the second set of reference points each comprise a vertex of at least one of the sub-primitives. 4.根据权利要求1所述的方法,其中呈现所述第二图元包括:4. The method of claim 1, wherein rendering the second primitive comprises: 响应于所述第一数目小于所述第二数目,基于第一预定顺序连接所述第二组参考点,以呈现所述第二图元。In response to the first number being less than the second number, the second set of reference points are connected based on a first predetermined order to render the second primitive. 5.根据权利要求1所述的方法,其中呈现所述第二图元包括:5. The method of claim 1, wherein rendering the second primitive comprises: 响应于所述第一数目大于所述第二数目,确定与所述第一数目和所述第二数目之差作为第三数目;以及In response to the first number being greater than the second number, determining a difference from the first number and the second number as a third number; and 通过从所述第一图元中移除所述第三数目的所述子图元来呈现所述第二图元。The second primitive is rendered by removing the third number of the sub-primitives from the first primitive. 6.根据权利要求1所述的方法,其中所述目标元素为直梯,并且所述子图元表示所述直梯的矩形阶梯,所述第一尺寸包括以下至少一项:所述直梯或所述矩形阶梯的长、宽、高。6. The method of claim 1, wherein the target element is a straight ladder, and the sub-primitive represents a rectangular ladder of the straight ladder, the first dimension comprising at least one of: the straight ladder or the length, width and height of the rectangular ladder. 7.根据权利要求1所述的方法,其中所述目标元素为回旋梯,并且所述子图元表示所述回旋梯的扇形阶梯,所述第一尺寸包括以下至少一项:所述回旋梯或所述扇形阶梯的长、宽、高、回旋角度。7. The method of claim 1, wherein the target element is a roundabout, and the sub-primitive represents a fan-shaped staircase of the roundabout, the first dimension comprising at least one of: the roundabout Or the length, width, height and rotation angle of the fan-shaped ladder. 8.根据权利要求1所述的方法,其中所述输入为拖动手势,并且呈现所述第二图元包括:8. The method of claim 1, wherein the input is a drag gesture, and presenting the second primitive comprises: 随所述拖动手势将所述第一图元按比例缩放为所述第二图元。The first primitive is scaled to the second primitive with the drag gesture. 9.一种用于绘制图元的装置,包括:9. An apparatus for drawing primitives, comprising: 尺寸确定模块,被配置为响应于检测到改变第一图元在目标空间的布局图中的第一尺寸的输入,确定改变后的第二尺寸,所述第一图元表示所述目标空间中的目标元素,并且所述第一图元包括第一数目的子图元;a size determination module configured to determine a changed second size in response to detecting an input that changes a first size of a first primitive in the layout of the target space, the first primitive representing the target space The target element of , and the first primitive includes a first number of sub primitives; 子图元确定模块,被配置为基于所述第二尺寸,确定所述子图元的第二数目;a sub-picture element determination module configured to determine a second number of the sub-picture elements based on the second size; 参考点确定模块,被配置为基于针对所述第一数目的子图元的第一组参考点和所述第二数目,确定针对所述第二数目的子图元中的至少一部分的第二组参考点;以及a reference point determination module configured to determine a second set of reference points for at least a portion of the second number of sub-picture elements based on the first set of reference points for the first number of sub-picture elements group reference point; and 呈现模块,被配置为基于所述第二组参考点,在所述布局图中呈现表示所述目标元素的第二图元以替换所述第一图元,所述第二图元包括所述第二数目的所述子图元。a rendering module configured to render, based on the second set of reference points, a second primitive representing the target element in the layout to replace the first primitive, the second primitive comprising the a second number of said sub-primitives. 10.根据权利要求9所述的装置,其中所述子图元确定模块包括:10. The apparatus of claim 9, wherein the sub-primitive determination module comprises: 余数确定模块,被配置为响应于所述第二尺寸对应于非整数个所述子图元,基于所述第二尺寸和所述子图元的尺寸确定余数;以及a remainder determination module configured to, in response to the second size corresponding to a non-integer number of the sub-primitives, determine a remainder based on the second size and the size of the sub-primitives; and 数目确定模块,被配置为基于所述第二尺寸和所述余数,确定所述第二数目。A number determination module configured to determine the second number based on the second size and the remainder. 11.根据权利要求9所述的装置,其中所述第一组参考点和所述第二组参考点分别包括至少一个所述子图元的顶点。11. The apparatus of claim 9, wherein the first set of reference points and the second set of reference points each comprise a vertex of at least one of the sub-primitives. 12.根据权利要求9所述的装置,其中所述呈现模块包括:12. The apparatus of claim 9, wherein the presentation module comprises: 参考点连接模块,被配置为响应于所述第一数目小于所述第二数目,基于预定顺序连接所述第二组参考点,以呈现所述第二图元。A reference point connection module configured to connect the second set of reference points based on a predetermined order to present the second primitive in response to the first number being less than the second number. 13.根据权利要求9所述的装置,其中所述呈现模块包括:13. The apparatus of claim 9, wherein the presentation module comprises: 第三数目确定模块,被配置为响应于所述第一数目大于所述第二数目,确定与所述第一数目和所述第二数目之差作为第三数目;以及a third number determination module configured to determine a difference from the first number and the second number as a third number in response to the first number being greater than the second number; and 子图元移除模块,被配置为通过从所述第一图元中移除所述第三数目的所述子图元来呈现所述第二图元。A sub-primitive removal module configured to render the second primitive by removing the third number of the sub-primitives from the first primitive. 14.根据权利要求9所述的装置,其中所述目标元素为直梯,并且所述子图元表示所述直梯的矩形阶梯,所述第一尺寸包括以下至少一项:所述直梯或所述矩形阶梯的长、宽、高。14. The apparatus of claim 9, wherein the target element is a straight ladder, and the sub-element represents a rectangular ladder of the straight ladder, the first dimension comprising at least one of: the straight ladder or the length, width and height of the rectangular ladder. 15.根据权利要求9所述的装置,其中所述目标元素为回旋梯,并且所述子图元表示所述回旋梯的扇形阶梯,所述第一尺寸包括以下至少一项:所述回旋梯或所述扇形阶梯的长、宽、高、回旋角度。15. The apparatus of claim 9, wherein the target element is a roundabout, and the sub-primitive represents a fan-shaped staircase of the roundabout, the first dimension comprising at least one of: the roundabout Or the length, width, height and rotation angle of the fan-shaped ladder. 16.根据权利要求9所述的装置,其中所述输入为拖动手势,并且所述呈现模块包括:16. The apparatus of claim 9, wherein the input is a drag gesture, and the presentation module comprises: 缩放模块,被配置为随所述拖动手势将所述第一图元按比例缩放为所述第二图元。A scaling module configured to scale the first primitive to the second primitive with the drag gesture. 17.一种电子设备,包括:17. An electronic device comprising: 至少一个处理单元;以及at least one processing unit; and 至少一个存储器,所述至少一个存储器被耦合到所述至少一个处理单元并且存储用于由所述至少一个处理单元执行的指令,所述指令在由所述至少一个处理单元执行时使所述电子设备执行根据权利要求1至8中任一项所述的方法。at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit that, when executed by the at least one processing unit, cause the electronic The device performs the method according to any one of claims 1 to 8. 18.一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现根据权利要求1至8中任一项所述的方法。18. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
CN202210855014.6A 2022-07-19 2022-07-19 Method, apparatus, device and storage medium for drawing primitives Pending CN115131463A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210855014.6A CN115131463A (en) 2022-07-19 2022-07-19 Method, apparatus, device and storage medium for drawing primitives

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210855014.6A CN115131463A (en) 2022-07-19 2022-07-19 Method, apparatus, device and storage medium for drawing primitives

Publications (1)

Publication Number Publication Date
CN115131463A true CN115131463A (en) 2022-09-30

Family

ID=83383820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210855014.6A Pending CN115131463A (en) 2022-07-19 2022-07-19 Method, apparatus, device and storage medium for drawing primitives

Country Status (1)

Country Link
CN (1) CN115131463A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248944A (en) * 2022-07-19 2022-10-28 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for drawing primitive

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070165031A1 (en) * 2004-05-04 2007-07-19 Fisher-Rosemount Systems, Inc. Scripted graphics in a process environment
CN101027679A (en) * 2004-09-09 2007-08-29 奥普提克斯晶硅有限公司 System and method for representing a general two dimensional spatial transformation
CN101833289A (en) * 2009-03-13 2010-09-15 费舍-柔斯芒特系统股份有限公司 The compound shape convergent-divergent of man-machine graphical interfaces
CN103793881A (en) * 2012-10-26 2014-05-14 晨星半导体股份有限公司 Image file processing method and image file processing device
JP2015225576A (en) * 2014-05-29 2015-12-14 旭化成ホームズ株式会社 Stair design device and stair design method
US20190259210A1 (en) * 2016-09-16 2019-08-22 Christopher Ghaleb A floorplan visualisation system
CN110704932A (en) * 2019-10-09 2020-01-17 北京中外建建筑设计有限公司 Revit software-based prefabricated staircase detailed graph rapid plotting method
CN114219448A (en) * 2021-12-20 2022-03-22 中国农业银行股份有限公司 A process modeling method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070165031A1 (en) * 2004-05-04 2007-07-19 Fisher-Rosemount Systems, Inc. Scripted graphics in a process environment
CN101027679A (en) * 2004-09-09 2007-08-29 奥普提克斯晶硅有限公司 System and method for representing a general two dimensional spatial transformation
CN101833289A (en) * 2009-03-13 2010-09-15 费舍-柔斯芒特系统股份有限公司 The compound shape convergent-divergent of man-machine graphical interfaces
CN103793881A (en) * 2012-10-26 2014-05-14 晨星半导体股份有限公司 Image file processing method and image file processing device
JP2015225576A (en) * 2014-05-29 2015-12-14 旭化成ホームズ株式会社 Stair design device and stair design method
US20190259210A1 (en) * 2016-09-16 2019-08-22 Christopher Ghaleb A floorplan visualisation system
CN110704932A (en) * 2019-10-09 2020-01-17 北京中外建建筑设计有限公司 Revit software-based prefabricated staircase detailed graph rapid plotting method
CN114219448A (en) * 2021-12-20 2022-03-22 中国农业银行股份有限公司 A process modeling method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
浦炜: "利用AutoCAD实现建筑设计图库的开发", 常熟高专学报, no. 02, 15 March 2004 (2004-03-15), pages 81 - 84 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248944A (en) * 2022-07-19 2022-10-28 北京有竹居网络技术有限公司 Method, device, equipment and storage medium for drawing primitive

Similar Documents

Publication Publication Date Title
JP7518196B2 (en) Method, apparatus and program for constructing 3D geometry
EP3547098A1 (en) Display control apparatus and control method
WO2021008071A1 (en) Table processing method and apparatus, and intelligent interactive tablet and storage medium
CN115131463A (en) Method, apparatus, device and storage medium for drawing primitives
CN114385061B (en) Operation method, apparatus, electronic device, and computer-readable storage medium
CN113724331B (en) Video processing method, video processing apparatus, and non-transitory storage medium
CN115097975A (en) Method, apparatus, device and storage medium for controlling viewing angle conversion
CN113362387B (en) Environment map construction method of dynamic environment mobile robot
CN114564268A (en) Device management method, device, electronic device and storage medium
CN115131532A (en) Method, apparatus, device and storage medium for generating a three-dimensional model
WO2019119999A1 (en) Method and apparatus for presenting expansion process of solid figure, and device and storage medium
CN115248944A (en) Method, device, equipment and storage medium for drawing primitive
US12106443B2 (en) Responsive video canvas generation
CN115617221A (en) Presentation method, device, equipment and storage medium
CN115100359A (en) Image processing method, device, equipment and storage medium
CN115202792A (en) Method, apparatus, device and storage medium for scene switching
CN115619904A (en) Image processing method, device and equipment
CN115311397A (en) Method, apparatus, device and storage medium for image rendering
CN115638785A (en) Robot mapping method and device, electronic equipment and storage medium
CN115016671A (en) Touch display control device, touch display device, device and method
CN112114656B (en) Image processing method, device, equipment and storage medium based on air flow
CN113487704A (en) Method and device for drawing dovetail arrow head, storage medium and terminal equipment
CN115689897A (en) Image processing method, device and readable storage medium
CN115089965A (en) Method, apparatus, device and storage medium for path rendering in a scene
CN111563956A (en) A three-dimensional display method, device, equipment and medium of a two-dimensional picture

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Applicant after: Beijing youzhuju Network Technology Co.,Ltd.

Address before: 101299 Room 802, information building, No. 13, linmeng North Street, Pinggu District, Beijing

Applicant before: Beijing youzhuju Network Technology Co.,Ltd.