[go: up one dir, main page]

CN115455552A - Model editing method and device, electronic device, storage medium, product - Google Patents

Model editing method and device, electronic device, storage medium, product Download PDF

Info

Publication number
CN115455552A
CN115455552A CN202211274689.8A CN202211274689A CN115455552A CN 115455552 A CN115455552 A CN 115455552A CN 202211274689 A CN202211274689 A CN 202211274689A CN 115455552 A CN115455552 A CN 115455552A
Authority
CN
China
Prior art keywords
display
editing
model
view
views
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
CN202211274689.8A
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.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing 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 Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN202211274689.8A priority Critical patent/CN115455552A/en
Publication of CN115455552A publication Critical patent/CN115455552A/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/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
    • 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 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

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Civil Engineering (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本公开实施例公开了一种模型的编辑方法和装置、电子设备、存储介质、产品,其中,方法包括:获得目标模型对应的多个显示视图;在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个区域中包括至少一个可编辑区域;通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图;本实施例实现了同步更新所有显示视图,便于观察编辑后的效果,显著提升了模型的编辑效率。

Figure 202211274689

Embodiments of the present disclosure disclose a model editing method and device, electronic equipment, storage media, and products, wherein the method includes: obtaining multiple display views corresponding to the target model; displaying the multiple display views in multiple display areas respectively view; wherein, each of the display views corresponds to one of the display areas, and at least one editable area is included in the multiple areas; the display view displayed in the editable area is received through the editable area An editing instruction for editing; according to the editing instruction, respectively perform editing operations corresponding to the editing instructions on the multiple display views, and display multiple edited display views in the multiple display areas respectively; this embodiment All display views are updated synchronously, which is convenient for observing the edited effect and significantly improves the editing efficiency of the model.

Figure 202211274689

Description

模型的编辑方法和装置、电子设备、存储介质、产品Model editing method and device, electronic device, storage medium, product

技术领域technical field

本公开涉及模型编辑技术领域,尤其是一种模型的编辑方法和装置、电子设备、存储介质、产品。The present disclosure relates to the technical field of model editing, in particular to a model editing method and device, electronic equipment, storage media, and products.

背景技术Background technique

在家装设计等模型设计领域中,通常是在一个2D场景模型中对各个构件和产品的尺寸及位置进行调整和编辑,为了更直观的查看设计效果,希望在设计完成后可以通过3D场景或其他2D场景中对设计完成的产品进行展示,然而,现有技术中提供的设计软件通常是2D设计软件,不具备3D显示能力。In the field of model design such as home decoration design, the size and position of various components and products are usually adjusted and edited in a 2D scene model. The designed product is displayed in the 2D scene, however, the design software provided in the prior art is usually 2D design software, which does not have 3D display capability.

发明内容Contents of the invention

为了解决上述技术问题,提出了本公开。本公开的实施例提供了一种模型的编辑方法和装置、电子设备、存储介质、产品。In order to solve the above-mentioned technical problems, the present disclosure is proposed. Embodiments of the present disclosure provide a model editing method and device, electronic equipment, storage media, and products.

根据本公开实施例的一个方面,提供了一种模型的编辑方法,包括:According to an aspect of an embodiment of the present disclosure, a method for editing a model is provided, including:

获得目标模型对应的多个显示视图;Obtain multiple display views corresponding to the target model;

在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个显示区域中包括至少一个可编辑区域;The multiple display views are respectively displayed in multiple display areas; wherein each of the display views corresponds to one of the display areas, and the multiple display areas include at least one editable area;

通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;receiving an editing instruction for editing the display view displayed in the editable area through the editable area;

根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图。According to the editing instruction, the editing operations corresponding to the editing instructions are respectively performed on the plurality of display views, and the plurality of edited display views are respectively displayed in the plurality of display areas.

可选地,所述获得目标模型对应的多个显示视图,包括:Optionally, the obtaining multiple display views corresponding to the target model includes:

获取所述目标模型对应的模型数据;Acquiring model data corresponding to the target model;

利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图;其中,每个所述构造器对应一个显示视图。Multiple constructors are used to respectively construct multiple display views based on the model data; wherein, each constructor corresponds to a display view.

可选地,所述多个显示视图包括3D显示视图和2D显示视图,所述模型数据为三维信息数据;Optionally, the multiple display views include a 3D display view and a 2D display view, and the model data is three-dimensional information data;

所述利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图,包括:The use of multiple constructors to respectively construct multiple display views based on the model data includes:

利用所述3D显示视图对应的构造器对所述三维信息数据进行处理,得到所述3D显示视图;Using a constructor corresponding to the 3D display view to process the 3D information data to obtain the 3D display view;

利用所述2D显示视图对应的构造器对所述三维信息数据进行处理,得到所述2D显示视图。The 3D information data is processed by using the constructor corresponding to the 2D display view to obtain the 2D display view.

可选地,所述根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图,包括:Optionally, according to the editing instruction, performing editing operations corresponding to the editing instructions on the multiple display views respectively, and displaying multiple edited display views in the multiple display areas respectively, including:

根据所述编辑指令对所述目标模型对应的模型数据进行编辑,得到编辑后的模型数据;Editing the model data corresponding to the target model according to the editing instruction to obtain the edited model data;

基于所述多个构造器,基于所述编辑后的模型数据分别构造得到所述多个编辑后的显示视图。Based on the plurality of constructors, the plurality of edited display views are respectively constructed based on the edited model data.

可选地,所述根据所述编辑指令对所述目标模型对应的模型数据进行编辑,得到编辑后的模型数据,包括:Optionally, the editing of the model data corresponding to the target model according to the editing instruction to obtain the edited model data includes:

响应于所述编辑指令为增加物品指令,从预设数据库中获取至少一个物品数据;Obtaining at least one item data from a preset database in response to the editing instruction being an item addition instruction;

将所述至少一个物品数据插入所述模型数据中的对应位置,得到所述编辑后的模型数据。Inserting the at least one item data into a corresponding position in the model data to obtain the edited model data.

可选地,所述方法还包括:Optionally, the method also includes:

响应于接收到显示切换指令,根据所述显示切换指令将所述多个显示区域中展示的所述多个显示视图之间进行切换。In response to receiving a display switching instruction, switching among the plurality of display views displayed in the plurality of display areas is performed according to the display switching instruction.

可选地,在利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图之前,还包括:Optionally, before using multiple constructors to respectively construct multiple display views based on the model data, the method further includes:

确定所述多个构造器分别对应的多组文本对象模型元素,并将所述多组文本对象模型元素分别与显示引擎绑定,完成所述多个构造器的初始化。Determining multiple sets of text object model elements corresponding to the multiple constructors, and binding the multiple sets of text object model elements to the display engine to complete the initialization of the multiple constructors.

可选地,所述多个显示区域包括一个可编辑区域和至少一个不可编辑区域;Optionally, the multiple display areas include one editable area and at least one non-editable area;

所述根据所述显示切换指令将所述多个显示区域中展示的所述多个显示视图之间进行切换,包括:The switching between the multiple display views displayed in the multiple display areas according to the display switching instruction includes:

根据所述显示切换指令,确定所述至少一个不可编辑区域中的一个不可编辑区域作为目标区域;determining one of the at least one non-editable area as a target area according to the display switching instruction;

在所述多个显示区域的文档流中,将第一文本对象模型元素与第二文本对象模型元素交换位置,其中所述第一文本对象模型元素为所述可编辑区域中展示的第一显示视图对应的所述文本对象模型元素,所述第二文本对象模型元素为所述不可编辑区域中展示的第二显示视图对应的所述文本对象模型元素;渲染所述文档流,使所述目标区域中展示所述第二显示视图,所述可编辑区域中展示所述第一显示视图。In the document flow of the plurality of display areas, the first text object model element is exchanged with the second text object model element, wherein the first text object model element is the first display displayed in the editable area The text object model element corresponding to the view, and the second text object model element is the text object model element corresponding to the second display view displayed in the non-editable area; rendering the document flow, so that the target The second display view is displayed in the editable area, and the first display view is displayed in the editable area.

根据本公开实施例的另一方面,提供了一种模型的编辑装置,包括:According to another aspect of the embodiments of the present disclosure, a model editing device is provided, including:

视图获取模块,用于获得目标模型对应的多个显示视图;A view obtaining module, configured to obtain multiple display views corresponding to the target model;

视图展示模块,用于在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个显示区域中包括至少一个可编辑区域;A view display module, configured to respectively display the multiple display views in multiple display areas; wherein each of the display views corresponds to one of the display areas, and the multiple display areas include at least one editable area;

视图编辑模块,用于通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;a view editing module, configured to receive an editing instruction for editing the display view displayed in the editable area through the editable area;

编辑展示模块,用于根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图。The editing and displaying module is configured to respectively execute editing operations corresponding to the editing instructions on the multiple display views according to the editing instructions, and display multiple edited display views in the multiple display areas.

可选地,所述视图获取模块,包括:Optionally, the view acquisition module includes:

数据获取单元,用于获取所述目标模型对应的模型数据;a data acquisition unit, configured to acquire model data corresponding to the target model;

视图构造单元,用于利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图;其中,每个所述构造器对应一个显示视图。The view construction unit is configured to use multiple constructors to respectively construct multiple display views based on the model data; wherein, each of the constructors corresponds to a display view.

可选地,所述多个显示视图包括3D显示视图和2D显示视图,所述模型数据为三维信息数据;Optionally, the multiple display views include a 3D display view and a 2D display view, and the model data is three-dimensional information data;

所述视图构造单元,具体用于利用所述3D显示视图对应的构造器对所述三维信息数据进行处理,得到所述3D显示视图;利用所述2D显示视图对应的构造器对所述三维信息数据进行处理,得到所述2D显示视图。The view construction unit is specifically configured to use the constructor corresponding to the 3D display view to process the three-dimensional information data to obtain the 3D display view; use the constructor corresponding to the 2D display view to process the three-dimensional information data The data is processed to obtain the 2D display view.

可选地,所述编辑展示模块,包括:Optionally, the editing display module includes:

数据编辑单元,用于根据所述编辑指令对所述目标模型对应的模型数据进行编辑,得到编辑后的模型数据;A data editing unit, configured to edit the model data corresponding to the target model according to the editing instruction to obtain edited model data;

视图重构单元,用于基于所述多个构造器,基于所述编辑后的模型数据分别构造得到所述多个编辑后的显示视图。A view reconstruction unit, configured to respectively construct the plurality of edited display views based on the edited model data based on the plurality of constructors.

可选地,所述数据编辑单元,具体用于响应于所述编辑指令为增加物品指令,从预设数据库中获取至少一个物品数据;将所述至少一个物品数据插入所述模型数据中的对应位置,得到所述编辑后的模型数据。Optionally, the data editing unit is specifically configured to acquire at least one item data from a preset database in response to the editing instruction being an item addition instruction; insert the at least one item data into the corresponding position, get the edited model data.

可选地,所述装置还包括:Optionally, the device also includes:

视图切换模块,用于响应于接收到显示切换指令,根据所述显示切换指令将所述多个显示区域中展示的所述多个显示视图之间进行切换。A view switching module, configured to, in response to receiving a display switching instruction, switch among the plurality of display views displayed in the plurality of display areas according to the display switching instruction.

可选地,所述视图获取模块,还包括:Optionally, the view acquisition module also includes:

初始化单元,用于确定所述多个构造器分别对应的多组文本对象模型元素,并将所述多组文本对象模型元素分别与显示引擎绑定,完成所述多个构造器的初始化。The initialization unit is configured to determine multiple sets of text object model elements corresponding to the multiple constructors, and bind the multiple sets of text object model elements to the display engine respectively, so as to complete the initialization of the multiple constructors.

可选地,所述多个显示区域包括一个可编辑区域和至少一个不可编辑区域;Optionally, the multiple display areas include one editable area and at least one non-editable area;

所述视图切换模块,具体用于根据所述显示切换指令,确定所述至少一个不可编辑区域中的一个不可编辑区域作为目标区域;在所述多个显示区域的文档流中,将第一文本对象模型元素与第二文本对象模型元素交换位置,其中所述第一文本对象模型元素为所述可编辑区域中展示的第一显示视图对应的所述文本对象模型元素,所述第二文本对象模型元素为所述不可编辑区域中展示的第二显示视图对应的所述文本对象模型元素;分别通过所述显示引擎渲染所述第一文本对象模型元素与所述第二文本对象模型元素,使所述目标区域中展示所述第二显示视图,所述可编辑区域中展示所述第一显示视图。The view switching module is specifically configured to determine one of the at least one non-editable area as a target area according to the display switching instruction; in the document flow of the plurality of display areas, the first text The object model element exchanges positions with the second text object model element, wherein the first text object model element is the text object model element corresponding to the first display view displayed in the editable area, and the second text object The model element is the text object model element corresponding to the second display view displayed in the non-editable area; the first text object model element and the second text object model element are respectively rendered by the display engine, so that The second display view is displayed in the target area, and the first display view is displayed in the editable area.

根据本公开实施例的又一方面,提供了一种电子设备,其特征在于,包括:According to yet another aspect of the embodiments of the present disclosure, there is provided an electronic device, which is characterized in that it includes:

存储器,用于存储计算机程序产品;memory for storing computer program products;

处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现上述任一实施例所述的模型的编辑方法。The processor is configured to execute the computer program product stored in the memory, and when the computer program product is executed, implement the model editing method described in any one of the above embodiments.

根据本公开实施例的还一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该计算机程序指令被处理器执行时,实现上述任一实施例所述的模型的编辑方法。According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and it is characterized in that, when the computer program instructions are executed by a processor, the computer program instructions described in any of the above-mentioned embodiments can be implemented. The editing method of the model.

根据本公开实施例的再一方面,提供了一种计算机程序产品,包括计算机程序指令,其特征在于,该计算机程序指令被处理器执行时实现上述任一实施例所述的模型的编辑方法。According to still another aspect of the embodiments of the present disclosure, there is provided a computer program product, including computer program instructions, characterized in that, when the computer program instructions are executed by a processor, the model editing method described in any of the above embodiments is implemented.

基于本公开上述实施例提供的一种模型的编辑方法和装置、电子设备、存储介质、产品,获得目标模型对应的多个显示视图;在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个区域中包括至少一个可编辑区域;通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图;本实施例可以同时显示目标模型对应的多个显示视图,并且通过可编辑区域接收编辑指令,实现在一个显示视图中进行编辑后,同步更新所有显示视图,便于观察编辑后的效果,显著提升了模型的编辑效率。Based on a model editing method and device, electronic equipment, storage medium, and product provided by the above-mentioned embodiments of the present disclosure, multiple display views corresponding to the target model are obtained; the multiple display views are respectively displayed in multiple display areas; wherein , each of the display views corresponds to one of the display areas, and the plurality of areas include at least one editable area; the editing of the display view shown in the editable area is received through the editable area Editing instructions; according to the editing instructions, respectively perform editing operations corresponding to the editing instructions on the multiple display views, and display multiple edited display views in the multiple display areas; this embodiment can display simultaneously There are multiple display views corresponding to the target model, and the editing instructions are received through the editable area. After editing in one display view, all display views are updated synchronously, which is convenient for observing the edited effect, and significantly improves the editing efficiency of the model.

下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solution of the present disclosure will be described in further detail below with reference to the drawings and embodiments.

附图说明Description of drawings

通过结合附图对本公开实施例进行更详细的描述,本公开的上述以及其他目的、特征和优势将变得更加明显。附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。在附图中,相同的参考标号通常代表相同部件或步骤。The above and other objects, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail with reference to the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute limitations to the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

图1是本公开一示例性实施例提供的模型的编辑方法的流程示意图。Fig. 1 is a schematic flowchart of a model editing method provided by an exemplary embodiment of the present disclosure.

图2是本公开图1所示的实施例中步骤102的一个流程示意图。FIG. 2 is a schematic flowchart of step 102 in the embodiment shown in FIG. 1 of the present disclosure.

图3是本公开一可选示例中利用2D显示视图对应的构造器得到的2D显示视图。Fig. 3 is a 2D display view obtained by using a constructor corresponding to the 2D display view in an optional example of the present disclosure.

图4是本公开一可选示例中利用3D显示视图对应的构造器得到的3D显示视图。Fig. 4 is a 3D display view obtained by using a constructor corresponding to the 3D display view in an optional example of the present disclosure.

图5是本公开图1所示的实施例中步骤108的一个流程示意图。FIG. 5 is a schematic flowchart of step 108 in the embodiment shown in FIG. 1 of the present disclosure.

图6是本公开一可选示例中执行视图切换后的显示示意图。Fig. 6 is a schematic display diagram after performing view switching in an optional example of the present disclosure.

图7是本公开一示例性实施例提供的模型的编辑装置的结构示意图。Fig. 7 is a schematic structural diagram of a model editing device provided by an exemplary embodiment of the present disclosure.

图8是本公开一示例性实施例提供的电子设备的结构图。Fig. 8 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure.

具体实施方式detailed description

下面,将参考附图详细地描述根据本公开的示例实施例。显然,所描述的实施例仅仅是本公开的一部分实施例,而不是本公开的全部实施例,应理解,本公开不受这里描述的示例实施例的限制。Hereinafter, exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited by the exemplary embodiments described here.

应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。It should be noted that relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

本领域技术人员可以理解,本公开实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc. necessary logical sequence.

还应理解,在本公开实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。It should also be understood that in the embodiments of the present disclosure, "plurality" may refer to two or more than two, and "at least one" may refer to one, two or more than two.

还应理解,对于本公开实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more unless there is a clear limitation or a contrary suggestion is given in the context.

另外,本公开中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本公开中字符“/”,一般表示前后关联对象是一种“或”的关系。本公开中所指数据可以包括文本、图像、视频等非结构化数据,也可以是结构化数据。In addition, the term "and/or" in the present disclosure is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, and A and B exist simultaneously , there are three cases of B alone. In addition, the character "/" in the present disclosure generally indicates that the contextual objects are an "or" relationship. The data referred to in this disclosure may include unstructured data such as text, images, and videos, and may also be structured data.

还应理解,本公开对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of the various embodiments in the present disclosure emphasizes the differences between the various embodiments, and the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated here.

同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way intended as any limitation of the disclosure, its application or uses.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

本公开实施例可以应用于终端设备、计算机系统、服务器等电子设备,其可与众多其它通用或专用计算系统环境或配置一起操作。适于与终端设备、计算机系统、服务器等电子设备一起使用的众所周知的终端设备、计算系统、环境和/或配置的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统、大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。Embodiments of the present disclosure may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments and/or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick client computers, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the foregoing, among others.

终端设备、计算机系统、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by the computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server can be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including storage devices.

示例性方法exemplary method

图1是本公开一示例性实施例提供的模型的编辑方法的流程示意图。本实施例可应用在电子设备上,如图1所示,包括如下步骤:Fig. 1 is a schematic flowchart of a model editing method provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic equipment, as shown in Figure 1, including the following steps:

步骤102,获得目标模型对应的多个显示视图。Step 102, obtaining multiple display views corresponding to the target model.

其中,目标模型可以为任意可构建模型的产品对应的结构模型,例如,房屋、汽车等产品,以房屋为例,对应的多个显示视图可以包括但不限于2D显示视图、3D显示视图、2D视角下的不同角度的显示视图(例如,主视图、左视图、右视图、俯视图、仰视图、后视图等)等;本实施例不限制目标模型对应的多个显示视图的获取方法,可通过现有技术中任意构建视图的方式实现。多个显示视图均为同一个目标模型对应的显示视图。Among them, the target model can be a structural model corresponding to any product that can be modeled, for example, a house, a car and other products. Taking a house as an example, the corresponding multiple display views can include but are not limited to 2D display views, 3D display views, 2D display views, and 2D display views. Display views of different angles under the viewing angle (for example, front view, left view, right view, top view, bottom view, rear view, etc.); The method of constructing views arbitrarily in the prior art is realized. The multiple display views are display views corresponding to the same target model.

步骤104,在多个显示区域分别展示多个显示视图。Step 104, displaying multiple display views in multiple display areas respectively.

其中,每个显示视图对应一个显示区域,多个显示区域中包括至少一个可编辑区域。Wherein, each display view corresponds to a display area, and at least one editable area is included in the multiple display areas.

可选地,通过多个显示区域实现同时对多个显示视图的展示,由于每个显示视图是分别获得的,相对于基于一个显示视图获得其他显示视图(例如,以3D模型中的俯视图作为2D模型,这样构件在2D模型和3D模型中的显示方式完全一致),本实施例实现了差异化的显示,避免了显示方式完全一致导致的显示不具备扩展性的问题,更便于编辑使用;其中,多个显示区域的大小可以相同或不同,例如,多个显示区域中包括一个可编辑区域时,将可编辑区域的大小较大,作为主区域(可编辑区域较大方便编辑操作),此时其他显示区域可分布在主区域的边缘作为辅助区域。本领域技术人员可以理解的是,多个显示区域可以在同一个显示装置上(例如图6),也可以位于不同的显示装置上(例如可以在不同的显示屏上分别展示同一个房屋模型的2D和3D显示视图)。Optionally, multiple display areas can be used to display multiple display views at the same time. Since each display view is obtained separately, compared to obtaining other display views based on one display view (for example, using a top view in a 3D model as a 2D model, so that the display modes of the components in the 2D model and the 3D model are exactly the same), this embodiment realizes the differentiated display, avoids the problem that the display does not have scalability caused by the completely consistent display mode, and is more convenient for editing and use; , the sizes of multiple display areas can be the same or different. For example, when multiple display areas include an editable area, the size of the editable area is larger and it is used as the main area (the editable area is larger to facilitate editing operations). Other display areas can be distributed on the edge of the main area as auxiliary areas. Those skilled in the art can understand that multiple display areas can be on the same display device (such as FIG. 6 ), and can also be located on different display devices (for example, the same house model can be displayed on different display screens). 2D and 3D display views).

