# US 2022/0044355 A1 · Scaling method and apparatus, device and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0044355 A1
- Document ID: US20220044355A1
- Status: Published application
- Kind: A1
- Application number: 17/281,513
- Filed: 2018-12-14
- Published: 2022-02-10
- Earliest claimed: 2018-10-16
- Assignees: Shanghai Lilith Technology Corporation
- Applicants: Shanghai Lilith Technology Corporation
- Inventors: Di Wu
- Web page: https://patentgrep.com/patent/US20220044355A1

## CPC

- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06F 30/10: Geometric CAD
- G06F 30/13: Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
- G06T 19/20: Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
- G06T 2210/04: Architectural design, interior design
- G06T 2210/21: Collision detection, intersection
- G06T 2219/2016: Rotation, translation, scaling
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention relates to a scaling method, including: for each of coordinate axis directions of a complex object: assigning a scale mode to each sub-object in the complex object in the direction; for each cross section of the complex object perpendicular to the direction, calculating a scale ratio limit of the cross section; combining adjacent cross sections with the same scale ratio to obtain a segmented scale ratio range of the complex object in the direction; according to an adjustment target value of the complex object in the direction, calculating the segmented scale ratio of the complex object in the direction; and according to the scale ratio of each sub-object in each direction, calculating a new position range of each sub-object and adjusting a size of the complex object. In addition, the present invention further relates to a scaling apparatus, a device, and a medium.

## Claims

### Claim 1

A scaling method, comprising:
for each of coordinate axis directions of a complex object:
assigning a scale mode to each sub-object in the complex object in the direction, wherein the scale mode comprises: proportional stretching, non-stretching and unit repetition;
for each cross section of the complex object perpendicular to the direction, calculating a scale ratio limit of the cross section;
combining adjacent cross sections with the same scale ratio to obtain a segmented scale ratio range of the complex object in the direction;
according to an adjustment target value of the complex object in the direction, calculating a segmented scale ratio of the complex object in the direction; and
according to a scale ratio of each sub-object in each direction, calculating a new position range of each sub-object and adjusting a size of the complex object.

### Claim 2 (depends on 1)

The scaling method according to claim 1, wherein for each cross section of the complex object perpendicular to the direction, the calculating a scale ratio limit of the cross section comprises:
determining whether the cross section intersects one or more sub-objects; and
if no, setting no limit on the scale ratio; or if yes, limiting the scale ratio of the cross section to not exceed a scale limit value of the sub-object that intersects the cross section in the direction.

### Claim 3 (depends on 1)

The scaling method according to claim 1, wherein according to an adjustment target value of the complex object in the direction, the calculating a segmented scale ratio of the complex object in the direction comprises:
determining whether the target value exceeds a maximum or minimum value in the direction;
if the target value exceeds the maximum value, adjusting the target value to the maximum value; if the target value is lower than the minimum value, adjusting the target value to the minimum value; otherwise, separately calculating a theoretical scale ratio R of each segment in the complex object; and
if the value R obtained from a certain segment is not within a scale ratio range of the segment, set the theoretical scale ratio of the segment as a limiting value R′ closest to R in the scale ratio range, and adjust scale ratios of other segments according to the value R′.

### Claim 4 (depends on 1)

The scaling method according to claim 1, wherein further comprising:
decomposing the complex object into sub-objects.

### Claim 5 (depends on 1)

The scaling method according to claim 1, wherein when a scale mode of unit repetition is assigned to the sub-object, if a to-be-adjusted target length of the sub-object is not an integral multiple of a repeating unit, a part of the last unit is intercepted according to the final length, or units whose quantity is rounded down are retained and arranged in the center.

### Claim 6 (depends on 1)

The scaling method according to claim 1, wherein the complex object is a two-dimensional object or a three-dimensional object.

### Claim 7

A scaling apparatus, comprising:
a scale mode determining unit, configured to assign a scale mode to each sub-object in a complex object in each coordinate axis direction, wherein the scale mode comprises: proportional stretching, non-stretching, and unit repetition;
a scale ratio limit determining unit, configured to: for each of coordinate axis directions of the complex object, calculate a scale ratio limit of each cross section of the complex object perpendicular to the direction;
a segmented scale ratio range determining unit, configured to combine adjacent cross sections with the same scale ratio to obtain a segmented scale ratio range of the complex object in each direction;
a segmented scale ratio determining unit, configured to: according to an adjustment target value of the complex object in each direction, calculate a segmented scale ratio of the complex object in each direction; and
an adjustment unit, configured to: according to a scale ratio of each sub-object in each direction, calculate a new position range of each sub-object, and adjust a size of the complex object.

### Claim 8 (depends on 7)

