gpt4 book ai didi

us.ihmc.graphicsDescription.appearance.YoAppearance.Texture()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 10:02:40 24 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.Texture()方法的一些代码示例,展示了YoAppearance.Texture()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.Texture()方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:Texture

YoAppearance.Texture介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition StoneTexture()
{
 return Texture("images/stone.jpg");
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition EarthTexture()
{
 return Texture("images/earth.jpg");
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition StoneTexture()
{
 return Texture("images/stone.jpg");
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public static AppearanceDefinition YoboticsTexture()
{
 return Texture("images/yobotics.jpg");
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition YoboticsTexture()
{
 return Texture("images/yobotics.jpg");
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition EarthTexture()
{
 return Texture("images/earth.jpg");
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public FloatingObjectBoxRobot(String imageResourcePath)
{
 super(FloatingObjectBoxRobot.class.getSimpleName());
 qrCodeJoint = new FloatingJoint("object", "object", new Vector3D(), this);
 Link qrCodeLink = new Link("object");
 qrCodeLink.setMassAndRadiiOfGyration(1.0, 0.1, 0.1, 0.1);
 Graphics3DObject qrCodeLinkGraphics = new Graphics3DObject();
 //      qrCodeLinkGraphics.addCoordinateSystem(2.0);
 double cubeLength = 1.0;
 qrCodeLinkGraphics.translate(0.0, 0.0, -0.99 * cubeLength);
 AppearanceDefinition cubeAppearance = YoAppearance.Texture(imageResourcePath);
 qrCodeLinkGraphics.addCube(cubeLength * 0.98, cubeLength * 1.01, cubeLength * 0.98, YoAppearance.Yellow());
 boolean[] textureFaces = new boolean[] { true, true, false, false, false, false };
 qrCodeLinkGraphics.translate(0.0, 0.0, -0.01 * cubeLength);
 qrCodeLinkGraphics.addCube(cubeLength, cubeLength, cubeLength, cubeAppearance, textureFaces);
 qrCodeLink.setLinkGraphics(qrCodeLinkGraphics);
 qrCodeJoint.setLink(qrCodeLink);
 addRootJoint(qrCodeJoint);
 setGravity(0.0);
}

代码示例来源:origin: us.ihmc/ihmc-model-file-loader

AppearanceDefinition appearance = YoAppearance.Texture("models/road1.jpg");

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public FloatingFiducialBoxRobot(Fiducial fiducial)
{
 super("FloatingFiducialBoxRobot");
 qrCodeJoint = new FloatingJoint("qrCode", "qrCode", new Vector3D(), this);
 Link qrCodeLink = new Link("qrCode");
 qrCodeLink.setMassAndRadiiOfGyration(1.0, 0.1, 0.1, 0.1);
 Graphics3DObject qrCodeLinkGraphics = new Graphics3DObject();
 //      qrCodeLinkGraphics.addCoordinateSystem(2.0);
 double cubeLength = 1.0;
 qrCodeLinkGraphics.translate(0.0, 0.0, -0.99 * cubeLength);
 AppearanceDefinition cubeAppearance = YoAppearance.Texture(fiducial.getPathString());
 qrCodeLinkGraphics.addCube(cubeLength * 0.98, cubeLength * 1.01, cubeLength * 0.98, YoAppearance.Yellow());
 boolean[] textureFaces = new boolean[] { true, true, false, false, false, false };
 qrCodeLinkGraphics.translate(0.0, 0.0, -0.01 * cubeLength);
 qrCodeLinkGraphics.addCube(cubeLength, cubeLength, cubeLength, cubeAppearance, textureFaces);
 qrCodeLink.setLinkGraphics(qrCodeLinkGraphics);
 qrCodeJoint.setLink(qrCodeLink);
 addRootJoint(qrCodeJoint);
 setGravity(0.0);
}

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com