步骤106,通过可编辑区域接收对可编辑区域中展示的显示视图进行编辑的编辑指令。Step 106, receiving an editing instruction for editing the display view displayed in the editable area through the editable area.

可选地,编辑指令可以包括但不限于:物品选择(例如,通过鼠标点击等实现)、物品移动(例如,通过鼠标拖拽等实现)、增加物品(例如,将显示的物品视图移动到显示视图中等)、删除物品、缩放物品等,其中,物品为目标模型中的组成部分,例如,房屋中的墙面、窗户、门、家具等。Optionally, the editing instructions may include, but are not limited to: item selection (for example, by mouse clicking, etc.), item movement (for example, by mouse dragging, etc.), adding items (for example, moving the displayed item view to the display View, etc.), delete items, scale items, etc., wherein the items are components in the target model, for example, walls, windows, doors, furniture, etc. in the house.

步骤108,根据编辑指令,对多个显示视图分别执行编辑指令对应的编辑操作,在多个显示区域分别展示多个编辑后的显示视图。In step 108, according to the editing instruction, the editing operations corresponding to the editing instruction are respectively performed on the multiple display views, and the multiple edited display views are respectively displayed in the multiple display areas.

本实施例中,仅通过可编辑区域接收编辑指令,但是同步对所有显示视图实现编辑操作,始终保持多个显示视图中的内容相同,不需要额外的人为对每个显示视图进行编辑。In this embodiment, the editing instruction is only received through the editable area, but the editing operation is implemented on all the display views synchronously, and the content in the multiple display views is always kept the same, and no additional manual editing is required for each display view.

