EditableMeshクラス
ひとことで言うと
EditableMeshは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Object which allows for the runtime creation and manipulation of meshes.
クラスの関係
受け継いでいるクラス:Object → EditableMesh
プロパティ(1)
| 名前と書き方 | 説明 |
|---|---|
FixedSizeEditableMesh.FixedSize: boolean | Returns true if a mesh is fixed-size. |
メソッド(93)
| 名前と書き方 | 説明 |
|---|---|
AddBoneEditableMesh:AddBone(boneProperties: Dictionary): int64 | Adds a new bone and returns a bone ID. |
AddColorEditableMesh:AddColor(color: Color3, alpha: float): int64 | Adds a new color to the geometry and returns a color ID. |
AddFaceEditableMesh:AddFace(vertexIds: Tuple): int64 | Adds a new triangle or quad face to the mesh and returns a face ID. |
AddNormalEditableMesh:AddNormal(normal: Vector3?): int64 | Adds a new normal to the geometry and returns a normal ID. |
AddTriangleEditableMesh:AddTriangle(vertexId0: int64, vertexId1: int64, vertexId2: int64): int64 | Adds a new triangle to the mesh and returns a face ID. |
AddUVEditableMesh:AddUV(uv: Vector2): int64 | Adds a new UV to the geometry and returns a UV ID. |
AddVertexEditableMesh:AddVertex(p: Vector3): int64 | Adds a new vertex to the geometry and returns a vertex ID. |
BatchAddEditableMesh:BatchAdd(attr: MeshAttribute, data: Array): Array | Creates new mesh elements of the given attribute type and returns their IDs. |
BatchGetFaceAttributesEditableMesh:BatchGetFaceAttributes(attr: MeshAttribute, faceIds: Array): Array | Returns the per-corner attribute IDs for each face in a batch. |
BatchGetValuesEditableMesh:BatchGetValues(ids: Array): Tuple | Returns attribute values for each ID in a batch. |
BatchGetVertexAttributesEditableMesh:BatchGetVertexAttributes(attr: MeshAttribute, vertexIds: Array): Array | Returns the attribute IDs associated with each vertex in a batch. |
BatchGetVertexFaceAttributesEditableMesh:BatchGetVertexFaceAttributes(attr: MeshAttribute, vertexIds: Array, faceIds: Array): Array | Returns the attribute ID at each specified corner for a batch of vertex–face pairs. |
BatchRemoveEditableMesh:BatchRemove(faceIds: Array): () | Removes a batch of faces. |
BatchSetFaceAttributesEditableMesh:BatchSetFaceAttributes(faceIds: Array, attrIdArrays: Array): () | Sets the per-corner attribute IDs for each face in a batch. |
BatchSetValuesEditableMesh:BatchSetValues(ids: Array, values: Array): () | Writes attribute values to a batch of mesh element IDs. |
BatchSetVertexFaceAttributesEditableMesh:BatchSetVertexFaceAttributes(vertexIds: Array, faceIds: Array, attrIds: Array): () | Sets the attribute at a specific corner for each vertex–face pair in a batch. |
ClearEditableMesh:Clear(): () | Clears all of an EditableMesh's geometry. |
DestroyEditableMesh:Destroy(): () | Destroys the mesh. |
FindClosestPointOnSurfaceEditableMesh:FindClosestPointOnSurface(point: Vector3): Tuple | Finds the closest point on the mesh's surface. |
FindClosestVertexEditableMesh:FindClosestVertex(toThisPoint: Vector3): int64 | Finds the closest vertex to a specific point in space. |
FindVerticesWithinSphereEditableMesh:FindVerticesWithinSphere(center: Vector3, radius: float): Array | Finds all vertices within a specific sphere. |
GetAdjacentFacesEditableMesh:GetAdjacentFaces(faceId: int64): Array | Returns a list of faces adjacent to a given face. |
GetAdjacentVerticesEditableMesh:GetAdjacentVertices(vertexId: int64): Array | Returns a list of vertices adjacent to a given vertex. |
GetBoneByNameEditableMesh:GetBoneByName(boneName: string): int64 | Finds the bone ID of the bone with the given name. |
GetBoneCFrameEditableMesh:GetBoneCFrame(boneId: int64): CFrame | Returns the initial CFrame of the bone in the bind pose of the mesh. |
GetBoneIsVirtualEditableMesh:GetBoneIsVirtual(boneId: int64): boolean | Returns true if the bone is virtual. |
GetBoneNameEditableMesh:GetBoneName(boneId: int64): string | Returns the bone name. |
GetBoneParentEditableMesh:GetBoneParent(boneId: int64): int64 | Returns the parent bone ID, if any. |
GetBonesEditableMesh:GetBones(): Array | Returns all bones of the mesh. |
GetCenterEditableMesh:GetCenter(): Vector3 | Returns the center of the mesh's axis-aligned bounding box. |
GetColorEditableMesh:GetColor(colorId: int64): Color3? | Returns the color for the given color ID. |
GetColorAlphaEditableMesh:GetColorAlpha(colorId: int64): float? | Returns the color alpha (transparency) at the given color ID. |
GetColorsEditableMesh:GetColors(): Array | Returns all colors of the mesh. |
GetFaceColorsEditableMesh:GetFaceColors(faceId: int64): Array | Returns the face's color IDs for the vertices on the face. |
GetFaceNormalsEditableMesh:GetFaceNormals(faceId: int64): Array | Returns the face's normal IDs for the vertices on the face. |
GetFacesEditableMesh:GetFaces(): Array | Returns all faces of the mesh. |
GetFacesWithColorEditableMesh:GetFacesWithColor(colorId: int64): Array | Returns an array of face IDs that use the given color ID. |
GetFacesWithNormalEditableMesh:GetFacesWithNormal(normalId: int64): Array | Returns an array of face IDs that use the given normal ID. |
GetFacesWithUVEditableMesh:GetFacesWithUV(uvId: int64): Array | Returns an array of face IDs that use the given UV ID. |
GetFaceUVsEditableMesh:GetFaceUVs(faceId: int64): Array | Returns the face's UV IDs for the vertices on the face. |
GetFaceVerticesEditableMesh:GetFaceVertices(faceId: int64): Array | Returns the face's vertex IDs. |
GetFacsCorrectivePoseEditableMesh:GetFacsCorrectivePose(actions: Array): Tuple | Returns bone IDs and bone Datatype.CFrame|CFrames for all bones in a specific FACS corrective pose. |
GetFacsCorrectivePosesEditableMesh:GetFacsCorrectivePoses(): Array | Returns all FACS corrective poses that are in use. |
GetFacsPoseEditableMesh:GetFacsPose(action: FacsActionUnit): Tuple | Returns bone IDs and bone Datatype.CFrame|CFrames for all bones in a specific FACS action unit. |
GetFacsPosesEditableMesh:GetFacsPoses(): Array | Returns all FACS action units that have poses defined. |
GetNormalEditableMesh:GetNormal(normalId: int64): Vector3? | Returns the normal vector for the given normal ID. |
GetNormalsEditableMesh:GetNormals(): Array | Returns all normals of the mesh. |
GetPositionEditableMesh:GetPosition(vertexId: int64): Vector3 | Gets the position of a vertex. |
GetSizeEditableMesh:GetSize(): Vector3 | Returns the size of the mesh's axis-aligned bounding box. |
GetUVEditableMesh:GetUV(uvId: int64): Vector2? | Returns UV coordinates at the given UV ID. |
GetUVsEditableMesh:GetUVs(): Array | Returns all UVs of the mesh. |
GetVertexBonesEditableMesh:GetVertexBones(vertexId: int64): Array | Returns all bone IDs that are associated with the vertex for skinning. |
GetVertexBoneWeightsEditableMesh:GetVertexBoneWeights(vertexId: int64): Array | Returns skinning blend weights for each bone that is associated with the vertex. |
GetVertexColorsEditableMesh:GetVertexColors(vertexId: int64): Array | Returns the color IDs of the faces attached to the given vertex. |
GetVertexFaceColorEditableMesh:GetVertexFaceColor(vertexId: int64, faceId: int64): int64 | Returns the color ID of a vertex/face pair. |
GetVertexFaceNormalEditableMesh:GetVertexFaceNormal(vertexId: int64, faceId: int64): int64 | Returns the normal ID of a vertex/face pair. |
GetVertexFacesEditableMesh:GetVertexFaces(vertexId: int64): Array | Returns the face IDs of the faces attached to the given vertex. |
GetVertexFaceUVEditableMesh:GetVertexFaceUV(vertexId: int64, faceId: int64): int64 | Returns the UV ID of a vertex/face pair. |
GetVertexNormalsEditableMesh:GetVertexNormals(vertexId: int64): Array | Returns the normal IDs of the faces attached to the given vertex. |
GetVertexUVsEditableMesh:GetVertexUVs(vertexId: int64): Array | Returns the UV IDs of the faces attached to the given vertex. |
GetVerticesEditableMesh:GetVertices(): Array | Returns all vertices as a list of vertex IDs. |
GetVerticesWithColorEditableMesh:GetVerticesWithColor(colorId: int64): Array | Returns an array of vertex IDs that use the given color ID. |
GetVerticesWithNormalEditableMesh:GetVerticesWithNormal(normalId: int64): Array | Returns an array of vertex IDs that use the given normal ID. |
GetVerticesWithUVEditableMesh:GetVerticesWithUV(uvId: int64): Array | Returns an array of vertex IDs that use the given UV ID. |
IdDebugStringEditableMesh:IdDebugString(id: int64): string | Returns a string describing an ID, useful for debugging purposes. |
MergeVerticesEditableMesh:MergeVertices(mergeTolerance: float): Map | Merges vertices that touch together. |
RaycastLocalEditableMesh:RaycastLocal(origin: Vector3, direction: Vector3): Tuple | Casts a ray and returns the intersection point, face ID, and barycentric coordinates. |
RemoveBoneEditableMesh:RemoveBone(boneId: int64): () | Removes a bone using its bone ID. |
RemoveFaceEditableMesh:RemoveFace(faceId: int64): () | Removes a face using its face ID. |
RemoveUnusedEditableMesh:RemoveUnused(): Array | Removes all unused vertices, normals, UVs, and colors, and returns the removed IDs. |
ResetNormalEditableMesh:ResetNormal(normalId: int64): () | Reset this normal ID to be automatically calculated. |
SetBoneCFrameEditableMesh:SetBoneCFrame(boneId: int64, cframe: CFrame): () | Set the initial CFrame for a bone in the mesh's bind pose. |
SetBoneIsVirtualEditableMesh:SetBoneIsVirtual(boneId: int64, virtual: boolean): () | Set whether a bone is virtual. |
SetBoneNameEditableMesh:SetBoneName(boneId: int64, name: string): () | Sets the name for a bone. |
SetBoneParentEditableMesh:SetBoneParent(boneId: int64, parentBoneId: int64): () | Set a parent for a bone. |
SetColorEditableMesh:SetColor(colorId: int64, color: Color3): () | Sets the color for a color ID. |
SetColorAlphaEditableMesh:SetColorAlpha(colorId: int64, alpha: float): () | Sets the color alpha (transparency) for a color ID. |
SetFaceColorsEditableMesh:SetFaceColors(faceId: int64, ids: Array): () | Sets the face's vertex colors to new color IDs. |
SetFaceNormalsEditableMesh:SetFaceNormals(faceId: int64, ids: Array): () | Sets the face's vertex normals to new normal IDs. |
SetFaceUVsEditableMesh:SetFaceUVs(faceId: int64, ids: Array): () | Sets the face's vertex UVs to new UV IDs. |
SetFaceVerticesEditableMesh:SetFaceVertices(faceId: int64, ids: Array): () | Sets the face's vertices to new vertex IDs. |
SetFacsBonePoseEditableMesh:SetFacsBonePose(action: FacsActionUnit, boneId: int64, cframe: CFrame): () | Set CFrame for an individual bone in a specific FACS action unit. |
SetFacsCorrectivePoseEditableMesh:SetFacsCorrectivePose(actions: Array, boneIds: Array, cframes: Array): () | Set pose for all bones in a specific FACS corrective pose. |
SetFacsPoseEditableMesh:SetFacsPose(action: FacsActionUnit, boneIds: Array, cframes: Array): () | Set pose for all bones in a specific FACS action unit. |
SetNormalEditableMesh:SetNormal(normalId: int64, normal: Vector3): () | Set the normal for a normal ID. |
SetPositionEditableMesh:SetPosition(vertexId: int64, p: Vector3): () | Sets a vertex position in the mesh's local object space. |
SetUVEditableMesh:SetUV(uvId: int64, uv: Vector2): () | Sets UV coordinates for a UV ID. |
SetVertexBonesEditableMesh:SetVertexBones(vertexId: int64, boneIDs: Array): () | Assign a list of bones with the vertex for skinning. |
SetVertexBoneWeightsEditableMesh:SetVertexBoneWeights(vertexId: int64, boneWeights: Array): () | Sets skinning blend weights for each bone associated with the vertex. |
SetVertexFaceColorEditableMesh:SetVertexFaceColor(vertexId: int64, faceId: int64, colorId: int64): () | Sets the color ID of a vertex/face pair. |
SetVertexFaceNormalEditableMesh:SetVertexFaceNormal(vertexId: int64, faceId: int64, normalId: int64): () | Sets the normal ID of a vertex/face pair. |
SetVertexFaceUVEditableMesh:SetVertexFaceUV(vertexId: int64, faceId: int64, uvId: int64): () | Sets the UV ID of a vertex/face pair. |
TriangulateEditableMesh:Triangulate(): () | Splits all faces on the mesh to be triangles. |
受け継いでいるメンバー
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(EditableMesh)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。