[go: up one dir, main page]

CN114470781A - Region processing method and device - Google Patents

Region processing method and device Download PDF

Info

Publication number
CN114470781A
CN114470781A CN202210122880.4A CN202210122880A CN114470781A CN 114470781 A CN114470781 A CN 114470781A CN 202210122880 A CN202210122880 A CN 202210122880A CN 114470781 A CN114470781 A CN 114470781A
Authority
CN
China
Prior art keywords
area
mapping
combined
areas
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210122880.4A
Other languages
Chinese (zh)
Other versions
CN114470781B (en
Inventor
施润丰
陆易
梁波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xishanju Network Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Guangzhou Xishanju Network Technology Co ltd
Zhuhai Kingsoft Digital 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 Guangzhou Xishanju Network Technology Co ltd, Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Guangzhou Xishanju Network Technology Co ltd
Priority to CN202210122880.4A priority Critical patent/CN114470781B/en
Publication of CN114470781A publication Critical patent/CN114470781A/en
Application granted granted Critical
Publication of CN114470781B publication Critical patent/CN114470781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a region processing method and a device, wherein the region processing method comprises the following steps: determining at least two areas to be processed in response to a selection instruction of a user; screening related processing areas with adjacent positions in at least two areas to be processed, and determining bounding box information according to the related processing areas; and a target object bounding box which has a mapping relation with the associated processing area is created according to the bounding box information, so that the target object bounding box between the associated processing areas adjacent to the creation position is realized, the coverage area of the target object bounding box is increased, the creation number of the target object bounding boxes is reduced, and the consumption of resources is reduced.

Description

区域处理方法及装置Area treatment method and device

技术领域technical field

本申请涉及计算机技术领域,特别涉及一种区域处理方法。本申请同时涉及一种区域处理装置、一种计算设备,以及一种计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a region processing method. The present application also relates to a local processing apparatus, a computing device, and a computer-readable storage medium.

背景技术Background technique

随着互联网技术的发展,游戏的种类越来越丰富,玩法也越来越多。场景类游戏为用户的想象力提供了充分的发挥空间,如组建家园类的游戏,用户可以将家具等物品按照自己的喜好摆放在固定的游戏区域中。现有技术中,当用户摆放物品时,只能将物品按照引导框摆放在固定的区域内,无法实现跨区域摆放,降低了用户的游戏体验,因此亟需一种能够实现物品跨区域摆放的方案。With the development of Internet technology, there are more and more types of games and more and more ways to play. Scenario-based games provide ample room for users' imaginations. For example, in home-building games, users can place furniture and other items in a fixed game area according to their own preferences. In the prior art, when users place items, they can only place the items in a fixed area according to the guide frame, which cannot be placed across areas, which reduces the user's gaming experience. Regional layout plan.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了一种区域处理方法,以解决现有技术中存在的技术缺陷。本申请实施例同时提供了一种区域处理装置,一种计算设备,以及一种计算机可读存储介质。In view of this, the embodiments of the present application provide an area processing method to solve the technical defects existing in the prior art. The embodiments of the present application also provide an area processing apparatus, a computing device, and a computer-readable storage medium.

根据本申请实施例的第一方面,提供了一种区域处理方法,包括:According to a first aspect of the embodiments of the present application, an area processing method is provided, including:

响应于用户的选择指令确定至少两个待处理区域;determining at least two regions to be processed in response to a user's selection instruction;

在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息;Screening adjacent associated processing areas in at least two to-be-processed areas, and determining bounding box information according to the associated processing areas;

根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。A target object bounding box having a mapping relationship with the associated processing area is created according to the bounding box information.

可选地,所述响应于用户的选择指令确定至少两个待处理区域步骤执行之后,还包括:Optionally, after the step of determining at least two to-be-processed areas in response to a user's selection instruction is performed, the method further includes:

判断至少两个待处理区域是否存在位置相邻的关联处理区域;Judging whether at least two to-be-processed areas have adjacent associated processing areas;

若是,则执行所述在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息的步骤;If so, perform the steps of screening adjacent associated processing areas in the at least two to-be-processed areas, and determining bounding box information according to the associated processing areas;

若否,则为至少两个待处理区域中包含的每个待处理区域创建区域包围盒。If not, a region bounding box is created for each to-be-processed region contained in the at least two to-be-processed regions.

可选地,所述响应于用户的选择指令确定至少两个待处理区域,包括:Optionally, the determining at least two to-be-processed areas in response to a user's selection instruction includes:

在所述选择指令为区域增加指令的情况下,基于所述区域增加指令确定目标增加区域;In the case that the selection instruction is an area increase instruction, determining a target increase area based on the area increase instruction;

确定第一原始区域,并基于所述目标增加区域和所述第一原始区域确定至少两个待处理区域。A first original area is determined, and at least two to-be-processed areas are determined based on the target increase area and the first original area.

可选地,所述响应于用户的选择指令确定至少两个待处理区域,包括:Optionally, the determining at least two to-be-processed areas in response to a user's selection instruction includes:

在所述选择指令为区域删除指令的情况下,基于所述区域删除指令确定目标删除区域;In the case that the selection instruction is an area deletion instruction, determining a target deletion area based on the area deletion instruction;

确定第二原始区域,并在所述第二原始区域中剔除所述目标删除区域,获得至少两个待处理区域。A second original area is determined, and the target deletion area is eliminated from the second original area to obtain at least two to-be-processed areas.

可选地,所述根据所述关联处理区域确定包围盒信息,包括:Optionally, the determining the bounding box information according to the associated processing area includes:

根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域;Create a global mapping area and an associated mapping area according to the vertex information of the associated processing area;

对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域;Perform reconstruction processing on the global mapping area, and determine a target mapping area corresponding to the associated mapping area according to the reconstruction processing result;

基于所述目标映射区域和区域映射关系确定包围盒信息。The bounding box information is determined based on the target mapping area and the area mapping relationship.

可选地,所述根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域,包括:Optionally, the creating a global mapping area and an associated mapping area according to the vertex information of the association processing area includes:

根据所述关联处理区域的顶点信息创建映射坐标系;Create a mapping coordinate system according to the vertex information of the associated processing area;

在所述映射坐标系中确定所述关联处理区域对应的全局映射区域和关联映射区域。A global mapping area and an associated mapping area corresponding to the associated processing area are determined in the mapping coordinate system.

可选地,所述对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域,包括:Optionally, performing reconstruction processing on the global mapping area, and determining a target mapping area corresponding to the associated mapping area according to the reconstruction processing result, including:

基于所述映射坐标系,对所述全局映射区域进行分区处理,获得子映射区域;Based on the mapping coordinate system, partition processing is performed on the global mapping area to obtain a sub-mapping area;

基于所述子映射区域创建所述关联映射区域对应的目标映射区域。A target mapping area corresponding to the associated mapping area is created based on the sub-mapping area.

可选地,所述基于所述子映射区域创建所述关联映射区域对应的目标映射区域,包括:Optionally, creating a target mapping area corresponding to the associated mapping area based on the sub-mapping area includes:

在所述子映射区域中确定所述关联映射区域对应的第一组合映射区域;determining a first combined mapping region corresponding to the associated mapping region in the sub-mapping region;

根据所述映射坐标系确定第一组合横坐标和基准纵坐标,并基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域;Determine a first combined abscissa and a reference ordinate according to the mapping coordinate system, and determine a second combined mapping area corresponding to the associated mapping area based on the first combined abscissa and the reference ordinate;

根据所述映射坐标系确定第二组合横坐标和组合纵坐标,并基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域;Determine a second combined abscissa and a combined ordinate according to the mapping coordinate system, and determine a third combined mapping area corresponding to the associated mapping area based on the second combined abscissa and the combined ordinate;

根据所述第一组合映射区域、所述第二组合映射区域和所述第三组合映射区域确定待筛选组合映射区域;Determine the combined mapping area to be screened according to the first combined mapping area, the second combined mapping area and the third combined mapping area;

根据所述待筛选组合映射区域确定所述关联映射区域对应的目标映射区域。The target mapping area corresponding to the associated mapping area is determined according to the combined mapping area to be screened.

可选地,所述基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域,包括:Optionally, determining the second combined mapping area corresponding to the associated mapping area based on the first combined abscissa and the reference ordinate, comprising:

基于所述第一组合横坐标和所述基准纵坐标创建多个初始第二组合映射区域;creating a plurality of initial second combined mapping regions based on the first combined abscissa and the reference ordinate;

检测每个初始第二组合映射区域中包含的子初始第二组合映射区域与所述第一组合映射区域的区域包含关系;Detecting the region inclusion relationship between the sub-initial second combined mapping region contained in each initial second combined mapping region and the first combined mapping region;

根据区域包含关系检测结果确定第二组合映射区域。The second combined mapping region is determined according to the detection result of the region inclusion relationship.

可选地,所述基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域,包括:Optionally, determining the third combined mapping area corresponding to the associated mapping area based on the second combined abscissa and the combined vertical coordinate, comprising:

基于所述第二组合横坐标和所述组合纵坐标创建多个初始第三组合映射区域;creating a plurality of initial third combined mapping regions based on the second combined abscissa and the combined ordinate;

检测每个初始第三组合映射区域中包含的子初始第三组合映射区域与所述第一组合映射区域的区域包含关系;Detecting the region inclusion relationship between the sub-initial third combined mapping region contained in each initial third combined mapping region and the first combined mapping region;

根据区域包含关系检测结果确定第三组合映射区域。The third combined mapping region is determined according to the detection result of the region inclusion relationship.

根据本申请实施例的第二方面,提供了一种区域处理装置,包括:According to a second aspect of the embodiments of the present application, an area processing apparatus is provided, including:

选择模块,被配置为响应于用户的选择指令确定至少两个待处理区域;a selection module configured to determine at least two regions to be processed in response to a user's selection instruction;

确定模块,被配置为在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息;a determination module, configured to filter adjacent associated processing regions in at least two to-be-processed regions, and determine bounding box information according to the associated processing regions;

创建模块,被配置为根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。The creation module is configured to create a target object bounding box having a mapping relationship with the associated processing area according to the bounding box information.

根据本申请实施例的第三方面,提供了一种计算设备,包括:According to a third aspect of the embodiments of the present application, a computing device is provided, including:

存储器和处理器;memory and processor;

所述存储器用于存储计算机可执行指令,所述处理器执行所述计算机可执行指令时实现所述区域处理方法的步骤。The memory is used for storing computer-executable instructions, and when the processor executes the computer-executable instructions, the steps of the area processing method are implemented.

根据本申请实施例的第四方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述区域处理方法的步骤。According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, implements the steps of the area processing method.

根据本申请实施例的第五方面,提供了一种芯片,其存储有计算机程序,该计算机程序被芯片执行时实现所述区域处理方法的步骤。According to a fifth aspect of the embodiments of the present application, a chip is provided, which stores a computer program, and when the computer program is executed by the chip, implements the steps of the area processing method.

本申请提供的区域处理方法,通过响应于用户的选择指令确定至少两个待处理区域;在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据关联处理区域确定包围盒信息;根据包围盒信息创建与关联处理区域具有映射关系的目标对象包围盒,实现了创建位置相邻的关联处理区域之间的目标对象包围盒,从而可以实现在位置相邻的关联处理区域的对接位置处,根据用户需求随意摆放待布置资源,提高布置资源的多样性,并且可以提高目标对象包围盒的覆盖面积,同时减少目标对象包围盒的创建数量,降低资源的消耗。In the area processing method provided by the present application, at least two to-be-processed areas are determined in response to a user's selection instruction; adjacent associated processing areas are screened in the at least two to-be-processed areas, and bounding box information is determined according to the associated processing areas; The target object bounding box with the mapping relationship with the associated processing area is created according to the bounding box information, so as to realize the creation of the target object bounding box between the adjacent associated processing areas, so that the docking position of the adjacent associated processing areas can be realized. At the location, the resources to be arranged can be arbitrarily placed according to the user's needs, the diversity of the arrangement resources can be improved, and the coverage area of the bounding box of the target object can be increased, and the number of the bounding box of the target object can be reduced, and the consumption of resources can be reduced.

附图说明Description of drawings

图1是本申请一实施例提供的一种区域处理方法的流程图;FIG. 1 is a flowchart of an area processing method provided by an embodiment of the present application;

图2是本申请一实施例提供的第一种区域处理方法的示意图;2 is a schematic diagram of a first area processing method provided by an embodiment of the present application;

图3是本申请一实施例提供的第二种区域处理方法的示意图;3 is a schematic diagram of a second area processing method provided by an embodiment of the present application;

图4是本申请一实施例提供的第三种区域处理方法的示意图;4 is a schematic diagram of a third area processing method provided by an embodiment of the present application;

图5是本申请一实施例提供的一种应用于游戏场景的区域处理方法的处理流程图;FIG. 5 is a processing flow chart of an area processing method applied to a game scene provided by an embodiment of the present application;

图6是本申请一实施例提供的一种区域处理装置的结构示意图;FIG. 6 is a schematic structural diagram of an area processing apparatus provided by an embodiment of the present application;

图7是本申请一实施例提供的一种计算设备的结构框图。FIG. 7 is a structural block diagram of a computing device provided by an embodiment of the present application.

具体实施方式Detailed ways

在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of the present application is for the purpose of describing a particular embodiment only, and is not intended to limit the one or more embodiments of the present application. As used in one or more embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in one or more embodiments of this application refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。It should be understood that although the terms first, second, etc. may be used in one or more embodiments of the present application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first could be termed the second, and similarly the second could be termed the first, without departing from the scope of one or more embodiments of the present application.

在本申请中,提供了一种区域处理方法。本申请同时涉及一种区域处理装置、一种计算设备,以及一种计算机可读存储介质,在下面的实施例中逐一进行详细说明。In the present application, an area treatment method is provided. The present application also relates to an area processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

图1出了根据本申请一实施例提供的一种区域处理方法的流程图,具体包括以下步骤:FIG. 1 shows a flowchart of an area processing method provided according to an embodiment of the present application, which specifically includes the following steps:

步骤S102,响应于用户的选择指令确定至少两个待处理区域。Step S102, at least two to-be-processed areas are determined in response to a user's selection instruction.

具体的,选择指令是指与用户的选择操作对应的计算机命令,当接收到用户的选择指令后,向用户展示对应选择指令的选择结果,本实施例中选择指令包括区域增加指令和区域删除指令,例如,在游戏场景中,当需要对一块地区增加新的可操作区域时,可以通过提交区域增加指令,增加一块玩家可操作的区域,此时该指令即为解锁指令;当用户不再需要某一块地时,可以通过提交区域删除指令,删除选中的区域;待处理区域是指根据用户的选择指令确定的划定范围的区域,一个选择指令可以对应一个或多个待处理区域。Specifically, the selection instruction refers to a computer command corresponding to the user's selection operation. After receiving the user's selection instruction, the selection result corresponding to the selection instruction is displayed to the user. In this embodiment, the selection instruction includes an area addition instruction and an area deletion instruction , for example, in the game scene, when a new operable area needs to be added to an area, you can add an area addition instruction by submitting an area addition instruction to add an area that the player can operate. At this time, the instruction is the unlock instruction; when the user no longer needs When there is a certain piece of land, the selected area can be deleted by submitting an area deletion instruction; the pending area refers to the delimited area determined according to the user's selection instruction, and a selection instruction can correspond to one or more pending areas.

基于此,当用户确定了待处理区域后,即可基于用户确定的待处理区域向计算机提交选择指令,计算机响应于用户的选择指令,将待处理区域展示给用户。用户可以针对一个待处理区域向计算机提交一个选择指令,此时则确定了一个待处理区域,当用户针对至少两个待处理区域向计算机提交了一个选择指令后,则确定了至少两个待处理区域。Based on this, after the user determines the to-be-processed area, a selection instruction can be submitted to the computer based on the to-be-processed area determined by the user, and the computer displays the to-be-processed area to the user in response to the user's selection instruction. The user can submit a selection instruction to the computer for one to-be-processed area, and at this time, one to-be-processed area is determined. After the user submits a selection instruction to the computer for at least two to-be-processed areas, at least two to-be-processed areas are determined. area.

进一步的,在接收到用户的选择指令后,由于选择指令可能是用于在原始区域的基础上,增加一个或多个区域,因此需要在选择指令为区域增加指令的情况下确定包含历史区域的至少两个待处理区域,具体实现如下:Further, after receiving the user's selection instruction, since the selection instruction may be used to add one or more areas on the basis of the original area, it is necessary to determine if the selection instruction is an area addition instruction. At least two areas to be processed, the specific implementation is as follows:

在所述选择指令为区域增加指令的情况下,基于所述区域增加指令确定目标增加区域;确定第一原始区域,并基于所述目标增加区域和所述第一原始区域确定至少两个待处理区域。If the selection instruction is an area increase instruction, determine a target increase area based on the area increase instruction; determine a first original area, and determine at least two to-be-processed areas based on the target increase area and the first original area area.

具体的,第一原始区域是指在接收到用户的选择指令前确定的划定范围的区域;区域增加指令是指用户基于第一原始区域确定了将要选择的区域后,对此区域进行选择操作,由客户端提交的计算机命令,用于在第一原始区域的基础上增加新的区域,其中新的区域即为目标增加区域。Specifically, the first original area refers to a demarcated area determined before receiving the user's selection instruction; the area addition instruction means that after the user determines the area to be selected based on the first original area, the user performs a selection operation on this area , the computer command submitted by the client is used to add a new area on the basis of the first original area, wherein the new area is the target addition area.

基于此,在确定了用户的选择指令为区域增加指令后,对区域增加指令进行解析,确定与区域增加指令对应的目标增加区域,读取第一原始区域信息确定第一原始区域,将第一原始区域中包含的每个子区域和目标增加区域作为待处理区域,得到至少两个待处理区域,需要说明的是,与用户的区域增加指令对应的目标增加区域为至少一个,即区域增加指令可以对应一个目标增加区域,也可以对应多个目标增加区域。Based on this, after it is determined that the user's selection instruction is an area addition instruction, the area addition instruction is parsed, the target addition area corresponding to the area addition instruction is determined, the first original area information is read to determine the first original area, and the first original area is determined by reading the first original area information. Each sub-area and target increase area included in the original area are used as the area to be processed, and at least two areas to be processed are obtained. It should be noted that the target increase area corresponding to the user's area increase command is at least one, that is, the area increase command can be Corresponding to one target increase area, it can also correspond to multiple target increase areas.

综上所述,通过响应于用户的区域增加指令,实现了根据用户的需求,灵活的增加区域,从而确定待处理区域,提高了用户体验。To sum up, by responding to the user's area increase instruction, it is possible to flexibly increase the area according to the user's needs, thereby determining the to-be-processed area and improving the user experience.

进一步的,在接收到用户的选择指令后,由于选择指令可能是用于在原始区域的基础上,删除一个或多个区域,因此需要在选择指令为区域删除指令的情况下确定包含历史区域的至少两个待处理区域,具体实现如下:Further, after receiving the user's selection instruction, since the selection instruction may be used to delete one or more areas on the basis of the original area, it is necessary to determine the area containing the historical area when the selection instruction is an area deletion instruction. At least two areas to be processed, the specific implementation is as follows:

在所述选择指令为区域删除指令的情况下,基于所述区域删除指令确定目标删除区域;确定第二原始区域,并在所述第二原始区域中剔除所述目标删除区域,获得至少两个待处理区域。When the selection instruction is an area deletion instruction, determine a target deletion area based on the area deletion instruction; determine a second original area, and remove the target deletion area from the second original area, and obtain at least two pending area.

具体的,第二原始区域是指在接收到用户的选择指令前确定的划定范围的区域,第一原始区域和第二原始区域划定的范围可以相同也可以不同,其中,第一原始区域可以包含第二原始区域,第二原始区域也可以包含第一原始区域,或者第一原始区域和第二原始区域存在共有的子区域;用户基于第二原始区域确定了将要删除的区域后,对此区域进行选择操作,由客户端提交的计算机命令,用于在第二原始区域的基础上删除选择的区域,其中选择的区域即为目标删除区域。Specifically, the second original area refers to a delimited area determined before receiving the user's selection instruction, and the ranges delimited by the first original area and the second original area may be the same or different, wherein the first original area It can include the second original area, the second original area can also include the first original area, or the first original area and the second original area have sub-areas in common; after the user determines the area to be deleted based on the second original area, This area is selected, and the computer command submitted by the client is used to delete the selected area on the basis of the second original area, and the selected area is the target deletion area.

基于此,在确定了用户的选择指令为区域删除指令后,对区域删除指令进行解析,确定与区域删除指令对应的目标删除区域,读取第二原始区域信息确定第二原始区域,将第二原始区域中包含的每个子区域和目标删除区域作为待处理区域,得到至少两个待处理区域,需要说明的是,与用户的区域删除指令对应的目标删除区域为至少一个,即区域删除指令可以对应一个目标删除区域,也可以对应多个目标删除区域。Based on this, after it is determined that the user's selection instruction is an area deletion instruction, the area deletion instruction is parsed, the target deletion area corresponding to the area deletion instruction is determined, the second original area information is read to determine the second original area, and the second original area is determined. Each sub-area and target deletion area included in the original area are used as the area to be processed, and at least two areas to be processed are obtained. It should be noted that the target deletion area corresponding to the user's area deletion instruction is at least one, that is, the area deletion instruction can be It corresponds to one target deletion area, and may also correspond to multiple target deletion areas.

实际应用中,用户可以分别针对选定的一个区域提交区域删除指令和区域增加指令,也可以针对选定的多个区域提交区域删除指令和区域增加指令,本实施例对此不作任何限定。In practical applications, the user may submit an area deletion instruction and an area addition instruction respectively for a selected area, or submit an area deletion instruction and an area addition instruction for a plurality of selected areas, which is not limited in this embodiment.

本实施例提供的区域处理方法可以应用于游戏场景、虚拟现实场景等,为方便描述,本实施例以游戏场景为例进行说明,其他场景下的描述均可参见本实施例相同或相应的描述内容,在此不作过多赘述。The area processing method provided in this embodiment can be applied to game scenes, virtual reality scenes, etc. For the convenience of description, this embodiment takes a game scene as an example for description, and the descriptions in other scenarios can refer to the same or corresponding descriptions in this embodiment The content will not be repeated here.

举例说明,在JS游戏中,当游戏用户需要进行地块扩展时,则需要响应于游戏用户的选择指令扩展相应的地块,满足游戏用户的游玩需求。基于此,如图2中(a)所示,图2中(a)示出了①-⑦共7个区域。当前区域状态如图2中(b)所示,游戏用户已经将区域③、区域⑤和区域⑦解锁,其他区域均未解锁。游戏用户可以针对图2中(b)所示的未解锁区域①、②、④、⑥继续进行解锁操作,也可以对区域③、区域⑤和区域⑦进行复原操作。当游戏用户对区域④进行解锁操作时,即得到了如图2中(c)所示的区域解锁情况,则区域③、④、⑤、⑦均为待处理区域;当游戏用户针对区域③提交了复原指令后,则对区域③进行复原操作,得到了如图2中(d)所示的区域复原情况,则区域⑤和区域⑦均为待处理区域,后续则基于确定的待处理区域继续进行处理。For example, in a JS game, when a game user needs to expand a plot, it is necessary to expand the corresponding plot in response to the game user's selection instruction to meet the game user's play requirements. Based on this, as shown in Fig. 2(a), Fig. 2(a) shows a total of 7 regions ①-⑦. The current area status is shown in (b) in Figure 2. The game user has unlocked area ③, area ⑤, and area ⑦, and other areas have not been unlocked. The game user can continue to unlock the unlocked areas ①, ②, ④, and ⑥ shown in (b) in Figure 2, and can also perform recovery operations on areas ③, ⑤, and ⑦. When the game user unlocks the area ④, the area unlocked as shown in (c) in Figure 2 is obtained, then the areas ③, ④, ⑤, and ⑦ are all areas to be processed; when the game user submits the area ③ After the restoration instruction is received, the restoration operation is performed on the area ③, and the restoration situation of the area shown in (d) in Figure 2 is obtained, then the area ⑤ and the area ⑦ are both areas to be processed, and the follow-up will continue based on the determined area to be processed. to be processed.

综上所述,通过响应于用户的区域删除指令,实现了根据用户的需求,灵活的删除区域,从而确定待处理区域,提高了用户体验。To sum up, by responding to the user's area deletion instruction, it is possible to flexibly delete the area according to the user's needs, thereby determining the to-be-processed area and improving the user experience.

步骤S104,在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息。Step S104: Screen adjacent associated processing areas in the at least two to-be-processed areas, and determine bounding box information according to the associated processing areas.

具体的,在上述基于用户的选择指令确定了至少两个待处理区域后,只有具有位置相邻关系的至少两个待处理区域,才能被称为关联处理区域,从而确定其包围盒信息,其中,位置相邻是指两个待处理区域在空间位置上具有邻接关系,例如长方形A,用一条直线L将长方形A划分为两个四边形区域,则划分得到的区域a和区域b即为位置相邻的两个区域;区域a和区域b即为关联处理区域;包围盒是指由长方形A的四条边构成的矩形框,包围盒信息是指矩形框对应的长度、位置等信息。Specifically, after the at least two to-be-processed areas are determined based on the user's selection instruction, only at least two to-be-processed areas with adjacent positions can be called associative processing areas, so as to determine their bounding box information, wherein , Adjacent position means that the two regions to be processed have an adjacency relationship in spatial position, such as a rectangle A, and a straight line L is used to divide the rectangle A into two quadrilateral regions, then the divided region a and region b are the same in position. The two adjacent areas; area a and area b are associated processing areas; the bounding box refers to the rectangular frame formed by the four sides of the rectangle A, and the bounding box information refers to the corresponding length, position and other information of the rectangular frame.

基于此,在基于用户的选择指令确定了至少两个待处理区域后,在至少两个待处理区域中筛选位置相邻的至少两个待处理区域作为关联处理区域,根据关联处理区域确定包围盒信息。在确定了两个关联处理区域后,先确定每个关联处理区域对应的包围盒信息,在基于两个关联处理区域确定对应两个关联处理区域对应的包围盒信息。Based on this, after at least two to-be-processed areas are determined based on the user's selection instruction, at least two adjacent to-be-processed areas are selected from the at least two to-be-processed areas as associated processing areas, and a bounding box is determined according to the associated processing areas information. After the two associated processing areas are determined, first determine the bounding box information corresponding to each associated processing area, and then determine the bounding box information corresponding to the two associated processing areas based on the two associated processing areas.

此外,当接收到用户的选择指令后,由于选择指令包括区域增加指令,还包括区域删除指令,因此确定的至少两个待处理区域中可能存在位置相邻的两个或多个待处理区域,也可能不存在位置相邻的待处理区域,相应的,包围盒信息或区域包围盒的确定方法也不同,具体实现如下:In addition, after receiving the user's selection instruction, since the selection instruction includes an area addition instruction and an area deletion instruction, there may be two or more adjacent to-be-processed areas in the determined at least two to-be-processed areas, There may also be no adjacent areas to be processed. Correspondingly, the method for determining the bounding box information or the bounding box of the area is also different. The specific implementation is as follows:

判断至少两个待处理区域是否存在位置相邻的关联处理区域;若是,则执行所述在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息的步骤;若否,则为至少两个待处理区域中包含的每个待处理区域创建区域包围盒。Determine whether there are adjacent associated processing areas in the at least two to-be-processed areas; if so, perform the screening of adjacent associated processing areas in the at least two to-be-processed areas, and determine a bounding box according to the associated processing areas information; if not, create a region bounding box for each to-be-processed region contained in the at least two to-be-processed regions.

具体的,区域包围盒是指针对不存在位置相邻关系的待处理区域,以待处理区域的区域范围为基础创建的矩形框,例如,当待处理区域是长为x宽为y构成的矩形区域时,区域包围盒则是该矩形区域。Specifically, the area bounding box refers to a rectangular frame created based on the area range of the to-be-processed area for the to-be-processed area that does not have a positional adjacent relationship. For example, when the to-be-processed area is a rectangle composed of length x and width y area, the area bounding box is the rectangular area.

基于此,在确定了至少两个待处理区域后,判断至少两个待处理区域中包含的任意两个待处理区域之间是否存在位置相邻关系,若存在,则在至少两个待处理区域中筛选位置相邻的至少两个待处理区域作为关联处理区域,根据关联处理区域确定包围盒信息。若不存在,则为至少两个待处理区域中包含的所有待处理区域均创建对应的区域包围盒。Based on this, after the at least two to-be-processed areas are determined, it is determined whether there is a positional adjacent relationship between any two to-be-processed areas included in the at least two to-be-processed areas. At least two to-be-processed regions adjacent to the screening positions are used as associated processing regions, and bounding box information is determined according to the associated processing regions. If it does not exist, create corresponding area bounding boxes for all the to-be-processed areas included in the at least two to-be-processed areas.

沿用上例,如图3中(a)所示,当游戏用户解锁的区域为区域②和区域③时,由于区域②和区域③具有位置相邻关系,为了能够跨区域摆放物品,则需要确定与区域②和区域③对应的包围盒信息从而确定跨区域的包围盒,此包围盒信息要实现跨区域②和区域③,如图3中(b)所示的A区域信息和B区域信息即为对应区域②和区域③的包围盒信息;如图3中(c)所示,当游戏用户解锁的区域为区域②和区域④时,由于区域②和区域④不具有位置相邻关系,则分别确定与区域②和区域④对应的区域包围盒,如图3中(d)所示,即与区域②对应的C区域为一个包围盒,与区域④对应的D区域为一个包围盒。Following the above example, as shown in (a) in Figure 3, when the areas unlocked by the game user are area ② and area ③, since area ② and area ③ have a positional relationship, in order to place items across areas, you need to Determine the bounding box information corresponding to area ② and area ③ to determine the bounding box across the area. This bounding box information needs to realize the cross area ② and area ③, as shown in (b) in Figure 3. A area information and B area information That is, the bounding box information corresponding to area ② and area ③; as shown in (c) in Figure 3, when the area unlocked by the game user is area ② and area ④, since area ② and area ④ do not have a positional adjacent relationship, Then determine the area bounding boxes corresponding to area ② and area ④ respectively, as shown in (d) in Figure 3, that is, the area C corresponding to area ② is a bounding box, and the area D corresponding to area ④ is a bounding box.

综上所述,在待处理区域中存在位置相邻的待处理区域时,确定与待处理区域对应的包围盒信息,在待处理区域中不存在位置相邻的待处理区域时,分别确定待处理区域的区域包围盒,实现了快速的基于用户的选择指令确定对应的包围盒信息或区域包围盒,提高了用户的体验。To sum up, when there is an adjacent to-be-processed area in the to-be-processed area, the bounding box information corresponding to the to-be-processed area is determined, and when there is no adjacent to-be-processed area in the to-be-processed area, the The area bounding box of the processing area realizes the rapid determination of the corresponding bounding box information or the area bounding box based on the user's selection instruction, which improves the user experience.

进一步的,在至少两个待处理区域中筛选出位置相邻的关联处理区域后,由于得到的关联处理区域可能为两个,也可能为多个,为了实现更准确的确定与关联处理区域对应的包围盒信息,还需要确定关联处理区域对应的全局映射区域并对其进行重构处理,具体实现如下:Further, after screening out the adjacent association processing areas in the at least two to-be-processed areas, since the obtained association processing areas may be two or more, in order to achieve a more accurate determination of the corresponding association processing areas It is also necessary to determine the global mapping area corresponding to the associated processing area and reconstruct it. The specific implementation is as follows:

步骤S1042,根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域;Step S1042, creating a global mapping area and an associated mapping area according to the vertex information of the association processing area;

具体的,顶点是指平面空间或立体空间中可以用坐标系中的坐标表示的一个点,在多边形或多面体中,角即为顶点,顶点信息则是指与角对应的位置等坐标信息,若以多边形的一条边为横轴构建直角坐标系,那么多边形的角对应的坐标信息即为顶点信息;全局映射区域是指由关联处理区域的每个顶点进行离散化处理,构成的新的四边形区域;关联映射区域是指由关联处理区域的每个顶点组成的区域,即多个关联处理区域组成的新的多边形区域;Specifically, a vertex refers to a point in a plane space or a three-dimensional space that can be represented by coordinates in a coordinate system. In a polygon or polyhedron, an angle is a vertex, and vertex information refers to coordinate information such as the position corresponding to the angle. A rectangular coordinate system is constructed with one side of the polygon as the horizontal axis, then the coordinate information corresponding to the corners of the polygon is the vertex information; the global mapping area refers to a new quadrilateral area formed by discretizing each vertex of the associated processing area ;Associative mapping area refers to the area composed of each vertex of the associated processing area, that is, a new polygonal area composed of multiple associated processing areas;

基于此,在至少两个待处理区域中筛选位置相邻的至少两个待处理区域作为关联处理区域,得到至少两个关联处理区域,分别确定具有位置相邻关系的每个关联处理区域的顶点信息,由多个顶点信息可以组成与关联处理区域对应的关联映射区域,对多个顶点进行离散化处理构成了全局映射区域。Based on this, at least two adjacent to-be-processed areas are screened among the at least two to-be-processed areas as associated processing areas, at least two associated processing areas are obtained, and the vertices of each associated processing area with a positional adjacent relationship are determined respectively. information, an association mapping area corresponding to the association processing area can be formed from a plurality of vertex information, and a global mapping area is formed by discretizing multiple vertices.

进一步的,考虑到关联处理区域为至少两个,其对应的顶点信息则存在多个,为了便于表示和确定关联处理区域对应的全局映射区域和关联映射区域,从而将顶点信息映射到坐标系中,构成映射坐标系,具体实现如下:Further, considering that there are at least two associated processing areas, and there are multiple corresponding vertex information, in order to facilitate the representation and determination of the global mapping area and the associated mapping area corresponding to the associated processing area, the vertex information is mapped to the coordinate system. , forming a mapping coordinate system, the specific implementation is as follows:

根据所述关联处理区域的顶点信息创建映射坐标系;在所述映射坐标系中确定所述关联处理区域对应的全局映射区域和关联映射区域。A mapping coordinate system is created according to the vertex information of the association processing area; the global mapping area and the association mapping area corresponding to the association processing area are determined in the mapping coordinate system.

具体的,映射坐标系是指与关联处理区域对应的,由关联处理区域的所有顶点映射而成的直角坐标系,在本实施例中以二维直角坐标系为例,规定了x轴和y轴的正方向,由于关联处理区域可能为长宽不等的矩形区域,以每个由顶点映射到x轴和y轴构成的线段为单位长度,构成了单位长度不等的直角坐标系。Specifically, the mapping coordinate system refers to a rectangular coordinate system corresponding to the associated processing area and mapped from all vertices of the associated processing area. In this embodiment, a two-dimensional rectangular coordinate system is taken as an example, and the x-axis and the y-axis are specified. In the positive direction of the axis, since the associated processing area may be a rectangular area with unequal length and width, the unit length of each line segment formed by mapping the vertices to the x-axis and the y-axis constitutes a Cartesian coordinate system with unequal unit lengths.

基于此,将关联处理区域的顶点信息映射到直角坐标系中,根据关联处理区域的顶点信息创建与关联处理区域对应的映射坐标系,关联处理区域在映射坐标系中所占的区域即为关联映射区域,映射坐标系所对应的区域即为全局映射区域,全局映射区域包含关联映射区域。Based on this, the vertex information of the association processing area is mapped to the rectangular coordinate system, and the mapping coordinate system corresponding to the association processing area is created according to the vertex information of the association processing area. The area occupied by the association processing area in the mapping coordinate system is the association The mapping area, the area corresponding to the mapping coordinate system is the global mapping area, and the global mapping area includes the associated mapping area.

沿用上例,如图4中(a)所示,当游戏用户解锁的区域为区域③、区域⑤和区域⑦时,将每个区域的顶点映射到坐标系中,得到图4中(b)所示的平面直角坐标系,坐标系中,由区域1-12组成了全局映射区域,区域1、2、4、5共同组成了区域⑦,区域8和11共同组成了区域③,区域6和9共同组成了区域⑤,则区域1、2、4、5,区域8和11,区域6和9分别为区域⑦,区域⑤,区域③对应的映射区域。Following the above example, as shown in (a) in Figure 4, when the areas unlocked by the game user are area ③, area ⑤, and area ⑦, the vertices of each area are mapped to the coordinate system to obtain (b) in Figure 4 In the plane rectangular coordinate system shown, in the coordinate system, regions 1-12 constitute the global mapping region, regions 1, 2, 4, and 5 together constitute region ⑦, regions 8 and 11 together constitute region ③, regions 6 and 9 together form area ⑤, then areas 1, 2, 4, 5, areas 8 and 11, and areas 6 and 9 are respectively the mapping areas corresponding to area ⑦, area ⑤, and area ③.

综上所述,基于关联处理区域对应的顶点信息创建映射坐标系,能够更直观的表示出关联映射区域在映射坐标系中的位置,提高目标映射区域的确定效率以及准确性。To sum up, creating a mapping coordinate system based on the vertex information corresponding to the association processing area can more intuitively represent the position of the association mapping area in the mapping coordinate system, and improve the efficiency and accuracy of determining the target mapping area.

步骤S1044,对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域;Step S1044, performing reconstruction processing on the global mapping area, and determining a target mapping area corresponding to the associated mapping area according to the reconstruction processing result;

具体的,重构处理是指将全局映射区域基于其对应的顶点信息将其拆分成多个子区域,再将多个子区域中的至少两个进行组合,得到多种组合结果的处理方法,得到的多种组合结果即为重构处理结果;目标映射区域是指从多种组合结果中筛选出来的与关联映射区域对应的区域,目标映射区域为一个或多个;Specifically, the reconstruction processing refers to the processing method of dividing the global mapping area into multiple sub-areas based on its corresponding vertex information, and then combining at least two of the multiple sub-areas to obtain multiple combination results, and obtaining The multiple combination results of , are the reconstruction processing results; the target mapping area refers to the area corresponding to the associated mapping area selected from the multiple combination results, and the target mapping area is one or more;

基于此,根据关联处理区域的顶点信息创建全局映射区域,并基于关联处理区域的所有顶点信息对全局映射区域进行重构处理,得到与全局映射区域对应的,由顶点构成的多个子区域,再将多个子区域进行重新组合,得到重构处理结果,即多个由数量不等的子区域组成的组合区域,在多个组合区域中进行选择,确定与关联处理区域对应的目标映射区域,Based on this, a global mapping area is created according to the vertex information of the associated processing area, and the global mapping area is reconstructed based on all the vertex information of the associated processing area to obtain multiple sub-areas composed of vertices corresponding to the global mapping area, and then Recombine the multiple sub-regions to obtain the reconstruction processing result, that is, multiple combined regions composed of sub-regions with different numbers, select from the multiple combined regions, and determine the target mapping region corresponding to the associated processing region,

进一步的,根据关联处理区域的顶点信息创建了映射坐标系后,关联映射区域即可由映射坐标系中横纵坐标组成的一个或多个子映射区域表示,相应的根据一个或多个子映射区域即可创建目标映射区域,具体实现如下:Further, after the mapping coordinate system is created according to the vertex information of the associated processing area, the associated mapping area can be represented by one or more sub-mapping areas composed of horizontal and vertical coordinates in the mapping coordinate system, and correspondingly, the one or more sub-mapping areas can be represented. Create a target mapping area, the specific implementation is as follows:

基于所述映射坐标系,对所述全局映射区域进行分区处理,获得子映射区域;基于所述子映射区域创建所述关联映射区域对应的目标映射区域。Based on the mapping coordinate system, partition processing is performed on the global mapping area to obtain a sub-mapping area; and a target mapping area corresponding to the associated mapping area is created based on the sub-mapping area.

具体的,分区处理是指基于全局映射区域对应的顶点信息创建的映射坐标系将全局映射区域拆分成多个小区域,每个小区域均为全局映射区域包含的子映射区域,将多个子映射区域中的至少两个进行组合,得到多种组合结果,从多种组合结果中筛选出来的与关联映射区域对应的区域,即为目标映射区域,目标映射区域可以为一个或多个。Specifically, partition processing refers to dividing the global mapping area into a plurality of small areas based on the mapping coordinate system created by the vertex information corresponding to the global mapping area, and each small area is a sub-mapping area included in the global mapping area. At least two of the mapping areas are combined to obtain multiple combination results, and the area corresponding to the associated mapping area selected from the multiple combination results is the target mapping area, and there may be one or more target mapping areas.

基于此,根据由关联处理区域的顶点信息创建的映射坐标系确定全局映射区域,并基于映射坐标系中的所有顶点信息对全局映射区域进行分区处理,得到与全局映射区域对应的多个子映射区域,再将多个子映射区域进行重新组合,得到多种组合结果,即多个由数量不等的子映射区域组成的组合区域,在多个组合区域中进行选择,确定与关联处理区域对应的一个或多个目标映射区域。Based on this, the global mapping area is determined according to the mapping coordinate system created by the vertex information of the associated processing area, and the global mapping area is partitioned based on all vertex information in the mapping coordinate system to obtain multiple sub-mapping areas corresponding to the global mapping area. , and then recombine multiple sub-mapping areas to obtain multiple combination results, that is, multiple combination areas composed of sub-map areas with different numbers, select from multiple combination areas, and determine the one corresponding to the associated processing area. or multiple target mapped regions.

沿用上例,如图4中(b)所示,游戏用户在坐标系中分别确定了区域③、区域⑤和区域⑦组成的映射区域,再对坐标系中由区域1-区域12构成全局区域进行拆分和组合,得到区域1、区域1和2······区域11和12等60种区域组成方式,判断每种区域组成方式对应的区域是否都被映射区域所包含,再从被包含的区域中筛选出目标区域得到如图4中(c)-(f)所示的区域H、区域J、区域K和区域L。Following the above example, as shown in (b) in Figure 4, the game user determines the mapping area composed of area ③, area ⑤ and area ⑦ in the coordinate system, and then the global area is composed of area 1-area 12 in the coordinate system. Divide and combine to obtain 60 area composition methods such as area 1, area 1 and 2...area 11 and 12, determine whether the area corresponding to each area composition method is included in the mapped area, and then from the The target area is filtered out of the included areas to obtain the area H, area J, area K and area L as shown in (c)-(f) in FIG. 4 .

综上所述,通过对映射坐标系中全局映射区域进行分区处理,确定由子映射区域构成的目标映射区域,实现了灵活的对子映射区域进行组合,从多种组合结果中筛选目标映射区域,从而提高了确定目标映射区域的准确性。To sum up, by partitioning the global mapping area in the mapping coordinate system, the target mapping area composed of sub-mapping areas is determined, and the sub-mapping area can be flexibly combined, and the target mapping area can be selected from various combination results. Thus, the accuracy of determining the target mapping area is improved.

步骤S1046,基于所述目标映射区域和区域映射关系确定包围盒信息。Step S1046, determining bounding box information based on the target mapping area and the area mapping relationship.

具体的,区域映射关系是指关联映射区域和关联处理区域之间的映射关系,将确定的关联处理区域映射到映射坐标系中,即可得到关联映射区域;包围盒信息是指目标映射区域对应的区域信息,包括区域的大小,位置等信息。Specifically, the area mapping relationship refers to the mapping relationship between the association mapping area and the association processing area. The association mapping area can be obtained by mapping the determined association processing area to the mapping coordinate system; the bounding box information refers to the corresponding target mapping area. area information, including the size, location and other information of the area.

基于此,在映射坐标系中确定对应关联处理区域的目标映射区域,根据关联映射区域和关联处理区域之间的映射关系,在映射坐标系中确定目标映射区域对应的包围盒信息。Based on this, the target mapping area corresponding to the associated processing area is determined in the mapping coordinate system, and the bounding box information corresponding to the target mapping area is determined in the mapping coordinate system according to the mapping relationship between the associated mapping area and the associated processing area.

进一步的,考虑到由映射坐标系确定的子映射区域数量较多,再对多个子映射区域进行组合,可以将多个子映射区域中的任意两个进行组合,也可以将子映射区域中的任意三个进行组合,则会实现多种组合方式,从而有序的对多个子映射区域进行组合,具体实现如下:Further, considering that the number of sub-mapping regions determined by the mapping coordinate system is large, and then combining multiple sub-mapping regions, any two of the multiple sub-mapping regions can be combined, or any sub-mapping region can be combined. If the three are combined, a variety of combination methods will be implemented, so that multiple sub-mapping areas can be combined in an orderly manner. The specific implementation is as follows:

在所述子映射区域中确定所述关联映射区域对应的第一组合映射区域;根据所述映射坐标系确定第一组合横坐标和基准纵坐标,并基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域;根据所述映射坐标系确定第二组合横坐标和组合纵坐标,并基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域;根据所述第一组合映射区域、所述第二组合映射区域和所述第三组合映射区域确定待筛选组合映射区域;根据所述待筛选组合映射区域确定所述关联映射区域对应的目标映射区域。determining a first combined mapping area corresponding to the associated mapping area in the sub-mapping area; determining a first combined abscissa and a reference ordinate according to the mapping coordinate system, and based on the first combined abscissa and the The reference ordinate is to determine the second combined mapping area corresponding to the associated mapping area; the second combined abscissa and the combined vertical coordinate are determined according to the mapping coordinate system, and based on the second combined abscissa and the combined vertical coordinate , determine the third combined mapping area corresponding to the associated mapping area; determine the combined mapping area to be screened according to the first combined mapping area, the second combined mapping area and the third combined mapping area; The combined mapping area is filtered to determine the target mapping area corresponding to the associated mapping area.

具体的,第一组合映射区域是指子映射区域中被关联映射区域包含的子映射区域;第一组合横坐标是指由坐标系中至少两个相邻的横坐标组成的坐标;基准纵坐标是指坐标系中的每个纵坐标;第二组合映射区域是指第一组合横坐标和基准纵坐标确定的映射坐标系中的多个区域中,被关联映射区域包含的区域;第二组合横坐标包含映射坐标系中每个横坐标,以及坐标系中至少两个相邻的横坐标组成的坐标;组合纵坐标是指由坐标系中至少两个相邻的纵坐标组成的坐标;第三组合映射区域是指第二组合横坐标和组合纵坐标确定的映射坐标系中的多个区域中,被关联映射区域包含的区域;待筛选组合映射区域包含第一组合映射区域、第二组合映射区域和第三组合映射区域。Specifically, the first combined mapping area refers to the sub-mapping area included in the associated mapping area in the sub-mapping area; the first combined abscissa refers to a coordinate composed of at least two adjacent abscissas in the coordinate system; the reference ordinate Refers to each ordinate in the coordinate system; the second combined mapping area refers to the area contained in the associated mapping area among the multiple areas in the mapping coordinate system determined by the first combined abscissa and the reference ordinate; the second combination The abscissa includes each abscissa in the mapping coordinate system and the coordinate composed of at least two adjacent abscissas in the coordinate system; the combined ordinate refers to the coordinate composed of at least two adjacent ordinates in the coordinate system; The three-combination mapping area refers to the area contained in the associated mapping area among the multiple areas in the mapping coordinate system determined by the second combination abscissa and the combined ordinate; the combination mapping area to be screened includes the first combination mapping area, the second combination A mapping area and a third combined mapping area.

基于此,在映射坐标系对应的多个子映射区域中确定与关联映射区域对应的第一组合映射区域。确定映射坐标系中由横坐标组成的第一组合横坐标和基准纵坐标,并基于第一组合横坐标和基准纵坐标确定所有的区域组合方式,并确定对应的组合区域,在多个组合区域中筛选与关联映射区域对应的第二组合映射区域。确定映射坐标系中由横坐标组成的第二组合横坐标,以及由纵坐标组成的组合纵坐标,并基于第二组合横坐标和组合纵坐标确定所有的区域组合方式,并确定对应的组合区域,在多个组合区域中筛选与关联映射区域对应的第三组合映射区域。第一组合映射区域,第二组合映射区域和第三组合映射区域组成了待筛选组合映射区域,在待筛选组合映射区域中筛选与关联映射区域对应的目标映射区域。Based on this, a first combined mapping area corresponding to the associated mapping area is determined among the multiple sub-mapping areas corresponding to the mapping coordinate system. Determine the first combined abscissa and the reference ordinate composed of the abscissa in the mapping coordinate system, and determine all the area combination methods based on the first combined abscissa and the reference ordinate, and determine the corresponding combination area. The second combined mapping area corresponding to the associated mapping area is filtered in the middle. Determine the second combined abscissa composed of the abscissa and the combined ordinate composed of the ordinate in the mapping coordinate system, and determine all the area combinations based on the second combined abscissa and the combined ordinate, and determine the corresponding combined area , and selects a third combined mapping area corresponding to the associated mapping area among the multiple combined areas. The first combined mapping area, the second combined mapping area and the third combined mapping area constitute the combined mapping area to be screened, and the target mapping area corresponding to the associated mapping area is screened in the combined mapping area to be screened.

在对待筛选组合映射区域进行筛选时,由于待筛选组合映射区域数量较多,可以对多个待筛选组合映射区域进行排序,分别判断待筛选组合映射区域之间的包含关系,从而筛选出目标映射区域。When screening the combined mapping areas to be screened, due to the large number of combined mapping areas to be screened, multiple combined mapping areas to be screened can be sorted, and the inclusion relationship between the combined mapping areas to be screened can be judged separately, so as to filter out the target mapping. area.

此外,在确定了子映射区域后,还可以对子映射区域进行组合处理,获得两个或多个组合映射区域,判断组合映射区域中包含的每个子组合映射区域是否被第一组合映射区域包含,若是,则将组合映射区域作为目标映射区域。In addition, after the sub-mapping area is determined, the sub-mapping area can also be combined to obtain two or more combined mapping areas, and it is determined whether each sub-combined mapping area included in the combined mapping area is included in the first combined mapping area. , and if so, use the combined mapping area as the target mapping area.

实际应用中,如图4中(b)所示,在坐标系中确定了区域1-区域2这12个小区域后,对这12个小区域中相邻的两个或多个小区域进行组合,得到区域1和区域2组成的组合区域······区域10和区域11组成的组合区域等48个组合区域,判断每个组合区域包含的每个小区域是否被区域③或区域⑤或区域⑦对应的小区域所包含,若是,则当前的组合区域即为目标区域,即如图4中(c)-(f)所示的区域H、区域J、区域K和区域L。In practical applications, as shown in (b) in Figure 4, after the 12 small areas of area 1 to area 2 are determined in the coordinate system, two or more adjacent small areas in these 12 small areas are determined. Combining, get the combined area composed of area 1 and area 2... 48 combined areas such as the combined area composed of area 10 and area 11, and determine whether each small area included in each combined area is covered by area ③ or area ⑤ or the small area corresponding to area ⑦ is included, if so, the current combined area is the target area, that is, area H, area J, area K and area L as shown in (c)-(f) in Figure 4.

综上所述,通过有序的对多个子映射区域进行组合,从而确定待筛选组合映射区域,提高了待筛选组合映射区域的效率,通过对待筛选组合映射区域依次进行筛选,从而提高了确定目标映射区域的准确性。To sum up, by orderly combining multiple sub-mapping areas to determine the combined mapping area to be screened, the efficiency of the combined mapping area to be screened is improved. The accuracy of the mapped area.

进一步的,考虑到第一组合横坐标和基准纵坐标确定的组合区域的数量较多,且并不是所有组合区域均能够作为第二组合映射区域,因此还需要对多种组合区域进行比较和筛选,才能得到第二组合映射区域,具体实现如下:Further, considering that the number of combination areas determined by the first combination abscissa and the reference ordinate is large, and not all combination areas can be used as the second combination mapping area, it is also necessary to compare and filter various combination areas. , the second combined mapping area can be obtained. The specific implementation is as follows:

基于所述第一组合横坐标和所述基准纵坐标创建多个初始第二组合映射区域;检测每个初始第二组合映射区域中包含的子初始第二组合映射区域与所述第一组合映射区域的区域包含关系;根据区域包含关系检测结果确定第二组合映射区域。Create a plurality of initial second combined mapping areas based on the first combined abscissa and the reference vertical coordinate; detect sub-initial second combined mapping areas included in each initial second combined mapping area and the first combined mapping the region inclusion relationship of the region; the second combined mapping region is determined according to the detection result of the region inclusion relationship.

具体的,初始第二组合映射区域是指所有由第一组合横坐标和基准纵坐标确定的映射坐标系中的区域;子初始第二组合映射区域是指每个初始第二组合映射区域中包含的子区域。Specifically, the initial second combined mapping area refers to all areas in the mapping coordinate system determined by the first combined abscissa and the reference ordinate; the sub-initial second combined mapping area refers to each initial second combined mapping area that contains sub-region.

基于此,在映射坐标系中确定第一组合横坐标和基准纵坐标,根据确定的第一组合横坐标和基准纵坐标创建多个初始第二组合映射区域,确定每个初始第二组合映射区域中包含的映射坐标系中的每个子初始第二组合映射区域,检测每个子初始第二组合映射区域与第一组合映射区域的区域包含关系,若初始第二组合映射区域中包含的每个子初始第二组合映射区域均被第一组合映射区域所包含,则此初始第二组合映射区域即为第二组合映射区域;若初始第二组合映射区域中包含的子初始第二组合映射区域中存在未被第一组合映射区域所包含的子初始第二组合映射区域,则此初始第二组合映射区域不能被认为是第二组合映射区域,检测完成后即得到了所有第二组合映射区域。Based on this, the first combined abscissa and the reference ordinate are determined in the mapping coordinate system, a plurality of initial second combined mapping areas are created according to the determined first combined abscissa and the reference ordinate, and each initial second combined mapping area is determined For each sub-initial second combined mapping area in the mapping coordinate system contained in The second combined mapping area is all included in the first combined mapping area, then the initial second combined mapping area is the second combined mapping area; if the sub-initial second combined mapping area included in the initial second combined mapping area exists If the sub-initial second combined mapping area is not included in the first combined mapping area, the initial second combined mapping area cannot be regarded as the second combined mapping area, and all the second combined mapping areas are obtained after the detection is completed.

综上所述,通过依次对确定的初始第二组合映射区域中包含的每个子初始第二组合映射区域,与第一组合映射区域的包含关系进行判断,提高了确定第二组合映射区域的准确性。To sum up, by sequentially judging the inclusion relationship between each sub-initial second combined mapping area included in the determined initial second combined mapping area and the first combined mapping area, the accuracy of determining the second combined mapping area is improved. sex.

进一步的,考虑到第二组合横坐标和组合纵坐标确定的组合区域的数量较多,且并不是所有组合区域均能够作为第三组合映射区域,因此还需要对多种组合区域进行比较和筛选,才能得到第三组合映射区域,具体实现如下:Further, considering that the number of combination areas determined by the second combination abscissa and the combination ordinate is large, and not all combination areas can be used as the third combination mapping area, it is also necessary to compare and filter various combination areas. , the third combined mapping area can be obtained. The specific implementation is as follows:

基于所述第二组合横坐标和所述组合纵坐标创建多个初始第三组合映射区域;检测每个初始第三组合映射区域中包含的子初始第三组合映射区域与所述第一组合映射区域的区域包含关系;根据区域包含关系检测结果确定第三组合映射区域。Create a plurality of initial third combined mapping areas based on the second combined abscissa and the combined vertical coordinate; detect the sub-initial third combined mapping area included in each initial third combined mapping area and the first combined mapping The region inclusion relationship of the region; the third combined mapping region is determined according to the detection result of the region inclusion relationship.

具体的,初始第三组合映射区域是指所有由第二组合横坐标和组合纵坐标确定的映射坐标系中的区域;子初始第三组合映射区域是指每个初始第三组合映射区域中包含的子区域。Specifically, the initial third combined mapping area refers to all the areas in the mapping coordinate system determined by the second combined abscissa and the combined vertical coordinate; the sub-initial third combined mapping area refers to each initial third combined mapping area that contains sub-area.

基于此,在映射坐标系中确定第二组合横坐标和组合纵坐标,根据确定的第二组合横坐标和组合纵坐标创建多个初始第三组合映射区域,确定每个初始第三组合映射区域中包含的映射坐标系中的每个子初始第三组合映射区域,检测每个子初始第三组合映射区域与第一组合映射区域的区域包含关系,若初始第三组合映射区域中包含的每个子初始第三组合映射区域均被第一组合映射区域所包含,则此初始第三组合映射区域即为第三组合映射区域;若初始第三组合映射区域中包含的子初始第三组合映射区域中存在未被第一组合映射区域所包含的子初始第三组合映射区域,则此初始第三组合映射区域不能被认为是第三组合映射区域,检测完成后即得到了所有第三组合映射区域。Based on this, determine the second combined abscissa and combined ordinate in the mapping coordinate system, create a plurality of initial third combined mapping areas according to the determined second combined abscissa and combined ordinate, and determine each initial third combined mapping area For each sub-initial third combined mapping area in the mapping coordinate system contained in The third combined mapping area is all included in the first combined mapping area, then the initial third combined mapping area is the third combined mapping area; if the sub-initial third combined mapping area included in the initial third combined mapping area exists If the sub-initial third combined mapping area is not included in the first combined mapping area, the initial third combined mapping area cannot be regarded as the third combined mapping area, and all third combined mapping areas are obtained after the detection is completed.

沿用上例,如图4中(b)所示的平面直角坐标系,坐标系中,当x分别取值R、P和Q,y分别取值R、P、Q和W时,可以确定的是区域1-12这12个独立的小区域,判断这12个小区域中哪些被区域③、区域⑤和区域⑦的映射区域所包含,可以得出区域1、2、4、5、6、9、8、和区域11这8个区域被包含。当x分别取值R、P和Q的组合值,即,RP、PQ、RPQ,y分别取R、P、Q和W时,可以确定的是组合区域1和2、组合区域2和3······组合区域10和11和12。判断确定的组合区域中是否每个小区域都被映射区域所包含,则得到组合区域1和2······组合区域8和9等5个被包含的组合区域。Following the above example, in the plane rectangular coordinate system shown in (b) in Figure 4, in the coordinate system, when x takes the values of R, P and Q respectively, and y takes the values of R, P, Q and W respectively, it can be determined. It is the 12 independent small areas of areas 1-12. It is determined which of these 12 small areas are included in the mapping areas of area ③, area ⑤ and area ⑦, and it can be concluded that areas 1, 2, 4, 5, 6, Eight areas, 9, 8, and area 11, are included. When x takes the combined value of R, P, and Q respectively, that is, RP, PQ, RPQ, and y takes R, P, Q, and W, respectively, it can be determined that the combination areas 1 and 2, the combination areas 2 and 3. · · · Combine areas 10 and 11 and 12. It is judged whether each small region in the determined combined region is included in the mapping region, and then five included combined regions, such as combined regions 1 and 2 . . . combined regions 8 and 9, are obtained.

当x分别取值R、P和Q以及R、P和Q的组合值,y分别取R、P、Q和W的组合值时,采用相同的处理方法得到由区域2、区域5、区域8组成的组合区域······区域5、区域6、区域8、区域9组成的组合区域等10个组合区域,由此则得到了23个被映射区域包含的区域,对这23个区域按照区域大小进行排序,判断他们之间的包含关系,从而实现对其进行筛选,得到包围盒信息,以便于后续确定对应已解锁的区域③、区域⑤和区域⑦的包围盒。When x takes the value of R, P and Q and the combined value of R, P and Q respectively, and y takes the combined value of R, P, Q and W respectively, the same processing method is used to get Combination area composed of 10 combined areas such as area 5, area 6, area 8, area 9, etc., 23 areas included in the mapped area are obtained. For these 23 areas Sort according to the size of the regions, and determine the inclusion relationship between them, so as to filter them and obtain the bounding box information, so as to facilitate the subsequent determination of the bounding boxes corresponding to the unlocked regions ③, ⑤ and ⑦.

综上所述,通过依次对确定的初始第三组合映射区域中包含的每个子初始第三组合映射区域,与第一组合映射区域的包含关系进行判断,提高了确定第三组合映射区域的准确性。To sum up, by sequentially judging the inclusion relationship between each sub-initial third combined mapping area included in the determined initial third combined mapping area and the first combined mapping area, the accuracy of determining the third combined mapping area is improved. sex.

步骤S106,根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。Step S106: Create a target object bounding box having a mapping relationship with the associated processing area according to the bounding box information.

具体的,在上述确定了包围盒信息后,即可基于包围盒信息创建于关联区域具有映射关系的目标对象包围盒,其中,映射关系是指对应关系,通常是指一对一或多对多的对应关系;目标对象包围盒是指基于包围盒信息确定的包围盒,用于在用户将目标对象摆放到待处理区域时,判断此目标对象是否被目标对象包围盒所包含,若是则可以摆放目标对象,若否则无法实现摆放。Specifically, after the bounding box information is determined above, a target object bounding box with a mapping relationship in the associated area can be created based on the bounding box information, where the mapping relationship refers to a corresponding relationship, usually one-to-one or many-to-many The corresponding relationship of the target object; the bounding box of the target object refers to the bounding box determined based on the bounding box information, which is used to judge whether the target object is contained in the bounding box of the target object when the user places the target object in the area to be processed, and if so, it can be Place the target object, otherwise the placement cannot be achieved.

基于此,在确定了关联处理区域,并根据关联处理区域确定了包围盒信息后,根据确定的每个包围盒信息都分别创建一个目标对象包围盒,创建的每个目标对象包围盒均与关联区域具有映射关系。Based on this, after the association processing area is determined and the bounding box information is determined according to the association processing area, a target object bounding box is created according to each bounding box information determined, and each target object bounding box created is associated with Regions have a mapping relationship.

沿用上例,在确定了区域⑦,区域⑤,区域③对应的映射区域,以及对应映射区域的四个包围盒信息:区域4、区域5、区域6,区域1、区域2、区域4、区域5,区域5、区域6、区域8、区域9,区域2、区域5、区域8、区域11后,即可根据每个包围盒信息创建对应映射区域的包围盒,得到如图4中(c)-(f)所示的H、J、K、L这四种包围盒。Following the above example, the mapping area corresponding to area ⑦, area ⑤, area ③ is determined, and the four bounding box information corresponding to the mapped area: area 4, area 5, area 6, area 1, area 2, area 4, area 5. After area 5, area 6, area 8, area 9, area 2, area 5, area 8, area 11, the bounding box corresponding to the mapped area can be created according to the information of each bounding box, as shown in Figure 4 (c )-(f) shows the four bounding boxes of H, J, K, and L.

综上所述,本申请提供的区域处理方法,通过响应于用户的选择指令确定至少两个待处理区域;在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据关联处理区域确定包围盒信息;根据包围盒信息创建与关联处理区域具有映射关系的目标对象包围盒,实现了创建位置相邻的关联处理区域之间的目标对象包围盒,从而可以实现在位置相邻的关联处理区域的对接位置处,根据用户需求随意摆放待布置资源,提高布置资源的多样性,并且可以提高目标对象包围盒的覆盖面积,同时减少目标对象包围盒的创建数量,降低资源的消耗。To sum up, in the area processing method provided by the present application, at least two to-be-processed areas are determined in response to a user's selection instruction; Determine the bounding box information; create the bounding box of the target object with the mapping relationship with the associated processing area according to the bounding box information, realize the creation of the bounding box of the target object between the adjacent associated processing areas, so as to realize the association in the adjacent position At the docking position of the processing area, the resources to be arranged can be arbitrarily placed according to the user's needs, the diversity of the resources to be arranged can be improved, and the coverage area of the bounding box of the target object can be increased, and the number of the bounding box of the target object can be reduced, and the consumption of resources can be reduced.

下述结合附图5以本申请提供的区域处理方法对游戏场景应用为例,对所述区域处理方法进行进一步说明。其中,图5示出了本申请一实施例提供的一种应用于游戏场景的区域处理方法的处理流程图,具体包括以下步骤:The following will further describe the area processing method by taking the application of the area processing method provided by the present application to a game scene as an example in conjunction with FIG. 5 . 5 shows a processing flow chart of an area processing method applied to a game scene provided by an embodiment of the present application, which specifically includes the following steps:

步骤S502,响应于用户的解锁指令或加锁指令确定待处理区域。Step S502, determining the to-be-processed area in response to the user's unlocking instruction or locking instruction.

当游戏用户针对游戏界面中的待解锁区域提交了解锁指令,或对游戏界面中已经解锁的区域提交了解锁指令后,即确定了需要进行处理的一个或多个区域。为了实现当用户在已解锁的区域摆放物品时能够跨区域摆放,则需要针对已经解锁,且位置相邻的两个或多个区域创建区域包围盒。When a game user submits an unlocking instruction for an area to be unlocked in the game interface, or an unlocking instruction for an area that has been unlocked in the game interface, one or more areas that need to be processed are determined. In order to realize that when a user places an item in an unlocked area, it can be placed across areas, it is necessary to create area bounding boxes for two or more areas that have been unlocked and are adjacent to each other.

步骤S504,判断待处理区域中是否存在位置相邻的待处理区域,若是,执行步骤S506,若否,执行步骤S508。Step S504, it is judged whether there is an adjacent to-be-processed area in the to-be-processed area, if yes, go to step S506, if not, go to step S508.

判断需要进行处理的一个或多个区域中是否存在相邻的两个区域或相邻的多个区域。Determine whether there are two adjacent areas or multiple adjacent areas in one or more areas to be processed.

步骤S506,确定位置相邻的待处理区域。In step S506, the adjacent to-be-processed areas are determined.

若存在相邻的两个区域或相邻的多个区域,则确定相邻的两个区域或相邻的多个区域,对此区域进行处理,确定对应的区域包围盒。If there are two adjacent areas or multiple adjacent areas, determine the two adjacent areas or multiple adjacent areas, process the area, and determine the corresponding area bounding box.

步骤S508,确定待处理区域的区域包围盒。Step S508, determining the area bounding box of the area to be processed.

若不存在相邻的两个区域或相邻的多个区域,分别创建每个已解锁的区域对应的区域包围盒。If there are no two adjacent regions or multiple adjacent regions, create a region bounding box corresponding to each unlocked region.

步骤S510,基于位置相邻的待处理区域创建映射坐标系,并确定位置相邻的待处理区域的映射区域。In step S510, a mapping coordinate system is created based on the adjacent to-be-processed regions, and the mapping regions of the adjacent to-be-processed regions are determined.

将相邻的两个区域或相邻的多个区域的顶点映射到直角坐标系中,并确定对应的映射区域。The vertices of two adjacent regions or adjacent regions are mapped into a rectangular coordinate system, and the corresponding mapped regions are determined.

步骤S512,基于映射坐标系中的横坐标和纵坐标确定初始映射区域。Step S512: Determine an initial mapping area based on the abscissa and ordinate in the mapping coordinate system.

根据坐标系中的横坐标和纵坐标创建多个初始映射区域,初始映射区域可以由一个或多个子区域构成。Create multiple initial mapping areas according to the abscissa and ordinate in the coordinate system, and the initial mapping area may be composed of one or more sub-areas.

步骤S514,对初始映射区域进行筛选,确定待筛选映射区域。Step S514: Screen the initial mapping area to determine the mapping area to be screened.

对初始映射区域进行筛选,判断每个初始映射区域中包含的子区域是否均被映射区域所包含,若是,则此初始映射区域即为待筛选映射区域,若否,则不做任何处理。The initial mapping area is screened to determine whether the sub-areas included in each initial mapping area are all included in the mapping area. If so, the initial mapping area is the mapping area to be screened. If not, no processing is performed.

步骤S516,在待筛选映射区域中筛选出目标映射区域。In step S516, a target mapping area is selected from the to-be-screened mapping area.

对待筛选映射区域进行排序,判断每个待筛选映射区域是否被其他的待筛选映射区域所包含,若否,则将此待筛选映射区域作为目标映射区域,若是,则不做任何处理。Sort the mapping areas to be screened, and determine whether each mapping area to be screened is contained by other mapping areas to be screened. If not, the mapping area to be screened is used as the target mapping area, and if so, no processing is performed.

步骤S518,基于目标映射区域确定对应位置相邻的待处理区域的包围盒信息。Step S518 , based on the target mapping area, determine the bounding box information of the adjacent to-be-processed area corresponding to the position.

根据筛选得到的目标映射区域在坐标系中的位置信息确定至少一个包围盒信息。At least one bounding box information is determined according to the position information of the target mapping area obtained by screening in the coordinate system.

步骤S520,根据包围盒信息创建区域包围盒。Step S520, creating a region bounding box according to the bounding box information.

根据确定的至少一个包围盒信息,分别创建对应的区域包围盒,实现当用户需要在已解锁区域摆放物品时,只要摆放在包围盒内,则可以成功的摆放,实现了跨区域摆放的效果。According to the determined at least one bounding box information, the corresponding area bounding boxes are created respectively, so that when the user needs to place items in the unlocked area, they can be placed successfully as long as they are placed in the bounding box, realizing cross-regional placement. put effect.

综上所述,本申请提供的区域处理方法,通过响应于用户的选择指令确定至少两个待处理区域;在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据关联处理区域确定包围盒信息;根据包围盒信息创建与关联处理区域具有映射关系的目标对象包围盒,实现了创建位置相邻的关联处理区域之间的目标对象包围盒,从而可以实现在位置相邻的关联处理区域的对接位置处,根据用户需求随意摆放待布置资源,提高布置资源的多样性,并且可以提高目标对象包围盒的覆盖面积,同时减少目标对象包围盒的创建数量,降低资源的消耗,使得游戏用户可以跨区域摆放物品。To sum up, in the area processing method provided by the present application, at least two to-be-processed areas are determined in response to a user's selection instruction; Determine the bounding box information; create the bounding box of the target object with the mapping relationship with the associated processing area according to the bounding box information, realize the creation of the bounding box of the target object between the adjacent associated processing areas, so as to realize the association in the adjacent position At the docking position of the processing area, the resources to be arranged can be arbitrarily placed according to the needs of the user, the diversity of the arrangement resources can be improved, and the coverage area of the bounding box of the target object can be increased, and the number of the bounding box of the target object can be reduced, and the consumption of resources can be reduced. Allows game users to place items across regions.

与上述方法实施例相对应,本申请还提供了区域处理装置实施例,图6示出了本申请一实施例提供的一种区域处理装置的结构示意图。如图6所示,该装置包括:Corresponding to the foregoing method embodiments, the present application also provides an embodiment of an area processing apparatus, and FIG. 6 shows a schematic structural diagram of an area processing apparatus provided by an embodiment of the present application. As shown in Figure 6, the device includes:

选择模块602,被配置为响应于用户的选择指令确定至少两个待处理区域;A selection module 602, configured to determine at least two to-be-processed areas in response to a user's selection instruction;

确定模块604,被配置为在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息;A determination module 604, configured to filter adjacent associated processing regions in at least two to-be-processed regions, and determine bounding box information according to the associated processing regions;

创建模块606,被配置为根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。The creating module 606 is configured to create a target object bounding box having a mapping relationship with the associated processing area according to the bounding box information.

选择模块602,还被配置为判断至少两个待处理区域是否存在位置相邻的关联处理区域;若是,则执行所述在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息的步骤;若否,则为至少两个待处理区域中包含的每个待处理区域创建区域包围盒。The selection module 602 is further configured to determine whether there are adjacent associated processing areas in the at least two to-be-processed areas; The step of determining the bounding box information of the associating processing regions; if not, creating a region bounding box for each to-be-processed region included in the at least two to-be-processed regions.

选择模块602,进一步被配置为在所述选择指令为区域增加指令的情况下,基于所述区域增加指令确定目标增加区域;确定第一原始区域,并基于所述目标增加区域和所述第一原始区域确定至少两个待处理区域。The selection module 602 is further configured to, when the selection instruction is an area increase instruction, determine a target increase area based on the area increase instruction; determine a first original area, and based on the target increase area and the first The original area defines at least two areas to be processed.

选择模块602,进一步被配置为在所述选择指令为区域删除指令的情况下,基于所述区域删除指令确定目标删除区域;确定第二原始区域,并在所述第二原始区域中剔除所述目标删除区域,获得至少两个待处理区域。The selection module 602 is further configured to, when the selection instruction is an area deletion instruction, determine a target deletion area based on the area deletion instruction; determine a second original area, and eliminate the second original area The target delete region, obtain at least two pending regions.

确定模块604,进一步被配置为根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域;对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域;基于所述目标映射区域和区域映射关系确定包围盒信息。The determining module 604 is further configured to create a global mapping area and an association mapping area according to the vertex information of the association processing area; perform reconstruction processing on the global mapping area, and determine the corresponding area of the association mapping area according to the reconstruction processing result. target mapping area; bounding box information is determined based on the target mapping area and the area mapping relationship.

确定模块604,进一步被配置为根据所述关联处理区域的顶点信息创建映射坐标系;在所述映射坐标系中确定所述关联处理区域对应的全局映射区域和关联映射区域。The determining module 604 is further configured to create a mapping coordinate system according to the vertex information of the association processing area; and determine a global mapping area and an association mapping area corresponding to the association processing area in the mapping coordinate system.

确定模块604,进一步被配置为基于所述映射坐标系,对所述全局映射区域进行分区处理,获得子映射区域;基于所述子映射区域创建所述关联映射区域对应的目标映射区域。The determining module 604 is further configured to perform partition processing on the global mapping area based on the mapping coordinate system to obtain a sub-mapping area; and create a target mapping area corresponding to the associated mapping area based on the sub-mapping area.

确定模块604,进一步被配置为在所述子映射区域中确定所述关联映射区域对应的第一组合映射区域;根据所述映射坐标系确定第一组合横坐标和基准纵坐标,并基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域;根据所述映射坐标系确定第二组合横坐标和组合纵坐标,并基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域;根据所述第一组合映射区域、所述第二组合映射区域和所述第三组合映射区域确定待筛选组合映射区域;根据所述待筛选组合映射区域确定所述关联映射区域对应的目标映射区域。The determining module 604 is further configured to determine a first combined mapping area corresponding to the associated mapping area in the sub-mapping area; determine a first combined abscissa and a reference ordinate according to the mapping coordinate system, and based on the The first combined abscissa and the reference ordinate are determined to determine the second combined mapping area corresponding to the associated mapping area; the second combined abscissa and the combined ordinate are determined according to the mapping coordinate system, and based on the second combination The abscissa and the combined vertical coordinate determine the third combined mapping area corresponding to the associated mapping area; determine the to-be-screened area according to the first combined mapping area, the second combined mapping area, and the third combined mapping area Combining the mapping area; determining the target mapping area corresponding to the associated mapping area according to the combined mapping area to be screened.

确定模块604,进一步被配置为基于所述第一组合横坐标和所述基准纵坐标创建多个初始第二组合映射区域;检测每个初始第二组合映射区域中包含的子初始第二组合映射区域与所述第一组合映射区域的区域包含关系;根据区域包含关系检测结果确定第二组合映射区域。Determining module 604, further configured to create a plurality of initial second combined mapping areas based on the first combined abscissa and the reference ordinate; detect sub-initial second combined mapping areas contained in each initial second combined mapping area a region inclusion relationship between the region and the first combined mapping region; the second combined mapping region is determined according to the detection result of the region inclusion relationship.

确定模块604,进一步被配置为基于所述第二组合横坐标和所述组合纵坐标创建多个初始第三组合映射区域;检测每个初始第三组合映射区域中包含的子初始第三组合映射区域与所述第一组合映射区域的区域包含关系;根据区域包含关系检测结果确定第三组合映射区域。The determining module 604 is further configured to create a plurality of initial third combined mapping areas based on the second combined abscissa and the combined vertical coordinate; detect sub-initial third combined mapping areas contained in each initial third combined mapping area a region inclusion relationship between the region and the first combined mapping region; and a third combined mapping region is determined according to the detection result of the region inclusion relationship.

上述为本实施例的一种区域处理装置的示意性方案。需要说明的是,该区域处理装置的技术方案与上述的区域处理方法的技术方案属于同一构思,区域处理装置的技术方案未详细描述的细节内容,均可以参见上述区域处理方法的技术方案的描述。此外,装置实施例中的各组成部分应当理解为实现该程序流程各步骤或该方法各步骤所必须建立的功能模块,各个功能模块并非实际的功能分割或者分离限定。由这样一组功能模块限定的装置权利要求应当理解为主要通过说明书记载的计算机程序实现该解决方案的功能模块构架,而不应当理解为主要通过硬件方式实现该解决方案的实体装置。The above is a schematic solution of an area processing apparatus according to this embodiment. It should be noted that the technical solution of the area processing device and the technical solution of the above-mentioned area processing method belong to the same concept. For details that are not described in detail in the technical solution of the area processing device, please refer to the description of the technical solution of the above-mentioned area processing method. . In addition, each component in the apparatus embodiment should be understood as a functional module that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual function division or separation limitation. A device claim defined by such a set of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program described in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

图7示出了根据本申请一实施例提供的一种计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和处理器720。处理器720与存储器710通过总线730相连接,数据库750用于保存数据。FIG. 7 shows a structural block diagram of a computing device 700 according to an embodiment of the present application. Components of the computing device 700 include, but are not limited to, memory 710 and processor 720 . The processor 720 is connected with the memory 710 through the bus 730, and the database 750 is used for saving data.

计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络760通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 700 also includes access device 740 that enables computing device 700 to communicate via one or more networks 760 . Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. Access device 740 may include one or more of any type of network interface (eg, a network interface card (NIC)), wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.

在本申请的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present application, the above-described components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, eg, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of example, rather than limiting the scope of the present application. Those skilled in the art can add or replace other components as required.

计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备700还可以是移动式或静止式的服务器。Computing device 700 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (eg, smart phones) ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 700 may also be a mobile or stationary server.

其中,处理器720用于执行所述区域处理方法的计算机可执行指令。The processor 720 is configured to execute the computer-executable instructions of the area processing method.

上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的区域处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述区域处理方法的技术方案的描述。The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned area processing method belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the above-mentioned area processing method.

本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于区域处理方法。An embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, is used for the local processing method.

上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的区域处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述区域处理方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned area processing method belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-mentioned area processing method.

本申请一实施例还提供一种芯片,其存储有计算机程序,该计算机程序被芯片执行时实现所述区域处理方法的步骤。An embodiment of the present application further provides a chip, which stores a computer program, and when the computer program is executed by the chip, implements the steps of the area processing method.

上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present application disclosed above are only provided to help illustrate the present application. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and variations are possible in light of the content of this application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can well understand and utilize the present application. This application is to be limited only by the claims, along with their full scope and equivalents.

Claims (13)

1.一种区域处理方法,其特征在于,包括:1. an area processing method, is characterized in that, comprises: 响应于用户的选择指令确定至少两个待处理区域;determining at least two regions to be processed in response to a user's selection instruction; 在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息;Screening adjacent associated processing areas in at least two to-be-processed areas, and determining bounding box information according to the associated processing areas; 根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。A target object bounding box having a mapping relationship with the associated processing area is created according to the bounding box information. 2.根据权利要求1所述的方法,所述响应于用户的选择指令确定至少两个待处理区域步骤执行之后,还包括:2. The method according to claim 1, after the step of determining at least two to-be-processed areas in response to a user's selection instruction is performed, further comprising: 判断至少两个待处理区域是否存在位置相邻的关联处理区域;Judging whether at least two to-be-processed areas have adjacent associated processing areas; 若是,则执行所述在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息的步骤;If so, perform the steps of screening adjacent associated processing areas in the at least two to-be-processed areas, and determining bounding box information according to the associated processing areas; 若否,则为至少两个待处理区域中包含的每个待处理区域创建区域包围盒。If not, a region bounding box is created for each to-be-processed region contained in the at least two to-be-processed regions. 3.根据权利要求1所述的方法,所述响应于用户的选择指令确定至少两个待处理区域,包括:3. The method according to claim 1, said determining at least two to-be-processed areas in response to a user's selection instruction, comprising: 在所述选择指令为区域增加指令的情况下,基于所述区域增加指令确定目标增加区域;In the case that the selection instruction is an area increase instruction, determining a target increase area based on the area increase instruction; 确定第一原始区域,并基于所述目标增加区域和所述第一原始区域确定至少两个待处理区域。A first original area is determined, and at least two to-be-processed areas are determined based on the target increase area and the first original area. 4.根据权利要求1所述的方法,所述响应于用户的选择指令确定至少两个待处理区域,包括:4. The method according to claim 1, said determining at least two areas to be processed in response to a user's selection instruction, comprising: 在所述选择指令为区域删除指令的情况下,基于所述区域删除指令确定目标删除区域;In the case that the selection instruction is an area deletion instruction, determining a target deletion area based on the area deletion instruction; 确定第二原始区域,并在所述第二原始区域中剔除所述目标删除区域,获得至少两个待处理区域。A second original area is determined, and the target deletion area is eliminated from the second original area to obtain at least two to-be-processed areas. 5.根据权利要求1所述的方法,所述根据所述关联处理区域确定包围盒信息,包括:5. The method according to claim 1, wherein the determining of bounding box information according to the associated processing region comprises: 根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域;Create a global mapping area and an associated mapping area according to the vertex information of the associated processing area; 对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域;Perform reconstruction processing on the global mapping area, and determine a target mapping area corresponding to the associated mapping area according to the reconstruction processing result; 基于所述目标映射区域和区域映射关系确定包围盒信息。The bounding box information is determined based on the target mapping area and the area mapping relationship. 6.根据权利要求5所述的方法,所述根据所述关联处理区域的顶点信息创建全局映射区域和关联映射区域,包括:6. The method according to claim 5, wherein creating a global mapping area and an associated mapping area according to the vertex information of the associated processing area, comprising: 根据所述关联处理区域的顶点信息创建映射坐标系;Create a mapping coordinate system according to the vertex information of the associated processing area; 在所述映射坐标系中确定所述关联处理区域对应的全局映射区域和关联映射区域。A global mapping area and an associated mapping area corresponding to the associated processing area are determined in the mapping coordinate system. 7.根据权利要求6所述的方法,所述对所述全局映射区域进行重构处理,根据重构处理结果确定所述关联映射区域对应的目标映射区域,包括:7. The method according to claim 6, wherein the reconstruction processing is performed on the global mapping area, and the target mapping area corresponding to the associated mapping area is determined according to the reconstruction processing result, comprising: 基于所述映射坐标系,对所述全局映射区域进行分区处理,获得子映射区域;Based on the mapping coordinate system, partition processing is performed on the global mapping area to obtain a sub-mapping area; 基于所述子映射区域创建所述关联映射区域对应的目标映射区域。A target mapping area corresponding to the associated mapping area is created based on the sub-mapping area. 8.根据权利要求7所述的方法,所述基于所述子映射区域创建所述关联映射区域对应的目标映射区域,包括:8. The method according to claim 7, wherein creating a target mapping area corresponding to the associated mapping area based on the sub-mapping area, comprising: 在所述子映射区域中确定所述关联映射区域对应的第一组合映射区域;determining a first combined mapping region corresponding to the associated mapping region in the sub-mapping region; 根据所述映射坐标系确定第一组合横坐标和基准纵坐标,并基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域;Determine a first combined abscissa and a reference ordinate according to the mapping coordinate system, and determine a second combined mapping area corresponding to the associated mapping area based on the first combined abscissa and the reference ordinate; 根据所述映射坐标系确定第二组合横坐标和组合纵坐标,并基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域;Determine a second combined abscissa and a combined ordinate according to the mapping coordinate system, and determine a third combined mapping area corresponding to the associated mapping area based on the second combined abscissa and the combined ordinate; 根据所述第一组合映射区域、所述第二组合映射区域和所述第三组合映射区域确定待筛选组合映射区域;Determine the combined mapping area to be screened according to the first combined mapping area, the second combined mapping area and the third combined mapping area; 根据所述待筛选组合映射区域确定所述关联映射区域对应的目标映射区域。The target mapping area corresponding to the associated mapping area is determined according to the combined mapping area to be screened. 9.根据权利要求8所述的方法,所述基于所述第一组合横坐标和所述基准纵坐标,确定所述关联映射区域对应的第二组合映射区域,包括:9. The method according to claim 8, wherein determining the second combined mapping area corresponding to the associated mapping area based on the first combined abscissa and the reference ordinate, comprising: 基于所述第一组合横坐标和所述基准纵坐标创建多个初始第二组合映射区域;creating a plurality of initial second combined mapping regions based on the first combined abscissa and the reference ordinate; 检测每个初始第二组合映射区域中包含的子初始第二组合映射区域与所述第一组合映射区域的区域包含关系;Detecting the region inclusion relationship between the sub-initial second combined mapping region contained in each initial second combined mapping region and the first combined mapping region; 根据区域包含关系检测结果确定第二组合映射区域。The second combined mapping region is determined according to the detection result of the region inclusion relationship. 10.根据权利要求8所述的方法,所述基于所述第二组合横坐标和所述组合纵坐标,确定所述关联映射区域对应的第三组合映射区域,包括:10. The method according to claim 8, wherein determining a third combined mapping area corresponding to the associated mapping area based on the second combined abscissa and the combined vertical coordinate, comprising: 基于所述第二组合横坐标和所述组合纵坐标创建多个初始第三组合映射区域;creating a plurality of initial third combined mapping regions based on the second combined abscissa and the combined ordinate; 检测每个初始第三组合映射区域中包含的子初始第三组合映射区域与所述第一组合映射区域的区域包含关系;Detecting the region inclusion relationship between the sub-initial third combined mapping region contained in each initial third combined mapping region and the first combined mapping region; 根据区域包含关系检测结果确定第三组合映射区域。The third combined mapping region is determined according to the detection result of the region inclusion relationship. 11.一种区域处理装置,其特征在于,包括:11. A regional processing device, characterized in that it comprises: 选择模块,被配置为响应于用户的选择指令确定至少两个待处理区域;a selection module configured to determine at least two areas to be processed in response to a user's selection instruction; 确定模块,被配置为在至少两个待处理区域中筛选位置相邻的关联处理区域,并根据所述关联处理区域确定包围盒信息;a determining module, configured to filter adjacent associated processing areas in at least two to-be-processed areas, and determine bounding box information according to the associated processing areas; 创建模块,被配置为根据所述包围盒信息创建与所述关联处理区域具有映射关系的目标对象包围盒。The creation module is configured to create a target object bounding box having a mapping relationship with the associated processing area according to the bounding box information. 12.一种计算设备,其特征在于,包括:12. A computing device, comprising: 存储器和处理器;memory and processor; 所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令实现权利要求1至10任意一项所述区域处理方法的步骤。The memory is used for storing computer-executable instructions, and the processor is used for executing the computer-executable instructions to implement the steps of the area processing method according to any one of claims 1 to 10. 13.一种计算机可读存储介质,其存储有计算机指令,其特征在于,该指令被处理器执行时实现权利要求1至10任意一项所述区域处理方法的步骤。13 . A computer-readable storage medium storing computer instructions, wherein when the instructions are executed by a processor, the steps of the area processing method according to any one of claims 1 to 10 are implemented. 14 .
CN202210122880.4A 2022-02-09 2022-02-09 Regional processing method and device Active CN114470781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122880.4A CN114470781B (en) 2022-02-09 2022-02-09 Regional processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122880.4A CN114470781B (en) 2022-02-09 2022-02-09 Regional processing method and device

Publications (2)

Publication Number Publication Date
CN114470781A true CN114470781A (en) 2022-05-13
CN114470781B CN114470781B (en) 2025-09-09

Family

ID=81478869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122880.4A Active CN114470781B (en) 2022-02-09 2022-02-09 Regional processing method and device

Country Status (1)

Country Link
CN (1) CN114470781B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853873A (en) * 2012-12-06 2014-06-11 索尼在线娱乐有限责任公司 System and method for building digital objects with blocks
JP2015198935A (en) * 2014-04-04 2015-11-12 コナミゲーミング インコーポレーテッド System and methods for operating gaming environments
CN109102535A (en) * 2018-07-27 2018-12-28 西安理工大学 A kind of indoor scene method for reconstructing that Component- Based Development extracts
CN109558676A (en) * 2018-11-28 2019-04-02 珠海金山网络游戏科技有限公司 A kind of collision checking method and device, a kind of calculating equipment and storage medium
CN109925716A (en) * 2019-04-12 2019-06-25 网易(杭州)网络有限公司 Vertex method for reconstructing, device, processor and the terminal of landform cutting
CN109933638A (en) * 2019-03-19 2019-06-25 腾讯科技(深圳)有限公司 Method, apparatus and storage medium are determined based on the target area profile of electronic map
CN111467806A (en) * 2020-05-15 2020-07-31 网易(杭州)网络有限公司 Method, device, medium and electronic equipment for generating resources in game scene
US20210142497A1 (en) * 2019-11-12 2021-05-13 Geomagical Labs, Inc. Method and system for scene image modification
US20210287387A1 (en) * 2020-03-11 2021-09-16 Gm Cruise Holdings Llc Lidar point selection using image segmentation
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device
CN113856201A (en) * 2021-09-28 2021-12-31 完美世界(重庆)软件科技有限公司 Game landform creating method, system, storage medium and computing equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853873A (en) * 2012-12-06 2014-06-11 索尼在线娱乐有限责任公司 System and method for building digital objects with blocks
JP2015198935A (en) * 2014-04-04 2015-11-12 コナミゲーミング インコーポレーテッド System and methods for operating gaming environments
CN109102535A (en) * 2018-07-27 2018-12-28 西安理工大学 A kind of indoor scene method for reconstructing that Component- Based Development extracts
CN109558676A (en) * 2018-11-28 2019-04-02 珠海金山网络游戏科技有限公司 A kind of collision checking method and device, a kind of calculating equipment and storage medium
CN109933638A (en) * 2019-03-19 2019-06-25 腾讯科技(深圳)有限公司 Method, apparatus and storage medium are determined based on the target area profile of electronic map
CN109925716A (en) * 2019-04-12 2019-06-25 网易(杭州)网络有限公司 Vertex method for reconstructing, device, processor and the terminal of landform cutting
US20210142497A1 (en) * 2019-11-12 2021-05-13 Geomagical Labs, Inc. Method and system for scene image modification
US20210287387A1 (en) * 2020-03-11 2021-09-16 Gm Cruise Holdings Llc Lidar point selection using image segmentation
CN111467806A (en) * 2020-05-15 2020-07-31 网易(杭州)网络有限公司 Method, device, medium and electronic equipment for generating resources in game scene
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device
CN113856201A (en) * 2021-09-28 2021-12-31 完美世界(重庆)软件科技有限公司 Game landform creating method, system, storage medium and computing equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙敬荣;卢新明;: "基于混合包围盒与三角形相交的碰撞检测优化算法", 计算机工程与应用, no. 19, 1 October 2018 (2018-10-01) *

Also Published As

Publication number Publication date
CN114470781B (en) 2025-09-09

Similar Documents

Publication Publication Date Title
US10437541B2 (en) Graphics engine and environment for efficient real time rendering of graphics that are not pre-known
WO2022042436A1 (en) Image rendering method and apparatus, and electronic device and storage medium
WO2017092251A1 (en) Method for detecting collision between cylindrical collider and convex body in real-time virtual scene, and terminal and storage medium
CN110544291A (en) Image rendering method and device
US20230033319A1 (en) Method, apparatus and device for processing shadow texture, computer-readable storage medium, and program product
US8854392B2 (en) Circular scratch shader
CN111476910B (en) 3D model display method, system, medium and display terminal of intelligent building BIM
CN114596423A (en) Model rendering method, device and computer equipment based on virtual scene meshing
CN111617483A (en) Map editing method and device
CN111950057A (en) A method and device for loading building information model BIM
CN116883575B (en) Building group rendering method, device, computer equipment and storage medium
CN115228083A (en) Resource rendering method and device
CN116227209B (en) A point cloud data multidimensional linear interpolation method, terminal device and storage medium
US9489756B2 (en) Graph based degree of freedom counter for two dimensional drawings
JP6820160B2 (en) Programs and systems that render images
CN114782642A (en) Virtual model placing method and device
Li et al. Uni-Render: A Unified Accelerator for Real-Time Rendering Across Diverse Neural Renderers
CN114470782A (en) Region processing method and device
CN114470781A (en) Region processing method and device
WO2023221683A1 (en) Image rendering method and apparatus, device, and medium
CN115830266A (en) Game three-dimensional scene graph processing method and device
Gava et al. Spherecraft: A dataset for spherical keypoint detection, matching and camera pose estimation
CN116193050A (en) Image processing method, device, equipment and storage medium
CN115203809A (en) Building information model rendering method and system and electronic equipment
AU2023274149B2 (en) Method for 3D visualization of sensor data

Legal Events

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