本公开上述实施例提供的一种模型的编辑方法,获得目标模型对应的多个显示视图;在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个区域中包括至少一个可编辑区域;通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图;本实施例可以同时显示目标模型对应的多个显示视图,并且通过可编辑区域接收编辑指令,实现在一个显示视图中进行编辑后,同步更新所有显示视图,便于观察编辑后的效果,显著提升了模型的编辑效率。The method for editing a model provided by the above-mentioned embodiments of the present disclosure obtains multiple display views corresponding to the target model; displays the multiple display views in multiple display areas; wherein, each of the display views corresponds to one of the A display area, wherein the multiple areas include at least one editable area; receiving an editing instruction for editing the display view shown in the editable area through the editable area; according to the editing instruction, editing the The multiple display views respectively execute the editing operations corresponding to the editing instructions, and display multiple edited display views in the multiple display areas; this embodiment can simultaneously display multiple display views corresponding to the target model, and through The editable area receives editing instructions, and after editing in one display view, all display views are updated synchronously, which is convenient for observing the edited effect and significantly improves the editing efficiency of the model.

如图2所示,在上述图1所示实施例的基础上,步骤102可包括如下步骤:As shown in Figure 2, on the basis of the embodiment shown in Figure 1 above, step 102 may include the following steps:

步骤1021,获取目标模型对应的模型数据。Step 1021, acquire model data corresponding to the target model.

