@three3d/tools
Version:
@three3d/tools 提供了 ThreeJS 常用的工具库
36 lines (22 loc) • 1.04 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/tools](./tools.md) > [createLineSegmentConnection](./tools.createlinesegmentconnection.md)
## createLineSegmentConnection() function
创建线段连接器
**Signature:**
```typescript
export declare function createLineSegmentConnection(cornerPointInfo: VertexInfo, frontFrame: Omit<FrenetFrame, "tangent">, backFrame: Omit<FrenetFrame, "tangent">): {
points: Vector3[];
normals: Vector3[];
lengths: number[];
};
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| cornerPointInfo | [VertexInfo](./tools.vertexinfo.md) | |
| frontFrame | Omit<[FrenetFrame](./tools.frenetframe.md)<!-- -->, "tangent"> | |
| backFrame | Omit<[FrenetFrame](./tools.frenetframe.md)<!-- -->, "tangent"> | |
**Returns:**
{ points: Vector3\[\]; normals: Vector3\[\]; lengths: number\[\]; }
## Remarks
只是简单地将两个线段连接起来