The scaling apparatus according to claim 7, wherein the scale ratio limit determining unit is further configured to:
for each of coordinate axis directions of the complex object:
determine whether each cross section perpendicular to the direction intersects one or more sub-objects; and
if no, set no limit on the scale ratio; or if yes, limit the scale ratio of the cross section to not exceed a scale limit value of the sub-object that intersects the cross section in the direction.

### Claim 9 (depends on 7)

The scaling apparatus according to claim 7, wherein the segmented scale ratio determining unit is further configured to:
for each of coordinate axis directions of the complex object:
determine whether the target value exceeds a maximum or minimum value in the direction;
if the target value exceeds the maximum value, adjust the target value to the maximum value; if the target value is lower than the minimum value, adjust the target value to the minimum value; otherwise, separately calculate a theoretical scale ratio R of each segment in the complex object; and
if the value R obtained from a certain segment is not within a scale ratio range of the segment, set the theoretical scale ratio of the segment as a limiting value R′ closest to R in the scale ratio range, and adjust scale ratios of other segments according to the value R′.

### Claim 10 (depends on 7)

The scaling apparatus according to claim 7, wherein further comprising a decomposition unit configured to decompose the complex object into the sub-objects.

### Claim 11 (depends on 7)

The scaling apparatus according to claim 7, wherein the scale mode determining unit is further configured to, when a scale mode of unit repetition is assigned to the sub-object, if a to-be-adjusted target length of the sub-object is not an integral multiple of a repeating unit, a part of the last unit is intercepted according to the final length, or units whose quantity is rounded down are retained and arranged in the center.

### Claim 12 (depends on 7)

The scaling apparatus according to claim 7, wherein the complex object is a two-dimensional object or a three-dimensional object.

### Claim 13

A device, comprising: a processor and a memory, wherein the processor establishes a communication connection to the memory; and
the processor is configured to read a program in the memory to perform a method comprising, for each of coordinate axis directions of a complex object:
assigning a scale mode to each sub-object in the complex object in the direction, wherein the scale mode comprises: proportional stretching, non-stretching and unit repetition;
for each cross section of the complex object perpendicular to the direction, calculating a scale ratio limit of the cross section;
combining adjacent cross sections with the same scale ratio to obtain a segmented scale ratio range of the complex object in the direction;
according to an adjustment target value of the complex object in the direction, calculating a segmented scale ratio of the complex object in the direction; and
according to a scale ratio of each sub-object in each direction, calculating a new position range of each sub-object and adjusting a size of the complex object.

### Claim 14

A non-volatile storage medium, wherein a program is stored in the non-volatile storage medium, and when the program is run by a computing device, the computing device performs a method comprising.
for each of coordinate axis directions of a complex object:
assigning a scale mode to each sub-object in the complex object in the direction, wherein the scale mode comprises: proportional stretching, non-stretching and unit repetition;
for each cross section of the complex object perpendicular to the direction, calculating a scale ratio limit of the cross section;
combining adjacent cross sections with the same scale ratio to obtain a segmented scale ratio range of the complex object in the direction;
according to an adjustment target value of the complex object in the direction, calculating a segmented scale ratio of the complex object in the direction; and
according to a scale ratio of each sub-object in each direction, calculating a new position range of each sub-object and adjusting a size of the complex object.

### Claim 15 (depends on 14)

The non-volatile storage medium according to claim 14, wherein for each cross section of the complex object perpendicular to the direction, the calculating a scale ratio limit of the cross section comprises:
determining whether the cross section intersects one or more sub-objects; and
if no, setting no limit on the scale ratio; or if yes, limiting the scale ratio of the cross section to not exceed a scale limit value of the sub-object that intersects the cross section in the direction.

### Claim 16 (depends on 14)

The non-volatile storage medium according to claim 14, wherein according to an adjustment target value of the complex object in the direction, the calculating a segmented scale ratio of the complex object in the direction comprises:
determining whether the target value exceeds a maximum or minimum value in the direction;
if the target value exceeds the maximum value, adjusting the target value to the maximum value; if the target value is lower than the minimum value, adjusting the target value to the minimum value; otherwise, separately calculating a theoretical scale ratio R of each segment in the complex object; and
if the value R obtained from a certain segment is not within a scale ratio range of the segment, set the theoretical scale ratio of the segment as a limiting value R′ closest to R in the scale ratio range, and adjust scale ratios of other segments according to the value R′.

### Claim 17 (depends on 14)

The non-volatile storage medium according to claim 14, wherein further comprising: decomposing the complex object into sub-objects.

### Claim 18 (depends on 14)

The non-volatile storage medium according to claim 14, wherein when a scale mode of unit repetition is assigned to the sub-object, if a to-be-adjusted target length of the sub-object is not an integral multiple of a repeating unit, a part of the last unit is intercepted according to the final length, or units whose quantity is rounded down are retained and arranged in the center.

### Claim 19 (depends on 14)

The non-volatile storage medium according to claim 14, wherein the complex object is a two-dimensional object or a three-dimensional object.