其中,模型数据中可以仅包括户型数据,还可以包括至少一组物品数据。Wherein, the model data may only include house type data, and may also include at least one set of item data.

可选地,当目标模型中包括至少一个物品,例如,当目标模型为房屋时,房屋中的墙面、窗户、门、家具等都可视为目标模型中的物品;每个物品对应的物品数据中包括物品类型、物品坐标(例如,通过三维坐标表示其大小和位置)、物品图例和其他参数化属性的相关数据等;通过所有物品数据构成目标模型对应的模型数据。Optionally, when the target model includes at least one item, for example, when the target model is a house, the walls, windows, doors, furniture, etc. in the house can be regarded as items in the target model; the corresponding item of each item The data includes item type, item coordinates (for example, expressing its size and position through three-dimensional coordinates), item legend and other related data of parametric attributes; all item data constitutes the corresponding model data of the target model.

步骤1022,利用多个构造器,基于模型数据分别构造得到多个显示视图。Step 1022, using multiple constructors to respectively construct multiple display views based on the model data.

其中,每个构造器对应一个显示视图。Among them, each constructor corresponds to a display view.

本实施例中,对于不同的显示视图,分别选取合适的渲染引擎,例如,在一个可选示例中,针对2D显示视图和3D显示视图分别选取PIXIJS和THREEJS作为对应场景的显示引擎;通过不同的构造器生成不同的显示视图,每个显示视图对应不同的视角,例如,一个产品模型对应的3D显示视图或2D显示视图,其中,2D显示视图可以包括但不限于主视图、左视图、右视图、俯视图、仰视图、后视图等;构造器的作用是读取目标模型的模型数据,并在对应显示引擎中创建对应的模型元素;如果用户需要目标模型在特定场景的定制化显示,只需要在对应的构造器中增加相关的显示处理逻辑即可,非常便捷。并且,由于2D显示视图是基于独立的构造器独立生成,因此,得到的2D显示视图并不是3D显示视图直接投影得到,基于不同的构造器得到的显示视图的显示方式不一致,具有差异性显示的可扩展性,在配合出图和显示效果上具有优势,更利于用户(例如,设计师等)的使用。In this embodiment, for different display views, select appropriate rendering engines respectively, for example, in an optional example, select PIXIJS and THREEJS respectively as the display engines of corresponding scenes for 2D display views and 3D display views; through different The constructor generates different display views, each display view corresponds to a different perspective, for example, a 3D display view or 2D display view corresponding to a product model, where the 2D display view can include but not limited to the main view, left view, and right view , top view, bottom view, back view, etc.; the function of the constructor is to read the model data of the target model, and create the corresponding model elements in the corresponding display engine; if the user needs the customized display of the target model in a specific scene, only need It is very convenient to add relevant display processing logic in the corresponding constructor. Moreover, since the 2D display view is independently generated based on an independent constructor, the obtained 2D display view is not directly projected from the 3D display view, and the display methods of the display views obtained based on different constructors are inconsistent, and there are differences in display Scalability has advantages in cooperating with drawing and display effects, and is more conducive to the use of users (for example, designers, etc.).

可选地,在上述实施例的基础上,多个显示视图包括3D显示视图和2D显示视图,模型数据为三维信息数据;此时,步骤1022可以包括:Optionally, on the basis of the above embodiments, the multiple display views include 3D display views and 2D display views, and the model data is three-dimensional information data; at this time, step 1022 may include:

利用3D显示视图对应的构造器对三维信息数据进行处理,得到3D显示视图。A constructor corresponding to the 3D display view is used to process the 3D information data to obtain a 3D display view.

利用2D显示视图对应的构造器对三维信息数据进行处理,得到2D显示视图。Use the constructor corresponding to the 2D display view to process the 3D information data to obtain the 2D display view.

本实施例中,通过3D显示视图对应的构造器和2D显示视图对应的构造器分别对相同三维信息数据进行处理,分别可得到对应该目标模型的3D显示视图和2D显示视图,基于相同的三维信息数据,通过不同的构造器,可得到显示效果不同的显示视图,例如,如图3为利用2D显示视图对应的构造器得到的2D显示视图;如图4为利用3D显示视图对应的构造器得到的3D显示视图,其中,图3和图4中的网格可用于标识模型比例,例如,每个网格表示真实尺寸中的0.5m*0.5m大小的区域等,通过网格更利于将多个显示视图之间的物品进行对应;由附图3可知,其中方框内的入户门并非图4所示的入户门的俯视图,而是独立生成的,更利于设计师对每个显示视图的查看和操作。In this embodiment, the same three-dimensional information data is processed by the constructor corresponding to the 3D display view and the constructor corresponding to the 2D display view, and the 3D display view and the 2D display view corresponding to the target model can be respectively obtained, based on the same three-dimensional Information data, through different constructors, display views with different display effects can be obtained, for example, Figure 3 shows the 2D display view obtained by using the constructor corresponding to the 2D display view; Figure 4 shows the constructor corresponding to the 3D display view The obtained 3D display view, wherein, the grids in Figure 3 and Figure 4 can be used to identify the model scale, for example, each grid represents a 0.5m*0.5m size area in the real size, etc., and it is more beneficial to use the grid Items between multiple display views are corresponding; as can be seen from accompanying drawing 3, the entrance door in the box is not the top view of the entrance door shown in figure 4, but is independently generated, which is more conducive to the designer Displays viewing and manipulation of views.

如图5所示,在上述图1所示实施例的基础上,步骤108可包括如下步骤:As shown in Figure 5, on the basis of the embodiment shown in Figure 1 above, step 108 may include the following steps:

步骤1081,根据编辑指令对目标模型对应的模型数据进行编辑,得到编辑后的模型数据。Step 1081: Edit the model data corresponding to the target model according to the editing instruction to obtain edited model data.

可选地,通过可编辑区域接收的编辑指令是针对可编辑区域中显示的显示视图的,但由于显示视图是基于模型数据得到的,因此,编辑指令可转换为对应的数据信息,即,根据编辑指令对显示视图对应的模型数据进行编辑,得到编辑后的模型数据;其中,编辑指令可以包括但不限于:增加(例如,提供已知各种形状大小的模型库,将模型库中的至少一个模型增加到目标模型中等)、删除、改(例如,对目标模型中的任意物品进行位置变换、编辑、旋转、大小缩放等至少一个操作等)、查(例如,通过点击查看物品属性等)等。Optionally, the editing instruction received through the editable area is aimed at the display view displayed in the editable area, but since the display view is obtained based on model data, the editing instruction can be converted into corresponding data information, that is, according to The editing instruction edits the model data corresponding to the display view to obtain the edited model data; wherein, the editing instruction may include but is not limited to: adding (for example, providing a model library of known shapes and sizes, adding at least Add a model to the target model, etc.), delete, modify (for example, perform at least one operation such as position transformation, editing, rotation, and size scaling on any item in the target model), check (for example, view item properties by clicking, etc.) Wait.

步骤1082,基于多个构造器,基于编辑后的模型数据分别构造得到多个编辑后的显示视图。In step 1082, based on multiple constructors, multiple edited display views are respectively constructed based on the edited model data.

本实施例中,仍基于原有的多个构造器分别对该编辑后的模型数据进行构造编辑后的显示视图,由于模型数据统一,因此,得到的每个显示视图都是根据编辑指令编辑后的;本实施例通过编辑模型数据,实现了对所有显示视图的统一编辑,并保证了同一模型在不同场景下的数据一致性。In this embodiment, the edited model data is still constructed based on the original multiple constructors to construct the edited display view. Since the model data is unified, each obtained display view is edited according to the editing instructions. In this embodiment, by editing model data, unified editing of all display views is realized, and data consistency of the same model in different scenarios is guaranteed.

