tencentcloud-sdk-nodejs-ai3d 4.1.122 → 4.1.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
package/package.json
CHANGED
|
@@ -123,7 +123,7 @@ export interface SubmitHunyuanTo3DProJobRequest {
|
|
|
123
123
|
EnablePBR?: boolean;
|
|
124
124
|
/**
|
|
125
125
|
* 生成3D模型的面数,默认值为500000。
|
|
126
|
-
可支持生成面数范围,参考值:40000-
|
|
126
|
+
可支持生成面数范围,参考值:40000-1500000。
|
|
127
127
|
*/
|
|
128
128
|
FaceCount?: number;
|
|
129
129
|
/**
|
|
@@ -134,6 +134,14 @@ export interface SubmitHunyuanTo3DProJobRequest {
|
|
|
134
134
|
Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl/ImageBase64可一起输入。
|
|
135
135
|
*/
|
|
136
136
|
GenerateType?: string;
|
|
137
|
+
/**
|
|
138
|
+
* 该参数仅在GenerateType中选择LowPoly模式可生效。
|
|
139
|
+
|
|
140
|
+
多边形类型,表示模型的表面由几边形网格构成,默认为triangle,参考值:
|
|
141
|
+
triangle: 三角形面。
|
|
142
|
+
quadrilateral: 四边形面与三角形面混合生成。
|
|
143
|
+
*/
|
|
144
|
+
PolygonType?: string;
|
|
137
145
|
}
|
|
138
146
|
/**
|
|
139
147
|
* QueryHunyuanTo3DProJob请求参数结构体
|
|
@@ -199,6 +207,10 @@ export interface ViewImage {
|
|
|
199
207
|
* 图片Url地址
|
|
200
208
|
*/
|
|
201
209
|
ViewImageUrl?: string;
|
|
210
|
+
/**
|
|
211
|
+
* 图片base64地址
|
|
212
|
+
*/
|
|
213
|
+
ViewImageBase64?: string;
|
|
202
214
|
}
|
|
203
215
|
/**
|
|
204
216
|
* QueryHunyuanTo3DProJob返回参数结构体
|