METHOD, SYSTEM AND DEVICE FOR COMBINING MODELS IN VIRTUAL SCENE, AND MEDIUM

Information

  • Patent Application
  • 20230298298
  • Publication Number
    20230298298
  • Date Filed
    May 26, 2023
    a year ago
  • Date Published
    September 21, 2023
    9 months ago
Abstract
The present invention is directed to a method, system, and device for combining models in a virtual scene, and to a coded storage medium in the field of two-dimensional (2D)/three-dimensional (3D) modeling which simplifies the work of the scene designer, reduces repetitive work, and achieves a desirable effect from the models. It includes: placing a first model into a second model; determining a filling space and a removing space of the first model; filling an overlapping space between the first model and the second model with the second model, and filling the filling space of the first model with the second model; and removing the second model with which the removing space of the first model is filled, wherein when the overlapping space between the first model and the second model is filled with the second model, and the filling space of the first model is filled with the second model, the removing space of the first model is filled with the second model.
Description
Claims
  • 1. A method for combining models in a virtual scene, wherein the method comprises: placing a first model into a second model;determining a filling space and a removing space of the first model;filling an overlapping space between the first model and the second model with the second model, and filling the filling space of the first model with the second model; andremoving the second model with which the removing space of the first model is filled, wherein when the overlapping space between the first model and the second model is filled with the second model, and the filling space of the first model is filled with the second model, the removing space of the first model is filled with the second model,wherein the first model comprises a reference surface, and the first model is located on one side or both sides of the reference surface; and vertical line segments are extended, respectively, from one or more points on the first model to the reference surface, and the removing space of the first model is determined by one or more of the vertical line segments and the reference surface.
  • 2. The method according to claim 1, wherein the filling space of the first model is determined by receiving a user instruction.
  • 3. The method according to claim 1, wherein the first model comprises a reference surface, and the first model is located on one side or both sides of the reference surface; after the first model is placed into the second model, rays are extended, respectively, from one or more points on the reference surface to the second model along a placement direction, and one or more of the rays intersect a surface of the second model at one or more intersection points; and a first surface is determined by the one or more points on the reference surface, a second surface is determined by one or more intersection points where the one or more of the rays intersect the surface of the second model, and the filling space of the first model is determined by the first surface, the second surface, and the one or more of the rays.
  • 4. The method according to claim 3, wherein the one or more points on the reference surface comprise one or more points on a contour line of the reference surface.
  • 5. The method according to claim 1, wherein the removing space of the first model is determined by receiving a user instruction.
  • 6. The method according to claim 1, wherein when the first model is located on one side of the reference surface, the one or more points on the first model comprise one or more points on the first model that are farthest from the reference surface; and when the first model is located on both sides of the reference surface, the one or more points on the first model comprise one or more points on the first model located on both sides of the reference surface that are farthest from the reference surface.
  • 7. A system for combining models in a virtual scene, wherein the system comprises: one or more processors and a memory that stores instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising: placing a first model into a second model;determining a filling space and a removing space of the first model;filling an overlapping space between the first model and the second model with the second model, and filling the filling space of the first model with the second model; andremoving the second model with which the removing space of the first model is filled, wherein when the overlapping space between the first model and the second model is filled with the second model, and the filling space of the first model is filled with the second model, and the removing space of the first model is filled with the second model,wherein the first model comprises a reference surface, and the first model is located on one side or both sides of the reference surface; and vertical line segments are extended, respectively, from one or more points on the first model to the reference surface, and the removing space of the first model is determined by one or more of the vertical line segments and the reference surface.
  • 8. The system according to claim 7, wherein when the first model is located on one side of the reference surface, the one or more points on the first model comprise one or more points on the first model that are farthest from the reference surface; and when the first model is located on both sides of the reference surface, the one or more points on the first model comprise one or more points on the first model located on both sides of the reference surface that are farthest from the reference surface.
  • 9. A device for combining models in a virtual scene, wherein the device comprises a memory storing a computer-executable instruction and a processor, and the processor is configured to execute the instruction to implement the method for combining models in a virtual scene according to claim 1.
  • 10. A non-transitory computer storage medium coded with a computer program, wherein the computer program comprises an instruction, and the instruction is executed by more than one computer to implement the method for combining models in a virtual scene according to claim 1.
Priority Claims (1)
Number Date Country Kind
201910019422.6 Jan 2019 CN national
Divisions (1)
Number Date Country
Parent 17415449 Jun 2021 US
Child 18202427 US