可选地,在一些可选的示例中,在上述实施例的基础上,步骤1081可以包括:Optionally, in some optional examples, on the basis of the foregoing embodiments, step 1081 may include:

响应于编辑指令为增加物品指令,从预设数据库中获取至少一个物品数据;Obtaining at least one piece of item data from a preset database in response to the edit command being an add item command;

将至少一个物品数据插入模型数据中的对应位置,得到编辑后的模型数据。Inserting at least one piece of item data into a corresponding position in the model data to obtain edited model data.

本实施例中,在对多个显示视图进行展示时,除了多个显示区域,还可以提供一个物品显示区域,通过在物品显示区域中展示至少一个已知物品数据的物品模型,在接收到增加物品的编辑指令时,通过移动对应物品模型到目标模型中,实现增加物品,具体是在模型数据的对应位置中增加对应的物品数据,物品数据中包括但不限于物品类型、物品坐标(例如,通过三维坐标表示其大小和位置)、物品图例和其他参数化属性的相关数据等。In this embodiment, when displaying multiple display views, in addition to multiple display areas, an item display area may also be provided, by displaying at least one item model of known item data in the item display area, after receiving the added When editing an item, add the item by moving the corresponding item model to the target model. Specifically, add the corresponding item data in the corresponding position of the model data. The item data includes but is not limited to item type, item coordinates (for example, Represent its size and position through three-dimensional coordinates), item legend and other related data of parametric attributes, etc.

在一些可选的实施例中,在利用多个构造器,基于模型数据分别构造得到多个显示视图之前,还可以包括:In some optional embodiments, before using multiple constructors to respectively construct multiple display views based on model data, it may also include:

确定多个构造器对应的多组文本对象模型元素,并将多组文本对象模型元素分别与显示引擎绑定,完成多个构造器的初始化。Multiple sets of text object model elements corresponding to multiple constructors are determined, and multiple sets of text object model elements are respectively bound to the display engine to complete the initialization of multiple constructors.

本实施例中,在基于构造器生成显示视图之前,需要对构造器进行初始化,首先进行显示引擎和文本对象模型(Dom)元素的初始化;对于2D、3D场景,分别选取合适的显示引擎进行渲染,例如,分别选取了PIXIJS和THREEJS作为对应场景的显示引擎;在渲染方案之前,首先要将其进行初始化,在页面中分别创建2D、3D视图所用的Dom元素,并与显示引擎绑定,例如,在页面上的两个Dom的尺寸一般一大一小,大尺寸的作为主显示视图,小尺寸的作为副显示视图;本实施例通过初始化为每个构造器,以实现每个构造器可生成对应的不同显示效果的显示视图。In this embodiment, before the display view is generated based on the constructor, the constructor needs to be initialized, first, the initialization of the display engine and the text object model (Dom) element is performed; for 2D and 3D scenes, an appropriate display engine is selected for rendering , for example, PIXIJS and THREEJS are respectively selected as the display engines of the corresponding scenes; before rendering the solution, they must be initialized first, and the Dom elements used for the 2D and 3D views are respectively created on the page and bound to the display engine, for example , the size of the two Doms on the page is generally one large and one small, the large size is used as the main display view, and the small size is used as the secondary display view; this embodiment initializes each constructor to realize that each constructor can Generate corresponding display views with different display effects.

在一些可选的实施例中,本实施例提供的方法还可以包括:In some optional embodiments, the method provided in this embodiment may also include:

响应于接收到显示切换指令,根据显示切换指令将多个显示区域中展示的多个显示视图之间进行切换。In response to receiving the display switching instruction, switch between the multiple display views displayed in the multiple display areas according to the display switching instruction.

本实施例中,考虑到模型涉及中的实际需要,增加了视图切换功能;例如,在一个可选示例中,初始状态下,可将2D显示视图作为主显示视图(在可编辑区域中展示),可以在2D显示视图中进行操作,边缘处作为副视图的3D显示视图中的显示内容也会有联动效果;当使用切换视图功能,通过将页面上2个Dom元素的位置进行调换并重新绘制整个场景,使3D显示视图显示在可编辑区域,作为主视图,2D显示视图作为副视图,例如,如图6所示,此时可在3D显示视图中进行操作,图6中的网格与图3和图4中的网格作用相同,在此不再赘述,另外,在右上角显示的副视图中,对应网格也相应缩放;本实施例通过切换指令实现显示视图之间的切换,该实现方式的性能较为稳定,且性能开销较低。In this embodiment, considering the actual needs of the model involved, the view switching function is added; for example, in an optional example, in the initial state, the 2D display view can be used as the main display view (shown in the editable area) , you can operate in the 2D display view, and the display content in the 3D display view as a secondary view at the edge will also have a linkage effect; when using the switch view function, swap the positions of the two Dom elements on the page and redraw them For the whole scene, the 3D display view is displayed in the editable area as the main view, and the 2D display view is used as the sub-view. For example, as shown in Figure 6, operations can be performed in the 3D display view at this time. The grid in Figure 6 and The functions of the grids in Fig. 3 and Fig. 4 are the same, and will not be repeated here. In addition, in the sub-view displayed in the upper right corner, the corresponding grid is also scaled accordingly; in this embodiment, switching between display views is realized by switching commands. The performance of this implementation is relatively stable, and the performance overhead is low.

可选地,根据显示切换指令将多个显示区域中展示的多个显示视图之间进行切换,包括:Optionally, switching between multiple display views displayed in multiple display areas according to a display switching instruction includes:

根据显示切换指令,确定至少一个不可编辑区域中的一个不可编辑区域作为目标区域;Determining one non-editable area in at least one non-editable area as a target area according to the display switching instruction;

在多个显示区域的文档流中,将第一文本对象模型与第二文本对象模型交换位置,其中,第一文本对象模型为可编辑区域中展示的第一显示视图对应的文本对象模型,第二文本对象模型为不可编辑区域中展示的第二显示视图对应的文本对象模型;In the document flow of multiple display areas, the first text object model and the second text object model are exchanged, wherein the first text object model is the text object model corresponding to the first display view displayed in the editable area, and the first text object model is The second text object model is a text object model corresponding to the second display view displayed in the non-editable area;

文档流是文档中可显示对象在排列时所占用的位置。网页中大部分对象默认是占用文档流,本实施例中的第一文本对象模型和第二文本对象模型分别存储在显示区域对应的文档流中的不同位置,本实施例通过第一文本对象模型和第二文本对象模型的位置替换,实现将对应的显示视图在显示页面上的位置替换。Document flow is the position in a document that displayable objects occupy when they are arranged. Most of the objects in the web page occupy the document flow by default. The first text object model and the second text object model in this embodiment are stored in different positions in the document flow corresponding to the display area. In this embodiment, the first text object model and the position replacement of the second text object model, so as to replace the position of the corresponding display view on the display page.

渲染文档流,使目标区域中展示第二显示视图,可编辑区域中展示第一显示视图。Render the document flow so that the second display view is displayed in the target area and the first display view is displayed in the editable area.

其中,多个显示区域包括一个可编辑区域和至少一个不可编辑区域;文档流中第一文本对象模型与第二文本对象模型的位置替换后,得到更新后的文档流,通过显示引擎对应更新后的文档流进行渲染,即可实现在目标区域中展示第二显示视图,可编辑区域中展示第一显示视图。Wherein, the plurality of display areas include an editable area and at least one non-editable area; after the positions of the first text object model and the second text object model in the document stream are replaced, an updated document stream is obtained, and the updated document stream is correspondingly updated through the display engine The document stream is rendered, so that the second display view can be displayed in the target area, and the first display view can be displayed in the editable area.

本实施例中,为了避免编辑混淆,通常只设置一个可编辑区域,在进行视图切换时,根据具体编辑需求确定某一不可编辑区域作为需要切换的目标区域,将该目标区域中展示的第一显示视图与可编辑区域中展示的第二显示视图进行位置替换,具体的可通质量将两个显示视图对应的Dom元素调换位置即可;替换后可编辑区域中展示第一显示视图,此时可对第一显示视图进行编辑;本实施例通过视图切换实现了对多个显示视图的可编辑性,方便了对目标模型的任意设计,例如在一个显示视图中显示不明显的位置可通过切换到其他显示视图中进行编辑,并且编辑后的效果会同步到所有显示视图,完成对目标模型的设计,提高了模型编辑的效率。In this embodiment, in order to avoid editing confusion, usually only one editable area is set. When performing view switching, a certain non-editable area is determined as the target area to be switched according to the specific editing requirements, and the first displayed in the target area Replace the position of the display view with the second display view displayed in the editable area. The specific available quality is to exchange the positions of the Dom elements corresponding to the two display views; after the replacement, the first display view is displayed in the editable area. At this time The first display view can be edited; this embodiment realizes the editability of multiple display views through view switching, which facilitates any design of the target model. Edit in other display views, and the edited effect will be synchronized to all display views to complete the design of the target model and improve the efficiency of model editing.

本公开实施例提供的任一种模型的编辑方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:终端设备和服务器等。或者,本公开实施例提供的任一种模型的编辑方法可以由处理器执行,如处理器通过调用存储器存储的相应指令来执行本公开实施例提及的任一种模型的编辑方法。下文不再赘述。Any model editing method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: terminal devices and servers. Alternatively, any model editing method provided in the embodiments of the present disclosure may be executed by a processor, for example, the processor executes any model editing method mentioned in the embodiments of the present disclosure by calling a corresponding instruction stored in a memory. I won't go into details below.

示例性装置Exemplary device

图7是本公开一示例性实施例提供的模型的编辑装置的结构示意图。如图7所示,本实施例提供的装置包括:Fig. 7 is a schematic structural diagram of a model editing device provided by an exemplary embodiment of the present disclosure. As shown in Figure 7, the device provided in this embodiment includes:

视图获取模块71,用于获得目标模型对应的多个显示视图。The view obtaining module 71 is configured to obtain multiple display views corresponding to the target model.

视图展示模块72,用于在多个显示区域分别展示多个显示视图。The view presentation module 72 is configured to respectively display multiple display views in multiple display areas.

其中,每个显示视图对应一个显示区域,多个显示区域中包括至少一个可编辑区域。Wherein, each display view corresponds to a display area, and at least one editable area is included in the multiple display areas.

视图编辑模块73,用于通过可编辑区域接收对可编辑区域中展示的显示视图进行编辑的编辑指令。The view editing module 73 is configured to receive an editing instruction for editing the display view displayed in the editable area through the editable area.

编辑展示模块74,用于根据编辑指令,对多个显示视图分别执行编辑指令对应的编辑操作,在多个显示区域分别展示多个编辑后的显示视图。The editing and displaying module 74 is configured to perform editing operations corresponding to the editing instructions on the multiple display views according to the editing instructions, and display multiple edited display views in multiple display areas.

本公开上述实施例提供的一种模型的编辑装置,获得目标模型对应的多个显示视图;在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个区域中包括至少一个可编辑区域;通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图;本实施例可以同时显示目标模型对应的多个显示视图,并且通过可编辑区域接收编辑指令,实现在一个显示视图中进行编辑后,同步更新所有显示视图,便于观察编辑后的效果,显著提升了模型的编辑效率。The model editing device provided by the above embodiments of the present disclosure obtains multiple display views corresponding to the target model; displays the multiple display views in multiple display areas; wherein, each of the display views corresponds to one of the A display area, wherein the multiple areas include at least one editable area; receiving an editing instruction for editing the display view shown in the editable area through the editable area; according to the editing instruction, editing the The multiple display views respectively execute the editing operations corresponding to the editing instructions, and display multiple edited display views in the multiple display areas; this embodiment can simultaneously display multiple display views corresponding to the target model, and through The editable area receives editing instructions, and after editing in one display view, all display views are updated synchronously, which is convenient for observing the edited effect and significantly improves the editing efficiency of the model.

可选地,视图获取模块71,包括:Optionally, the view acquisition module 71 includes:

数据获取单元,用于获取目标模型对应的模型数据;a data acquisition unit, configured to acquire model data corresponding to the target model;

视图构造单元,用于利用多个构造器,基于模型数据分别构造得到多个显示视图;其中,每个构造器对应一个显示视图。The view construction unit is configured to use multiple constructors to construct multiple display views based on model data; wherein, each constructor corresponds to a display view.

可选地,多个显示视图包括3D显示视图和2D显示视图,模型数据为三维信息数据;Optionally, the multiple display views include a 3D display view and a 2D display view, and the model data is three-dimensional information data;

视图构造单元,具体用于利用3D显示视图对应的构造器对三维信息数据进行处理,得到3D显示视图;利用2D显示视图对应的构造器对三维信息数据进行处理,得到2D显示视图。The view construction unit is specifically configured to use the constructor corresponding to the 3D display view to process the three-dimensional information data to obtain a 3D display view; to use the constructor corresponding to the 2D display view to process the three-dimensional information data to obtain a 2D display view.

可选地,编辑展示模块74,包括:Optionally, edit the presentation module 74 to include:

数据编辑单元,用于根据编辑指令对目标模型对应的模型数据进行编辑,得到编辑后的模型数据;The data editing unit is used to edit the model data corresponding to the target model according to the editing instruction, and obtain the edited model data;

视图重构单元,用于基于多个构造器,基于编辑后的模型数据分别构造得到多个编辑后的显示视图。The view reconstruction unit is configured to respectively construct multiple edited display views based on the edited model data based on multiple constructors.

可选地,数据编辑单元,具体用于响应于编辑指令为增加物品指令,从预设数据库中获取至少一个物品数据;将至少一个物品数据插入模型数据中的对应位置,得到编辑后的模型数据。Optionally, the data editing unit is specifically configured to, in response to the editing instruction being an instruction to add an item, acquire at least one item data from a preset database; insert at least one item data into a corresponding position in the model data to obtain edited model data .

可选地,视图获取模块71,还包括:Optionally, the view acquisition module 71 also includes:

初始化单元,用于确定多个构造器对应的多组文本对象模型元素,并将多组文本对象模型元素分别与显示引擎绑定,完成多个构造器的初始化。The initialization unit is configured to determine multiple sets of text object model elements corresponding to multiple constructors, and bind the multiple sets of text object model elements to the display engine respectively to complete the initialization of multiple constructors.

可选地,本实施例提供的装置还包括:Optionally, the device provided in this embodiment also includes:

视图切换模块,用于响应于接收到显示切换指令,根据显示切换指令将多个显示区域中展示的多个显示视图之间进行切换。The view switching module is configured to, in response to receiving a display switching instruction, switch between multiple display views displayed in multiple display areas according to the display switching instruction.

可选地,多个显示区域包括一个可编辑区域和至少一个不可编辑区域;Optionally, the multiple display areas include one editable area and at least one non-editable area;

视图切换模块,具体用于根据显示切换指令,确定至少一个不可编辑区域中的一个不可编辑区域作为目标区域;在多个显示区域的文档流中,将第一文本对象模型元素与第二文本对象模型元素交换位置,其中第一文本对象模型元素为可编辑区域中展示的第一显示视图对应的文本对象模型元素,第二文本对象模型元素为不可编辑区域中展示的第二显示视图对应的文本对象模型元素;渲染文档流,使目标区域中展示第二显示视图,可编辑区域中展示第一显示视图。The view switching module is specifically configured to determine at least one non-editable area in the non-editable area as the target area according to the display switching instruction; in the document flow of multiple display areas, combine the first text object model element with the second text object Model element exchange position, wherein the first text object model element is the text object model element corresponding to the first display view displayed in the editable area, and the second text object model element is the text corresponding to the second display view displayed in the non-editable area An object model element; renders a document flow such that a second display view is displayed in a target area and a first display view is displayed in an editable area.

示例性电子设备exemplary electronic device

下面,参考图8来描述根据本公开实施例的电子设备。该电子设备可以是第一设备和第二设备中的任一个或两者、或与它们独立的单机设备,该单机设备可以与第一设备和第二设备进行通信,以从它们接收所采集到的输入信号。Hereinafter, an electronic device according to an embodiment of the present disclosure is described with reference to FIG. 8 . The electronic device may be either or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive collected data from them. input signal.

图8图示了根据本公开实施例的电子设备的框图。FIG. 8 illustrates a block diagram of an electronic device according to an embodiment of the present disclosure.

如图8所示,电子设备80包括一个或多个处理器81和存储器82。As shown in FIG. 8 , an electronic device 80 includes one or more processors 81 and a memory 82 .

处理器81可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备80中的其他组件以执行期望的功能。Processor 81 may be a central processing unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in electronic device 80 to perform desired functions.

存储器可以存储一个或多个计算机程序产品,所述存储器可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序产品,处理器可以运行所述计算机程序产品,以实现上文所述的本公开的各个实施例的模型的编辑方法以及/或者其他期望的功能。The memory may store one or more computer program products and may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and/or cache memory (cache). The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, and the like. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program products to implement the above-mentioned editing methods of the models of the various embodiments of the present disclosure and/or other desired features.

在一个示例中,电子设备80还可以包括:输入装置83和输出装置84,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。In one example, the electronic device 80 may further include: an input device 83 and an output device 84, and these components are interconnected through a bus system and/or other forms of connection mechanisms (not shown).

例如,在该电子设备是第一设备或第二设备时,该输入装置83可以是上述的麦克风或麦克风阵列,用于捕捉声源的输入信号。在该电子设备是单机设备时,该输入装置83可以是通信网络连接器,用于从第一设备和第二设备接收所采集的输入信号。For example, when the electronic device is the first device or the second device, the input device 83 may be the above-mentioned microphone or microphone array for capturing the input signal of the sound source. When the electronic device is a stand-alone device, the input device 83 may be a communication network connector for receiving collected input signals from the first device and the second device.

此外,该输入装置83还可以包括例如键盘、鼠标等等。In addition, the input device 83 may also include, for example, a keyboard, a mouse, and the like.

该输出装置84可以向外部输出各种信息,包括确定出的距离信息、方向信息等。该输出装置84可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device 84 can output various information to the outside, including determined distance information, direction information, and the like. The output device 84 may include, for example, a display, a speaker, a printer, a communication network and its connected remote output devices, and the like.

当然,为了简化,图8中仅示出了该电子设备80中与本公开有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备80还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components related to the present disclosure in the electronic device 80 are shown in FIG. 8 , and components such as bus, input/output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 80 may also include any other suitable components.

示例性计算机程序产品和计算机可读存储介质Exemplary computer program product and computer readable storage medium

除了上述方法和设备以外,本公开的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述部分中描述的根据本公开各种实施例的模型的编辑方法中的步骤。In addition to the methods and devices described above, embodiments of the present disclosure may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the functions described in the foregoing sections of this specification. Steps in the editing method of the model in various embodiments of the present disclosure.

所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product can be written in any combination of one or more programming languages to execute the program codes for performing the operations of the embodiments of the present disclosure, and the programming languages include object-oriented programming languages, such as Java, C++, etc. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute.

此外,本公开的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本公开各种实施例的模型的编辑方法中的步骤。In addition, the embodiments of the present disclosure may also be a computer-readable storage medium, on which computer program instructions are stored, and the computer program instructions, when executed by a processor, cause the processor to perform the above-mentioned "Exemplary Method" section of this specification. Steps in the method for editing a model according to various embodiments of the present disclosure described in .

所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, but not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure have been described above in conjunction with specific embodiments, but it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present disclosure are only examples rather than limitations, and these advantages, advantages, effects, etc. Various embodiments of the present disclosure must have. In addition, the specific details disclosed above are only for the purpose of illustration and understanding, rather than limitation, and the above details do not limit the present disclosure to be implemented by using the above specific details.

本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。对于系统实施例而言,由于其与方法实施例基本对应,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of devices, devices, devices, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, devices, systems may be connected, arranged, configured in any manner. Words such as "including", "comprising", "having" and the like are open-ended words meaning "including but not limited to" and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the word "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as but not limited to" and can be used interchangeably therewith.

可能以许多方式来实现本公开的方法和装置。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的方法和装置。用于所述方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的方法的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的方法的程序的记录介质。The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and apparatuses of the present disclosure may be implemented by software, hardware, firmware or any combination of software, hardware, and firmware. The above sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure can also be implemented as programs recorded in recording media, the programs including machine-readable instructions for realizing the method according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

还需要指出的是,在本公开的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be pointed out that, in the devices, equipment and methods of the present disclosure, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present disclosure.

提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the disclosed embodiments to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims (10)

1.一种模型的编辑方法,其特征在于,包括:1. A method for editing a model, comprising: 获得目标模型对应的多个显示视图;Obtain multiple display views corresponding to the target model; 在多个显示区域分别展示所述多个显示视图;其中,每个所述显示视图对应一个所述显示区域,所述多个显示区域中包括至少一个可编辑区域;The multiple display views are respectively displayed in multiple display areas; wherein each of the display views corresponds to one of the display areas, and the multiple display areas include at least one editable area; 通过所述可编辑区域接收对所述可编辑区域中展示的所述显示视图进行编辑的编辑指令;receiving an editing instruction for editing the display view displayed in the editable area through the editable area; 根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图。According to the editing instruction, the editing operations corresponding to the editing instructions are respectively performed on the plurality of display views, and the plurality of edited display views are respectively displayed in the plurality of display areas. 2.根据权利要求1所述的方法,其特征在于,所述获得目标模型对应的多个显示视图,包括:2. The method according to claim 1, wherein said obtaining a plurality of display views corresponding to the target model comprises: 获取所述目标模型对应的模型数据;Acquiring model data corresponding to the target model; 利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图;其中,每个所述构造器对应一个显示视图。Multiple constructors are used to respectively construct multiple display views based on the model data; wherein, each constructor corresponds to a display view. 3.根据权利要求2所述的方法,其特征在于,所述多个显示视图包括3D显示视图和2D显示视图,所述模型数据为三维信息数据;3. The method according to claim 2, wherein the multiple display views include a 3D display view and a 2D display view, and the model data is three-dimensional information data; 所述利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图,包括:The use of multiple constructors to respectively construct multiple display views based on the model data includes: 利用所述3D显示视图对应的构造器对所述三维信息数据进行处理,得到所述3D显示视图;Using a constructor corresponding to the 3D display view to process the 3D information data to obtain the 3D display view; 利用所述2D显示视图对应的构造器对所述三维信息数据进行处理,得到所述2D显示视图。The 3D information data is processed by using the constructor corresponding to the 2D display view to obtain the 2D display view. 4.根据权利要求2或3所述的方法,其特征在于,所述根据所述编辑指令,对所述多个显示视图分别执行所述编辑指令对应的编辑操作,在所述多个显示区域分别展示多个编辑后的显示视图,包括:4. The method according to claim 2 or 3, characterized in that, according to the editing instructions, the editing operations corresponding to the editing instructions are respectively performed on the multiple display views, and in the multiple display areas Display multiple edited display views respectively, including: 根据所述编辑指令对所述目标模型对应的模型数据进行编辑,得到编辑后的模型数据;Editing the model data corresponding to the target model according to the editing instruction to obtain the edited model data; 基于所述多个构造器,基于所述编辑后的模型数据分别构造得到所述多个编辑后的显示视图。Based on the plurality of constructors, the plurality of edited display views are respectively constructed based on the edited model data. 5.根据权利要求4所述的方法,其特征在于,所述根据所述编辑指令对所述目标模型对应的模型数据进行编辑,得到编辑后的模型数据,包括:5. The method according to claim 4, wherein the editing of the model data corresponding to the target model according to the editing instruction to obtain the edited model data comprises: 响应于所述编辑指令为增加物品指令,从预设数据库中获取至少一个物品数据;Obtaining at least one item data from a preset database in response to the editing instruction being an item addition instruction; 将所述至少一个物品数据插入所述模型数据中的对应位置,得到所述编辑后的模型数据。Inserting the at least one item data into a corresponding position in the model data to obtain the edited model data. 6.根据权利要求1-5任一所述的方法,其特征在于,还包括:6. The method according to any one of claims 1-5, further comprising: 响应于接收到显示切换指令,根据所述显示切换指令将所述多个显示区域中展示的所述多个显示视图之间进行切换。In response to receiving a display switching instruction, switching among the plurality of display views displayed in the plurality of display areas is performed according to the display switching instruction. 7.根据权利要求2-6任一所述的方法,其特征在于,在利用多个构造器,基于所述模型数据分别构造得到多个所述显示视图之前,还包括:7. The method according to any one of claims 2-6, characterized in that, before using multiple constructors to respectively construct a plurality of said display views based on said model data, further comprising: 确定所述多个构造器分别对应的多组文本对象模型元素,并将所述多组文本对象模型元素分别与显示引擎绑定,完成所述多个构造器的初始化。Determining multiple sets of text object model elements corresponding to the multiple constructors, and binding the multiple sets of text object model elements to the display engine to complete the initialization of the multiple constructors. 8.根据权利要求7所述的方法,其特征在于,所述多个显示区域包括一个可编辑区域和至少一个不可编辑区域;8. The method according to claim 7, wherein the plurality of display areas include one editable area and at least one non-editable area; 所述根据所述显示切换指令将所述多个显示区域中展示的所述多个显示视图之间进行切换,包括:The switching between the multiple display views displayed in the multiple display areas according to the display switching instruction includes: 根据所述显示切换指令,确定所述至少一个不可编辑区域中的一个不可编辑区域作为目标区域;determining one of the at least one non-editable area as a target area according to the display switching instruction; 在所述多个显示区域的文档流中,将第一文本对象模型与第二文本对象模型交换位置,其中,所述第一文本对象模型为所述可编辑区域中展示的第一显示视图对应的所述文本对象模型,所述第二文本对象模型为所述不可编辑区域中展示的第二显示视图对应的所述文本对象模型;In the document flow of the plurality of display areas, the first text object model and the second text object model are exchanged, wherein the first text object model corresponds to the first display view displayed in the editable area The text object model, the second text object model is the text object model corresponding to the second display view displayed in the non-editable area; 渲染所述文档流,使所述目标区域中展示所述第二显示视图,所述可编辑区域中展示所述第一显示视图。Rendering the document flow, so that the second display view is displayed in the target area, and the first display view is displayed in the editable area. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it comprises: 存储器,用于存储计算机程序产品;memory for storing computer program products; 处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现上述权利要求1-8任一所述的模型的编辑方法。The processor is configured to execute the computer program product stored in the memory, and when the computer program product is executed, realize the model editing method described in any one of claims 1-8. 10.一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该计算机程序指令被处理器执行时,实现上述权利要求1-8任一所述的模型的编辑方法。10. A computer-readable storage medium, on which computer program instructions are stored, characterized in that, when the computer program instructions are executed by a processor, the model editing method according to any one of claims 1-8 is implemented.
CN202211274689.8A 2022-10-18 2022-10-18 Model editing method and device, electronic device, storage medium, product Pending CN115455552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211274689.8A CN115455552A (en) 2022-10-18 2022-10-18 Model editing method and device, electronic device, storage medium, product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211274689.8A CN115455552A (en) 2022-10-18 2022-10-18 Model editing method and device, electronic device, storage medium, product

Publications (1)

Publication Number Publication Date
CN115455552A true CN115455552A (en) 2022-12-09

Family

ID=84310898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211274689.8A Pending CN115455552A (en) 2022-10-18 2022-10-18 Model editing method and device, electronic device, storage medium, product

Country Status (1)

Country Link
CN (1) CN115455552A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192043A1 (en) * 2013-01-07 2014-07-10 R.B. Iii Associates Inc System and method for generating 3-d models from 2-d views
US20150346977A1 (en) * 2014-06-02 2015-12-03 Chuck Dubois Method and apparatus for managing multiple views for graphics data
CN105892787A (en) * 2015-08-03 2016-08-24 中国电建集团昆明勘测设计研究院有限公司 Multi-machine, multi-model and multi-window synchronous browsing and analyzing method for computer graphics
CN107978020A (en) * 2016-10-25 2018-05-01 奥多比公司 Threedimensional model is manipulated and rendered
US20180189419A1 (en) * 2017-01-04 2018-07-05 Onshape Inc. System maintaining domain-specific 3d models as a graph within computer aided design
CN108984835A (en) * 2018-06-11 2018-12-11 佛山欧神诺陶瓷有限公司 A kind of cross-platform 3 D house type method for drafting, apparatus and system
CN110689621A (en) * 2019-05-28 2020-01-14 贝壳技术有限公司 Method, device and system for displaying three-dimensional models of house before and after decoration on same screen
WO2021143571A1 (en) * 2020-01-13 2021-07-22 阿里巴巴集团控股有限公司 Product customization method and customized product transaction procesing method and apparatus
CN113158619A (en) * 2021-04-16 2021-07-23 腾讯科技(深圳)有限公司 Document processing method and device, computer readable storage medium and computer equipment
CN113838116A (en) * 2021-09-29 2021-12-24 北京有竹居网络技术有限公司 Method and device for determining target view, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192043A1 (en) * 2013-01-07 2014-07-10 R.B. Iii Associates Inc System and method for generating 3-d models from 2-d views
US20150346977A1 (en) * 2014-06-02 2015-12-03 Chuck Dubois Method and apparatus for managing multiple views for graphics data
CN105892787A (en) * 2015-08-03 2016-08-24 中国电建集团昆明勘测设计研究院有限公司 Multi-machine, multi-model and multi-window synchronous browsing and analyzing method for computer graphics
CN107978020A (en) * 2016-10-25 2018-05-01 奥多比公司 Threedimensional model is manipulated and rendered
US20180189419A1 (en) * 2017-01-04 2018-07-05 Onshape Inc. System maintaining domain-specific 3d models as a graph within computer aided design
CN108984835A (en) * 2018-06-11 2018-12-11 佛山欧神诺陶瓷有限公司 A kind of cross-platform 3 D house type method for drafting, apparatus and system
CN110689621A (en) * 2019-05-28 2020-01-14 贝壳技术有限公司 Method, device and system for displaying three-dimensional models of house before and after decoration on same screen
WO2021143571A1 (en) * 2020-01-13 2021-07-22 阿里巴巴集团控股有限公司 Product customization method and customized product transaction procesing method and apparatus
CN113158619A (en) * 2021-04-16 2021-07-23 腾讯科技(深圳)有限公司 Document processing method and device, computer readable storage medium and computer equipment
CN113838116A (en) * 2021-09-29 2021-12-24 北京有竹居网络技术有限公司 Method and device for determining target view, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩仲明等: "基于组件的软件可视化编程方法研究", 基于组件的软件可视化编程方法研究, 3 September 2021 (2021-09-03) *

Similar Documents

Publication Publication Date Title
CN102027504A (en) Lightweight three-dimensional display
CN114170381B (en) Three-dimensional path display method, device, readable storage medium and electronic device
CN103077239A (en) IFrame embedded Web3D (Web three-dimensional) system based on cloud rendering
CN112527172B (en) Interface display method and device, computer readable storage medium and electronic equipment
KR100809523B1 (en) System and method for constructing unified framework based on extensible styles for 3D non-photorealistic rendering
WO2023202349A1 (en) Interactive presentation method and apparatus for three-dimensional label, and device, medium and program product
Sawicki et al. Efficient visualization of 3D models by web browser
WO2023241065A1 (en) Method and apparatus for image inverse rendering, and device and medium
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
CN114237398A (en) Method and device for generating small room map based on illusion engine and storage medium
CN117009700A (en) Virtual reality scene construction method and device, electronic equipment and storage medium
CN114021239A (en) Method and system for linking two-dimensional drawing and three-dimensional model of web end
CN113609333A (en) A building model visualization method, device, computer equipment and storage medium
CN115455552A (en) Model editing method and device, electronic device, storage medium, product
CN114463104B (en) Method, apparatus, and computer-readable storage medium for processing VR scene
US20190304193A1 (en) Real-time spatial authoring in augmented reality using additive and subtractive modeling
CN111045673B (en) A method and terminal for making dynamic wallpapers with real-time preview
CN114463508A (en) Model display method, system, storage medium and electronic device
RU2752777C1 (en) Web browser objects computer-aided magnification and centering
Johansson et al. From BIM to VR
CN118394312B (en) 3D large-screen rotation display method and device based on three.js
CN114445532B (en) Information processing method and device of crown model, electronic equipment and storage medium
Karanjai Optimizing Web Virtual Reality
CN115454255B (en) Switching method and device for article display, electronic equipment and storage medium
US20240111496A1 (en) Method for running instance, computer device, and storage medium

Legal Events

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